update pepscripts

This commit is contained in:
manuel 2023-10-07 19:54:23 +00:00
parent 3799a89389
commit a72d8e719d
3 changed files with 7 additions and 6 deletions

View File

@ -8,11 +8,11 @@
# Copy files to the chroot directory
echo "Copying files to chroot..."
cp /preseed/grub/grub /cdrom/etc/default
cp /preseed/grub/grub /target/etc/default
# update grub and initramfs
chroot /cdrom update-initramfs -u
chroot /cdrom update-grub
chroot /target update-initramfs -u
chroot /target update-grub
exit 0

View File

@ -7,5 +7,6 @@
# This script removes unwanted files after Debian installation.
# Remove unwanted files
chroot /target apt -y remove --autoremove raspi-firmware
rm -r /target/boot/firmware

View File

@ -7,8 +7,8 @@
# This script updates the system after Debian installation.
# Update the system
chroot /cdrom apt update
chroot /cdrom apt upgrade -y
chroot /target apt update
chroot /target apt upgrade -y
# Clean up unnecessary packages
chroot /cdrom apt autoremove -y
chroot /target apt autoremove -y