Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove lines that contain only a hyphen (match '^-$' instead of '-').
  • Loading branch information
FransUrbo committed Mar 21, 2014
1 parent 7e01dcf commit 4f22cf3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ mountroot()
then
# Might be imported by the kernel module, so try searching before
# we import anything.
ZFS_BOOTFS=`zpool list -H -o bootfs | sed -n '/-/ !p' | sed 'q'`
ZFS_BOOTFS=`zpool list -H -o bootfs | sed -n '/^-$/ !p' | sed 'q'`
if [ "$?" != "0" -o -z "$ZFS_BOOTFS" -o \
"$ZFS_BOOTFS" = "no pools available" ]
then
Expand Down

0 comments on commit 4f22cf3

Please sign in to comment.