rescue/common
This commit is contained in:
parent
dc66287ed1
commit
a0d487f473
1 changed files with 13 additions and 13 deletions
|
@ -1,9 +1,9 @@
|
||||||
rwx_rescue_configure() {
|
rwx_rescue_configure() {
|
||||||
local hostname="${1}"
|
local hostname="${1}"
|
||||||
# apt / conf
|
# apt / conf
|
||||||
sh_apt_conf_write
|
rwx_apt_conf_write
|
||||||
# apt / sources
|
# apt / sources
|
||||||
sh_apt_sources_write
|
rwx_apt_sources_write
|
||||||
# bash / rc
|
# bash / rc
|
||||||
main_link_bashrc
|
main_link_bashrc
|
||||||
mv "${HOME}/.bashrc" "${HOME}/.bashrc.old"
|
mv "${HOME}/.bashrc" "${HOME}/.bashrc.old"
|
||||||
|
@ -17,26 +17,26 @@ fr_FR.UTF-8 UTF-8
|
||||||
# generate locales
|
# generate locales
|
||||||
locale-gen
|
locale-gen
|
||||||
# update catalog
|
# update catalog
|
||||||
sh_apt_update
|
rwx_apt_update
|
||||||
# disable frontend
|
# disable frontend
|
||||||
sh_debian_frontend_disable
|
rwx_debian_frontend_disable
|
||||||
# install backports
|
# install backports
|
||||||
sh_apt_install_backports "tmux"
|
rwx_apt_install_backports "tmux"
|
||||||
# install packages
|
# install packages
|
||||||
sh_apt_install_release "apt-file" "mosh" "screen" "byobu"
|
rwx_apt_install_release "apt-file" "mosh" "screen" "byobu"
|
||||||
# update catalog
|
# update catalog
|
||||||
sh_apt_update
|
rwx_apt_update
|
||||||
}
|
}
|
||||||
|
|
||||||
rwx_rescue_install() {
|
rwx_rescue_install() {
|
||||||
# update catalog
|
# update catalog
|
||||||
sh_apt_update
|
rwx_apt_update
|
||||||
# disable frontend
|
# disable frontend
|
||||||
sh_debian_frontend_disable
|
rwx_debian_frontend_disable
|
||||||
# upgrade packages
|
# upgrade packages
|
||||||
sh_apt_upgrade
|
rwx_apt_upgrade
|
||||||
# install packages
|
# install packages
|
||||||
sh_apt_install_release \
|
rwx_apt_install_release \
|
||||||
"man-db" \
|
"man-db" \
|
||||||
"dmidecode" "efibootmgr" "lshw" "pciutils" "usbutils" \
|
"dmidecode" "efibootmgr" "lshw" "pciutils" "usbutils" \
|
||||||
"parted" "mdadm" "cryptsetup-bin" "lvm2" \
|
"parted" "mdadm" "cryptsetup-bin" "lvm2" \
|
||||||
|
@ -45,7 +45,7 @@ rwx_rescue_install() {
|
||||||
"exa" "lf" "ncdu" "nnn" "ranger" "tree" \
|
"exa" "lf" "ncdu" "nnn" "ranger" "tree" \
|
||||||
"file" "htop" "iotop" "ipcalc" "libdigest-sha3-perl" "lsof"
|
"file" "htop" "iotop" "ipcalc" "libdigest-sha3-perl" "lsof"
|
||||||
# install backports
|
# install backports
|
||||||
sh_apt_install_backports \
|
rwx_apt_install_backports \
|
||||||
"grub-pc-bin" \
|
"grub-pc-bin" \
|
||||||
\
|
\
|
||||||
"grub-efi-amd64-bin"
|
"grub-efi-amd64-bin"
|
||||||
|
@ -84,7 +84,7 @@ rwx_rescue_upload() {
|
||||||
}
|
}
|
||||||
|
|
||||||
rwx_rescue_wipe_1_zero() {
|
rwx_rescue_wipe_1_zero() {
|
||||||
sh_fs_wipe "/dev/mapper/crypt" "512M"
|
rwx_fs_wipe "/dev/mapper/crypt" "512M"
|
||||||
}
|
}
|
||||||
|
|
||||||
rwx_rescue_wipe_3_close() {
|
rwx_rescue_wipe_3_close() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue