Merge pull request #48229 from lopsided98/luks-ssh-fix

nixos: initrd/luks: fix detection of devices by UUID
This commit is contained in:
Franz Pletz 2018-10-11 21:56:41 +00:00 committed by GitHub
commit a1802fc115
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ let
return 0 return 0
else else
local uuid=$(echo -n $target | sed -e 's,UUID=\(.*\),\1,g') local uuid=$(echo -n $target | sed -e 's,UUID=\(.*\),\1,g')
local dev=$(blkid --uuid $uuid) blkid --uuid $uuid >/dev/null
return $? return $?
fi fi
} }