I maintain a debian package which contains several files for my embedded board
Code: Select all
>dpkg --contents myBootloader_1.0-3_armhf.deb
drwxr-xr-x root/root 0 2017-03-14 13:54 ./
drwxr-xr-x root/root 0 2017-03-14 13:53 ./boot/
-rw-r--r-- root/root 10284 2017-03-14 13:53 ./boot/devicetree.dtb
-rw-r--r-- root/root 230 2017-03-14 13:53 ./boot/uEnv.txt
...
Code: Select all
dpkg: error processing archive /var/cache/apt/archives/myBootloader_1.0-3_armhf.deb (--unpack):
unable to make backup link of `./boot/devicetree.dtb' before installing new version: Operation not permitted
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/myBootloader_1.0-3_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
So I had the following ideas:
- in debian/control add a conflict to the own package so apt-get removes first the old version (does not work)
- install the files in another temporary place of the ext4 partition and copy the files from /boot in the postinst script (is not really a clean and solution)