From 92d68f8354720e5e24457858116cfd9f39617a82 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Mon, 4 May 2020 13:36:19 -0400 Subject: crypt.awk: support PARTUUID in /etc/crypttab --- crypt.awk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypt.awk b/crypt.awk index 2d2c965..c0c2f9e 100644 --- a/crypt.awk +++ b/crypt.awk @@ -3,7 +3,7 @@ NF>4 { print "a valid crypttab has max 4 cols not " NF >"/dev/stderr"; next } { # decode the src variants split($2, o_src, "=") - if (o_src[1] == "UUID") ("blkid -l -o device -t " $2) | getline src; + if (o_src[1] == "UUID" || o_src[1] == "PARTUUID") ("blkid -l -o device -t " $2) | getline src; else src=o_src[1]; # no password or none is given, ask fo it -- cgit 1.4.1