apt: also dist-upgrade etc
Some checks are pending
continuous-integration/laminar-eldarion Build failed with exit code 123 after 4 seconds

This commit is contained in:
Starbeamrainbowlabs 2022-03-21 02:43:09 +00:00
parent dc97aa89a1
commit 4a0111d54c
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
3 changed files with 45 additions and 10 deletions

View file

@ -161,9 +161,15 @@ stage_end "$?";
############################################################################### ###############################################################################
###
# ███████ ████████ ███████ ██████ ██████
# ██ ██ ██ ██ ██ ██
# ███████ ██ █████ ██████ █████
# ██ ██ ██ ██ ██
# ███████ ██ ███████ ██ ███████
# Pre-install tasks # Pre-install tasks
### #######################################
stage_begin "Executing pre-install tasks"; stage_begin "Executing pre-install tasks";
while read -r preinstall_step; do while read -r preinstall_step; do
@ -174,9 +180,15 @@ stage_end "$?" "1 or more pre-install tasks failed";
############################################################################### ###############################################################################
###
# ███████ ████████ ███████ ██████ ██████
# ██ ██ ██ ██ ██ ██
# ███████ ██ █████ ██████ █████
# ██ ██ ██ ██ ██
# ███████ ██ ███████ ██ ██████
# Install packages # Install packages
### #######################################
stage_begin "Installing apt packages"; stage_begin "Installing apt packages";
apt-get install --no-install-recommends --yes "$(cat "${temp_dir}/apt-packages.txt")"; apt-get install --no-install-recommends --yes "$(cat "${temp_dir}/apt-packages.txt")";
@ -184,9 +196,15 @@ stage_end "$?" "Failed to install apt packages";
############################################################################### ###############################################################################
###
# ███████ ████████ ███████ ██████ ██ ██
# ██ ██ ██ ██ ██ ██ ██
# ███████ ██ █████ ██████ ███████
# ██ ██ ██ ██ ██
# ███████ ██ ███████ ██ ██
# Post-install tasks # Post-install tasks
### #######################################
stage_begin "Running post-install tasks"; stage_begin "Running post-install tasks";
while read -r postinstall_step; do while read -r postinstall_step; do
@ -217,5 +235,8 @@ echo "
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██████ ██████ ██ ██ ██ ███████ ███████ ██ ███████ ██ ██████ ██████ ██ ██ ██ ███████ ███████ ██ ███████ ██
$(cat /etc/hostname) is now ready for use! Please reboot me to ensure everything is working as intended. $(cat /etc/hostname) is now ready for use! Here's a quick checklist:
• Ensure a static IP is configured on the router if required
• Reboot me to ensure everything is working as intended
" | "${rainbow}"; " | "${rainbow}";

View file

@ -1,3 +0,0 @@
#!/usr/bin/env bash
apt-get update;

17
src/steps-preinstall/10-apt.sh Executable file
View file

@ -0,0 +1,17 @@
#!/usr/bin/env bash
task_begin "apt update";
apt-get update;
task_end "$?";
task_begin "apt upgrade";
apt-get dist-upgrade -y;
task_end "$?";
task_begin "apt autoremove";
apt-get autoremove -y;
task_end "$?";
task_begin "apt autoclean";
apt-get autoclean -y;
task_end "$?";