nixos: initrd/luks: fix detection of devices by UUID
This commit is contained in:
parent
264cb7407c
commit
76977590fa
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user