From 0ecd65eab91e6c796cd4a0aa5364349518cbfa19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 19 Jan 2021 13:06:18 +0100 Subject: mount-data: fixes --- mount-data/files/init | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'mount-data/files') diff --git a/mount-data/files/init b/mount-data/files/init index 035f82f..c9706f5 100755 --- a/mount-data/files/init +++ b/mount-data/files/init @@ -3,8 +3,6 @@ START=36 STOP=90 -UUID_A="3472bef9-cbae-48bd-873e-fd4858a0b72f" -UUID_B="ad73f0bf-3cc5-4aee-842f-992db6a642e3" UUID="f71f2b6c-fc49-4a9b-91b3-7eaab853a02d" is_open() { @@ -12,7 +10,7 @@ is_open() { } open() { - cryptsetup open --key-file /etc/keys/sd "UUID=$2" "data_$1" + cryptsetup open --key-file /etc/keys/sd "$2" "data_$1" } close() { @@ -37,10 +35,10 @@ status() { } start() { - is_open a || open a "$UUID_A" - is_open b || open b "$UUID_B" - is_mounted "/data" || mount @data /data - is_mounted "/srv" || mount @srv /srv + is_open a || open a /dev/sda + is_open b || open b /dev/sdb + is_mounted "/data" || mount_btrfs @data /data + is_mounted "/srv" || mount_btrfs @srv /srv } stop() { -- cgit v1.2.3