diff --git a/bash/rescue-ovh.sh b/bash/rescue-ovh.sh index 1ef38a2..5dee19b 100644 --- a/bash/rescue-ovh.sh +++ b/bash/rescue-ovh.sh @@ -16,7 +16,7 @@ rescue_wipe_0_init_ovh_vle2() { # parted "${device}" \ unit "${unit}" \ - mkpart "crypt" 4610 40960 + mkpart "crypt" 4610 40959 # parted "${device}" \ unit "${unit}" \ @@ -81,6 +81,7 @@ rescue_wipe_0_init_ovh_vle2() { } rescue_wipe_2_make_ovh_vle2() { + local device="/dev/sdb" local passphrase # crypt / close cryptsetup luksClose "crypt" diff --git a/bash/rescue.sh b/bash/rescue.sh index b466b92..732d1ea 100644 --- a/bash/rescue.sh +++ b/bash/rescue.sh @@ -140,7 +140,7 @@ source \"/etc/bash/main.sh\" ; rescue_configure \"${hostname}\"" rescue_wipe_1_zero() { dd status="progress" \ - if="/dev/zero" of="/dev/mapper/crypt" bs="1G" + if="/dev/zero" of="/dev/mapper/crypt" bs="512M" } rescue_wipe_3_close() {