Skip to content

Commit

Permalink
chore: extract root device from root
Browse files Browse the repository at this point in the history
  • Loading branch information
koehlma committed May 12, 2024
1 parent b7b244a commit 93e3e06
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions boot/grub/first.grub.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ if [ "${rugpi_boot_spare}" = "true" ]; then
set rugpi_boot_spare=true
fi

# TODO: This should not be hardcoded to `hd0`, either use `search` or extract the correct
# root drive from the existing value of `root` in some way.
set root=(hd0,${rugpi_bootpart})
regexp (.*),(.*) $root -s 1:rugpi_root_device
set root=(${rugpi_root_device},${rugpi_bootpart})

source (${root})/second.grub.cfg

0 comments on commit 93e3e06

Please sign in to comment.