nixos: initrd/luks: fix detection of devices by UUID
commit76977590faed8e57c8e7d43769e20a4cde3daa14
authorBen Wolsieffer <benwolsieffer@gmail.com>
dateThu 11 Oct 2018, 15:52 (8 years ago)
parent264cb74
nixos/modules/system/boot/luksroot.nix+1−1
@@ -17,7 +17,7 @@ let
1717 return 0
1818 else
1919 local uuid=$(echo -n $target | sed -e 's,UUID=\(.*\),\1,g')
20− local dev=$(blkid --uuid $uuid)
20+ blkid --uuid $uuid >/dev/null
2121 return $?
2222 fi
2323 }