functions
This commit is contained in:
parent
5f13535022
commit
783d5e334e
1 changed files with 7 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
||||||
function rescue_hetzner_configure {
|
rescue_hetzner_configure() {
|
||||||
local hostname="${1}"
|
local hostname="${1}"
|
||||||
local package
|
local package
|
||||||
local packages=(
|
local packages=(
|
||||||
|
@ -53,7 +53,7 @@ fr_FR.UTF-8 UTF-8
|
||||||
apt-get update
|
apt-get update
|
||||||
}
|
}
|
||||||
|
|
||||||
function rescue_hetzner_install {
|
rescue_hetzner_install() {
|
||||||
local package
|
local package
|
||||||
local release='bookworm'
|
local release='bookworm'
|
||||||
local packages=(
|
local packages=(
|
||||||
|
@ -100,7 +100,7 @@ function rescue_hetzner_install {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
function rescue_hetzner_upload {
|
rescue_hetzner_upload() {
|
||||||
local host="${1}"
|
local host="${1}"
|
||||||
local hostname="${2}"
|
local hostname="${2}"
|
||||||
if [ "${hostname}" ] ; then
|
if [ "${hostname}" ] ; then
|
||||||
|
@ -130,7 +130,7 @@ else
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function rescue_hetzner_wipe_8_8_0_init {
|
rescue_hetzner_wipe_8_8_0_init() {
|
||||||
local device
|
local device
|
||||||
local devices=(
|
local devices=(
|
||||||
'/dev/sda'
|
'/dev/sda'
|
||||||
|
@ -270,13 +270,13 @@ function rescue_hetzner_wipe_8_8_0_init {
|
||||||
| cryptsetup luksOpen '/dev/md/crypt' 'crypt'
|
| cryptsetup luksOpen '/dev/md/crypt' 'crypt'
|
||||||
}
|
}
|
||||||
|
|
||||||
function rescue_hetzner_wipe_8_8_1_zero {
|
rescue_hetzner_wipe_8_8_1_zero() {
|
||||||
# wipe crypt
|
# wipe crypt
|
||||||
dd status='progress' \
|
dd status='progress' \
|
||||||
if='/dev/zero' of='/dev/mapper/crypt' bs='8G'
|
if='/dev/zero' of='/dev/mapper/crypt' bs='8G'
|
||||||
}
|
}
|
||||||
|
|
||||||
function rescue_hetzner_wipe_8_8_2_make {
|
rescue_hetzner_wipe_8_8_2_make() {
|
||||||
local passphrase
|
local passphrase
|
||||||
# close
|
# close
|
||||||
cryptsetup luksClose 'crypt'
|
cryptsetup luksClose 'crypt'
|
||||||
|
@ -318,7 +318,7 @@ function rescue_hetzner_wipe_8_8_2_make {
|
||||||
'/media/crypt/swap'
|
'/media/crypt/swap'
|
||||||
}
|
}
|
||||||
|
|
||||||
function rescue_hetzner_wipe_8_8_3_close {
|
rescue_hetzner_wipe_8_8_3_close() {
|
||||||
umount '/media/boot'
|
umount '/media/boot'
|
||||||
#
|
#
|
||||||
umount '/media/crypt' \
|
umount '/media/crypt' \
|
||||||
|
|
Loading…
Reference in a new issue