mirror of
https://git.sr.ht/~nabijaczleweli/tzpfms
synced 2025-04-11 09:30:02 +03:00
needless awk
This commit is contained in:
parent
f0dfcc2110
commit
d3d43f281b
@ -31,7 +31,7 @@ done
|
||||
|
||||
|
||||
if [ "$root" = "zfs:AUTO" ] ; then
|
||||
BOOTFS="$(zpool list -H -o bootfs | awk '!/^-$/ {print; exit}')"
|
||||
BOOTFS="$(zpool list -H -o bootfs | while read -r b; do [ "$b" = '-' ] || { printf '%s\n' "$b"; exit; }; done)"
|
||||
else
|
||||
BOOTFS="${root##zfs:}"
|
||||
BOOTFS="${BOOTFS##ZFS=}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user