add auto system update script

This commit is contained in:
manuel 2023-10-01 17:53:47 +00:00
parent 5f594dab10
commit 348b1fb627
4 changed files with 28 additions and 6 deletions

View File

@ -0,0 +1,14 @@
#!/bin/sh -e
# SPDX-License-Identifier: GPL-3.0-or-later
#
# SPDX-FileCopyrightText: 2023 PeppermintOS Team (peppermintosteam@proton.me)
# This script updates the system after Debian installation.
# Update the system
chroot /target apt update
chroot /target apt upgrade -y
# Clean up unnecessary packages
chroot /target apt autoremove -y

View File

@ -22,6 +22,3 @@ chroot /target apt purge --autoremove -y \
# Clean unnecessary files
rm -r /target/boot/firmware
# system update
chroot /target apt update && apt upgrade -y

View File

@ -0,0 +1,14 @@
#!/bin/sh -e
# SPDX-License-Identifier: GPL-3.0-or-later
#
# SPDX-FileCopyrightText: 2023 PeppermintOS Team (peppermintosteam@proton.me)
# This script updates the system after Debian installation.
# Update the system
chroot /target apt update
chroot /target apt upgrade -y
# Clean up unnecessary packages
chroot /target apt autoremove -y

View File

@ -21,6 +21,3 @@ chroot /target apt purge --autoremove -y \
# Clean unnecessary files
rm -r /target/boot/firmware
# system update
chroot /target apt update && apt upgrade -y