From 6b81ee0a5a458d569cdad3325da12816dfcfef21 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 11 Nov 2024 17:59:03 +0100 Subject: [PATCH] close --- bash/rescue-hetzner.sh | 7 ------- bash/rescue-ovh.sh | 6 ------ bash/rescue.sh | 6 ++++++ 3 files changed, 6 insertions(+), 13 deletions(-) diff --git a/bash/rescue-hetzner.sh b/bash/rescue-hetzner.sh index 0ef1d8a..4d1100c 100644 --- a/bash/rescue-hetzner.sh +++ b/bash/rescue-hetzner.sh @@ -198,10 +198,3 @@ rescue_hetzner_wipe_8_8_2_make() { --uuid '00000000-0000-0000-0000-000000000005' \ '/media/crypt/swap' } - -rescue_hetzner_wipe_8_8_3_close() { - umount '/media/boot' - # - umount '/media/crypt' && - cryptsetup luksClose 'crypt' -} diff --git a/bash/rescue-ovh.sh b/bash/rescue-ovh.sh index 8312dab..0b26d0d 100644 --- a/bash/rescue-ovh.sh +++ b/bash/rescue-ovh.sh @@ -125,9 +125,3 @@ rescue_ovh_wipe_vle2_2_make() { --uuid "00000000-0000-0000-0000-000000000005" \ "/media/crypt/swap" } - -rescue_ovh_wipe_vle2_3_close() { - umount "/media/boot" - umount "/media/crypt" && - cryptsetup luksClose "crypt" -} diff --git a/bash/rescue.sh b/bash/rescue.sh index c40abcc..a23f6d9 100644 --- a/bash/rescue.sh +++ b/bash/rescue.sh @@ -137,3 +137,9 @@ source \"/etc/bash/main.sh\" ; rescue_configure \"${hostname}\"" return 1 fi } + +rescue_wipe_3_close() { + umount "/media/boot" + umount "/media/crypt" && + cryptsetup luksClose "crypt" +}