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