ln: /boot/boot: Operation not permitted
My system is UEFI-based and /boot is a separate ESP partition:
/dev/sda1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=utf8,shortname=mixed,errors=remount-ro,discard)
When upgrading kernels I get a warning `ln: /boot/boot: Operation not permitted`:
localhost:~# apk upgrade
(1/2) Upgrading xen-libs (4.8.1-r4 -> 4.8.2-r0)
(2/2) Upgrading linux-hardened@edge-main (4.9.49-r0 -> 4.9.50-r0)
Executing busybox-1.26.2-r6.trigger
Executing kmod-23-r1.trigger
Executing mkinitfs-3.1.0-r1.trigger
==> initramfs: creating /boot/initramfs-hardened
ln: /boot/boot: Operation not permitted
Executing syslinux-6.04_pre1-r1.trigger
OK: 588 MiB in 134 packages
localhost:~# ls -lh /boot
total 20032
drwxr-xr-x 3 root root 4.0K Jul 21 02:46 EFI
-rwxr-xr-x 1 root root 3.9M Sep 14 12:19 System.map-hardened
-rwxr-xr-x 1 root root 161.2K Sep 14 12:19 config-hardened
-rwxr-xr-x 1 root root 454 Sep 14 12:36 extlinux.conf
-rwxr-xr-x 1 root root 422 Sep 14 11:55 extlinux.conf.old
-rwxr-xr-x 1 root root 10.9M Sep 19 11:05 initramfs-hardened
-rwxr-xr-x 1 root root 177.7K Sep 19 11:06 libcom32.c32
-rwxr-xr-x 1 root root 23.1K Sep 19 11:06 libutil.c32
-rwxr-xr-x 1 root root 11.4K Sep 19 11:06 mboot.c32
-rwxr-xr-x 1 root root 25.9K Sep 19 11:06 menu.c32
-rwxr-xr-x 1 root root 26.4K Sep 19 11:06 vesamenu.c32
-rwxr-xr-x 1 root root 4.3M Sep 14 12:19 vmlinuz-hardened
Not sure where it comes from, but it happens since I’ve started using Alpine Linux.
I’m on 3.6 stable with kernel from Edge.
(from redmine: issue id 7870, created on 2017-09-19)