mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-06-10 17:41:32 +00:00
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.
This commit is contained in:
parent
e601fd6fc6
commit
626e59b4e5
@ -208,6 +208,11 @@ mount_disk_image() {
|
|||||||
mount_image ${disk_image} 1
|
mount_image ${disk_image} 1
|
||||||
mount_partition "${rootfs_dev_mapper}" $mountpoint
|
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"
|
local uefi_dev="${loop_device}p15"
|
||||||
if [ -b ${uefi_dev} -a -e $mountpoint/boot/efi ]; then
|
if [ -b ${uefi_dev} -a -e $mountpoint/boot/efi ]; then
|
||||||
mount "${uefi_dev}" $mountpoint/boot/efi
|
mount "${uefi_dev}" $mountpoint/boot/efi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user