From 735da1448546c7a2936a288ffa2d5928559cb955 Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Mon, 20 Aug 2018 13:39:26 +0000 Subject: [PATCH] - support devices by UUID --- rc.d/init.d/cryptsetup | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rc.d/init.d/cryptsetup b/rc.d/init.d/cryptsetup index 0e7f272..e2ff60e 100755 --- a/rc.d/init.d/cryptsetup +++ b/rc.d/init.d/cryptsetup @@ -95,6 +95,10 @@ init_crypto() { continue fi + if echo "$src" | grep -q -E "^UUID=" ; then + src="/dev/disk/by-uuid/${src##UUID=}" + fi + if [ ! -b "$src" ]; then nls "$src: No such device" ret=1 -- 2.46.0