File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 136136[ -z " $boot_uuid " ] && print_error " Cannot determine UUID of ${boot_device} "
137137
138138# If /boot is not a Btrfs subvolume, reuse root subvol UUID
139- boot_uuid_subvolume=" $( btrfs subvolume show " ${boot_directory} " 2> /dev/null | \
140- awk -F' :' ' /^\s*UUID/ {gsub(/^[ \t]+/, "", $2); print $2}' ) " \
141- || boot_uuid_subvolume=" UUID: $root_uuid_subvolume "
139+ boot_uuid_subvolume=" $(
140+ btrfs subvolume show " ${boot_directory} " 2> /dev/null | \
141+ awk -F' :' ' /^\s*UUID/ {gsub(/^[ \t]+/, "", $2); print $2; exit}'
142+ ) "
143+ [ -z " $boot_uuid_subvolume " ] && boot_uuid_subvolume=" $root_uuid_subvolume "
142144
143145# Extra data for GRUB commands
144146boot_hs=" $( ${grub_probe} --device " ${boot_device} " --target=hints_string 2> /dev/null) "
You can’t perform that action at this time.
0 commit comments