This commit is contained in:
Marc Beninca 2024-11-11 14:03:33 +01:00
parent d2ce7a1b74
commit 8ab6d5758d
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -61,17 +61,18 @@ fr_FR.UTF-8 UTF-8
} }
ovh_rescue_install() { ovh_rescue_install() {
local package
local release="bookworm" local release="bookworm"
# update catalog # update catalog
apt-get update apt-get update
# # disable frontend
debian_disable_frontend debian_disable_frontend
# upgrade packages # upgrade packages
apt-get upgrade --assume-yes apt-get upgrade --assume-yes
# # clean cache
apt_clean_cache apt_clean_cache
# install packages # install packages
apt-get install --assume-yes \ set \
"file" "htop" "iotop" "lsof" "rsync" \ "file" "htop" "iotop" "lsof" "rsync" \
\ \
"parted" "mdadm" "cryptsetup-bin" "lvm2" \ "parted" "mdadm" "cryptsetup-bin" "lvm2" \
@ -80,16 +81,24 @@ ovh_rescue_install() {
"exa" "ncdu" "nnn" "ranger" "tree" \ "exa" "ncdu" "nnn" "ranger" "tree" \
"squashfs-tools" \ "squashfs-tools" \
"git" "git"
# clean cache for package in "${@}"; do
apt_clean_cache echo ; echo "${package}"
apt-get install --assume-yes \
"${package}"
apt_clean_cache
done
# install backports # install backports
apt-get install --assume-yes \ set \
--target-release "${release}-backports" \
"grub-pc-bin" \ "grub-pc-bin" \
\ \
"grub-efi-amd64-bin" "grub-efi-amd64-bin"
# clean cache for package in "${@}"; do
apt_clean_cache echo ; echo "${package}"
apt-get install --assume-yes \
--target-release "${release}-backports" \
"${package}"
apt_clean_cache
done
} }
ovh_rescue_upload() { ovh_rescue_upload() {