Alpine's mkinitfs sometimes gets installed alongside postmarketos-mkinitfs
Original issue, before edition:
install --sdcard
fails due to a symlink being copied to a fat16 fs
raspberry pi: /boot/boot is a symlink to /boot, but the raspberry pi /boot is fat16 so it cannot contain symlinks. This leads to the following error:
(015044) [23:23:36] (native) % cd /mnt/rootfs_raspberry-pi; cp -a lib dev sbin etc sys tmp usr boot media mnt bin var run proc root srv opt /mnt/instal
l/
cp: can't create symlink '/mnt/install/boot/boot' to '.': Operation not permitted
pmbootstrap's full log.txt
here's a bad patch that makes pmbootstrap succeed. It deletes the symlink before copying. The raspberry pi boots correctly anyway.
diff --git a/pmb/install/_install.py b/pmb/install/_install.py
index 1b067747..8963b48f 100644
--- a/pmb/install/_install.py
+++ b/pmb/install/_install.py
@@ -135,6 +135,8 @@ def copy_files_from_chroot(args):
folders += [os.path.basename(path)]
# Update or copy all files
+ pmb.chroot.root(args, ["rm", "boot/boot"],
+ working_dir=mountpoint)
if args.rsync:
pmb.chroot.apk.install(args, ["rsync"])
rsync_flags = "-a"
On my computer, Alpine created the same symlink in /boot.
I'm not sure what would be a proper fix, or even the purpose of the boot link in the first place.
Edited by Antoine Fontaine