summaryrefslogtreecommitdiff
path: root/mount-data/files
diff options
context:
space:
mode:
Diffstat (limited to 'mount-data/files')
-rwxr-xr-xmount-data/files/init12
1 files changed, 5 insertions, 7 deletions
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() {