2023-05-20 16:10:10 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#
|
|
|
|
# SPDX-FileCopyrightText: 2023 PeppemrintOS Team (peppermintosteam@proton.me)
|
|
|
|
|
|
|
|
# This script copies a file to the chroot and runs commands during the Debian installation process.
|
|
|
|
|
|
|
|
# Copy files to the chroot directory
|
|
|
|
echo "Copying files to chroot..."
|
2023-10-07 19:54:23 +00:00
|
|
|
cp /preseed/grub/grub /target/etc/default
|
2023-05-20 16:10:10 +00:00
|
|
|
|
|
|
|
# update grub and initramfs
|
2023-10-07 19:54:23 +00:00
|
|
|
chroot /target update-initramfs -u
|
|
|
|
chroot /target update-grub
|
2023-05-20 16:10:10 +00:00
|
|
|
|
|
|
|
exit 0
|
|
|
|
|