This commit is contained in:
Marc Beninca 2024-11-11 12:29:48 +01:00
parent 6f17ecfec3
commit 0ffbf27412
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -2,9 +2,6 @@
ovh_rescue_configure() {
local host="${1}"
local packages=(
"byobu" "mosh"
)
# apt / conf
printf "\
Acquire::AllowInsecureRepositories False;
@ -43,31 +40,15 @@ fr_FR.UTF-8 UTF-8
#
debian_disable_frontend
# install packages
apt-get install --assume-yes "${packages[@]}"
apt-get install --assume-yes \
"byobu" \
"mosh"
#
apt_clean_cache
}
ovh_rescue_install() {
local release="buster"
local packages=(
# installed
"parted" "mdadm" "lvm2"
# install
"lshw"
"file" "micro"
"grub-efi-amd64-bin" "grub-pc-bin"
"htop" "iotop" "lsof"
"exa" "ncdu" "nnn" "ranger" "tree"
"squashfs-tools"
"uuid-runtime"
)
local backports=(
# installed
"cryptsetup-bin" "rsync"
# install
"git"
)
# update catalog
apt-get update
#
@ -77,12 +58,24 @@ ovh_rescue_install() {
#
apt_clean_cache
# install packages
apt-get install --assume-yes "${packages[@]}"
apt-get install --assume-yes \
"parted" "mdadm" "lvm2" \
\
"lshw" \
"file" "micro" \
"grub-efi-amd64-bin" "grub-pc-bin" \
"htop" "iotop" "lsof" \
"exa" "ncdu" "nnn" "ranger" "tree" \
"squashfs-tools" \
"uuid-runtime"
#
apt_clean_cache
# install backports
apt-get install --assume-yes \
--target-release "${release}-backports" "${backports[@]}"
--target-release "${release}-backports" \
"cryptsetup-bin" "rsync" \
\
"git"
#
apt_clean_cache
}