Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/create_disk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,14 @@ if [ -e (md/md-boot) ]; then
# the main grub.cfg.
set prefix=md/md-boot
else
search --label boot --set prefix --no-floppy
if [ -f ${config_directory}/bootuuid.cfg ]; then
source ${config_directory}/bootuuid.cfg
fi
if [ -n "${BOOT_UUID}" ]; then
search --fs-uuid "${BOOT_UUID}" --set prefix --no-floppy
else
search --label boot --set prefix --no-floppy
fi
fi
set prefix=($prefix)/grub2
configfile $prefix/grub.cfg
Expand Down
9 changes: 8 additions & 1 deletion src/grub.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,14 @@ if [ -d (md/md-boot)/grub2 ]; then
set boot=md/md-boot
set prefix=($boot)/grub2
else
search --label boot --set boot --no-floppy
if [ -f ${config_directory}/bootuuid.cfg ]; then
source ${config_directory}/bootuuid.cfg
fi
if [ -n "${BOOT_UUID}" ]; then
search --fs-uuid "${BOOT_UUID}" --set boot --no-floppy
else
search --label boot --set boot --no-floppy
fi
fi
set root=$boot

Expand Down