Syslinux - syslinux-install_update not working on new created system
Description:
The changed introduced in c0dbb98b cause an error on a new created system when the syslinux-install_update
script is used to install syslinux.
Before that change the pacman package of syslinux installed /boot/syslinux/syslinux.cfg
which now moved /usr/share/syslinux.cfg
and is installed via the syslinux-install_update
script. The script contains two checks which are failing because the $bootpath
defined in the script is not existing and no file is present in the path during the first execution of the script.
First check which fails: syslinux-install_update#L436
Second check which fails: syslinux-install_update#L172w
Both check are running before the folder is created and file is copied by the script.
It would be great if the script can be changed to work on a fresh created system after installing syslinux or the error should indicate that a precondition is needed before installing.
Additional info:
- package version(s): syslinux 6.04.pre2.r11.gbf6db5b4-7
- BIOS Boot and GPT Disk
Steps to reproduce:
- Boot Archiso and create a new root disk with sgdisk
# sgdisk --new=1:0:0 /dev/vda
# sgdisk /dev/vda --attributes=1:set:2
# mkfs.ext4 -O ^64bit -F -m 0 -q -L root /dev/vda1
# mount -o noatime,errors=remount-ro /dev/vda1 /mnt
# pacstrap /mnt base base-devel linux linux-firmware
- Install syslinux
# arch-chroot /mnt pacman -S --noconfirm gptfdisk syslinux
- Run the syslinux-install_update script
# arch-chroot /mnt syslinux-install_update -i -a
Error: /boot/syslinux is empty!
Is /boot mounted?
- Output of
/boot
# ls -la /boot
total 133716
drwxr-xr-x 4 root root 4096 15. Okt 13:48 .
drwxr-xr-x 18 root root 4096 15. Okt 13:47 ..
-rw------- 1 root root 113977012 15. Okt 13:48 initramfs-linux-fallback.img
-rw------- 1 root root 9450625 15. Okt 13:48 initramfs-linux.img
-rw-r--r-- 1 root root 13480448 15. Okt 13:48 vmlinuz-linux