about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew J. Hesford <ajh@sideband.org>2020-05-04 13:36:19 -0400
committerAndrew J. Hesford <48421688+ahesford@users.noreply.github.com>2020-07-14 15:38:57 -0400
commit92d68f8354720e5e24457858116cfd9f39617a82 (patch)
treecbe4ed83d977f57abab06575a5b35b4b77b68935
parenta93b8b92e215ce1934cea364db1b68f099b902f3 (diff)
downloadrunit-void-92d68f8354720e5e24457858116cfd9f39617a82.tar.gz
runit-void-92d68f8354720e5e24457858116cfd9f39617a82.tar.xz
runit-void-92d68f8354720e5e24457858116cfd9f39617a82.zip
crypt.awk: support PARTUUID in /etc/crypttab
-rw-r--r--crypt.awk2
1 files changed, 1 insertions, 1 deletions
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