From: Marcin Krol Date: Mon, 20 Aug 2018 13:39:26 +0000 (+0000) Subject: - support devices by UUID X-Git-Tag: 0.5.2~4 X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=735da1448546c7a2936a288ffa2d5928559cb955;p=rc-scripts.git - support devices by UUID --- 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