PepOSServer/pepscripts/06copy-files-to-cdrom

19 lines
452 B
Plaintext
Raw Normal View History

#!/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..."
cp /preseed/grub/grub /cdrom/etc/default
# update grub and initramfs
chroot /cdrom update-initramfs -u
chroot /cdrom update-grub
exit 0