This commit is contained in:
наб 2024-02-29 02:05:58 +01:00
parent 6a143b6e8b
commit a4294c83c5
No known key found for this signature in database
GPG Key ID: BCFD0B018D2658F1

View File

@ -30,7 +30,7 @@ while [ "$(zpool list -H)" = "" ]; do
done
if [ "$root" = "zfs:AUTO" ] ; then
if [ "$root" = "zfs:AUTO" ]; then
BOOTFS="$(zpool list -H -o bootfs | while read -r b; do [ "$b" = '-' ] || { printf '%s\n' "$b"; exit; }; done)"
else
BOOTFS="${root##zfs:}"