From 76977590faed8e57c8e7d43769e20a4cde3daa14 Mon Sep 17 00:00:00 2001 From: Ben Wolsieffer Date: Thu, 11 Oct 2018 15:52:46 -0400 Subject: nixos: initrd/luks: fix detection of devices by UUID --- nixos/modules/system/boot/luksroot.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nixos/modules/system/boot/luksroot.nix') diff --git a/nixos/modules/system/boot/luksroot.nix b/nixos/modules/system/boot/luksroot.nix index 1b153f2132b..018e7b2e7f8 100644 --- a/nixos/modules/system/boot/luksroot.nix +++ b/nixos/modules/system/boot/luksroot.nix @@ -17,7 +17,7 @@ let return 0 else local uuid=$(echo -n $target | sed -e 's,UUID=\(.*\),\1,g') - local dev=$(blkid --uuid $uuid) + blkid --uuid $uuid >/dev/null return $? fi } -- cgit 1.4.1