update pepscripts
This commit is contained in:
parent
3799a89389
commit
a72d8e719d
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue