functions: add support for mounting boot partition

If the partition exists, we should mount it on /boot. Partition 16 was
chosen because it is not used anywhere else in livecd-rootfs yet.
ubuntu/mantic
Gauthier Jolly 1 year ago committed by Thomas Bechtold
parent e601fd6fc6
commit 626e59b4e5

@ -208,6 +208,11 @@ mount_disk_image() {
mount_image ${disk_image} 1
mount_partition "${rootfs_dev_mapper}" $mountpoint
local boot_dev="${loop_device}p16"
if [ -b ${boot_dev} -a -e $mountpoint/boot ]; then
mount "${boot_dev}" $mountpoint/boot
fi
local uefi_dev="${loop_device}p15"
if [ -b ${uefi_dev} -a -e $mountpoint/boot/efi ]; then
mount "${uefi_dev}" $mountpoint/boot/efi

Loading…
Cancel
Save