Unable to update linux-image-6.6.9-riscv64
Hi,
I have a Sifive Hifive Unmatched Rev B to test Debian on Risc-V. So far
it has been absolutely stable and worked really well. Installation was
done as outlined by [0] with boot from onboard SPI Flash and NVMe drive.
The wiki instructs one to use vfat for /boot which now has started to
render the linux-image-6.6.9-riscv64 package uninstallable:
# apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
linux-image-6.6.9-riscv64
Suggested packages:
linux-doc-6.6 debian-kernel-handbook
The following packages will be upgraded:
linux-image-6.6.9-riscv64
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
99 not fully installed or removed.
Need to get 0 B/109 MB of archives.
After this operation, 99,3 kB disk space will be freed.
Do you want to continue? [Y/n]
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
Reading changelogs... Done
(Reading database ... 285454 files and directories currently installed.)
Preparing to unpack .../linux-image-6.6.9-riscv64_6.6.9-1+b1_riscv64.deb ...
Unpacking linux-image-6.6.9-riscv64 (6.6.9-1+b1) over (6.6.9-1) ...
dpkg: error processing archive
/var/cache/apt/archives/linux-image-6.6.9-riscv64_6.6.9-1+b1_riscv64.deb
(--unpack):
unable to make backup link of './boot/System.map-6.6.9-riscv64' before
installing new version: Operation not permitted
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
The reason is dpkg which insists on hardlinking several files on /boot
to maintain copies in case something goes wrong, but vfat has no concept
of hardlinks.
Any advise on how to handle this best?
* Does syslinux/extlinux support having /boot on ext4 or similar posix fs?
* Would it make sense dpkg-divert all files in /boot to somewhere else
and use hooks in /etc/kernel/postinst.d/ to copy files to /boot?
* Something else?
[0] https://wiki.debian.org/InstallingDebianOn/SiFive/HiFiveUnmatched
Thanks & best regards,
Michael
Reply to: