ArchLinux: give correct UUID for img_dev parameter
This commit is contained in:
parent
6f2f7ef1c1
commit
007b4a6bbe
1 changed files with 9 additions and 1 deletions
|
@ -12,6 +12,14 @@ for isofile in ${this_isopath}/archlinux*.iso ${this_isopath}/ipxe*; do
|
||||||
submenu "ArchLinux >" "${this_isopath}" --class arch {
|
submenu "ArchLinux >" "${this_isopath}" --class arch {
|
||||||
this_isopath=$2
|
this_isopath=$2
|
||||||
|
|
||||||
|
# find the uuid for this isopath
|
||||||
|
regexp \
|
||||||
|
--set 1:isodev \
|
||||||
|
"^(\(.*\)).*\$" "${this_isopath}"
|
||||||
|
|
||||||
|
probe -u ${isodev} --set this_uuid
|
||||||
|
|
||||||
|
|
||||||
menuentry "ArchLinux BIOS netboot" --class arch {
|
menuentry "ArchLinux BIOS netboot" --class arch {
|
||||||
echo "Booting ArchLinux BIOS netboot"
|
echo "Booting ArchLinux BIOS netboot"
|
||||||
linux16 ${this_isopath}/ipxe.419cd003a298.lkrn
|
linux16 ${this_isopath}/ipxe.419cd003a298.lkrn
|
||||||
|
@ -46,7 +54,7 @@ for isofile in ${this_isopath}/archlinux-*.iso; do
|
||||||
|
|
||||||
echo "Using ${isoname}..."
|
echo "Using ${isoname}..."
|
||||||
loopback loop "${isodev}${isofile}"
|
loopback loop "${isodev}${isofile}"
|
||||||
linux (loop)/arch/boot/x86_64/vmlinuz-linux img_dev=/dev/disk/by-uuid/${rootuuid} img_loop=${isofile}
|
linux (loop)/arch/boot/x86_64/vmlinuz-linux img_dev=/dev/disk/by-uuid/${this_uuid} img_loop=${isofile}
|
||||||
initrd (loop)/arch/boot/intel-ucode.img (loop)/arch/boot/amd-ucode.img (loop)/arch/boot/x86_64/initramfs-linux.img
|
initrd (loop)/arch/boot/intel-ucode.img (loop)/arch/boot/amd-ucode.img (loop)/arch/boot/x86_64/initramfs-linux.img
|
||||||
}
|
}
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue