Skip to content

Commit 92d68f8

Browse files
committed
crypt.awk: support PARTUUID in /etc/crypttab
1 parent a93b8b9 commit 92d68f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crypt.awk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ NF>4 { print "a valid crypttab has max 4 cols not " NF >"/dev/stderr"; next }
33
{
44
# decode the src variants
55
split($2, o_src, "=")
6-
if (o_src[1] == "UUID") ("blkid -l -o device -t " $2) | getline src;
6+
if (o_src[1] == "UUID" || o_src[1] == "PARTUUID") ("blkid -l -o device -t " $2) | getline src;
77
else src=o_src[1];
88

99
# no password or none is given, ask fo it

0 commit comments

Comments
 (0)