PepMiniiso/PepDev64/pepscripts/copy-files-to-chroot.sh

35 lines
1.2 KiB
Bash
Raw Normal View History

#!/bin/bash
# SPDX-License-Identifier: GPL-3.0-or-later
#
# SPDX-FileCopyrightText: 2023 PeppemrintOS Team (peppermintosteam@proton.me)
2023-04-11 11:07:55 +00:00
# This script copies a file to target and runs commands during the Debian installation process.
# Copy files to the chroot directory
2023-04-11 11:07:55 +00:00
echo "Copying files to Target..."
cp /preseed/grub /target/etc/default
cp /preseed/multimedia.list /target/etc/apt/sources.list.d
cp /preseed/peppermint.list /target/etc/apt/sources.list.d
cp /preseed/sources.list /target/etc/apt
cp /preseed/deb-multimedia-keyring.gpg /target/etc/apt/trusted.gpg.d
cp /preseed/peppermint-keyring.gpg /target/etc/apt/trusted.gpg.d
cp /preseed/deb-multimedia-keyring.gpg /target/usr/share/keyrings
cp /preseed/peppermint-keyring.gpg /target/usr/share/keyrings
2023-04-11 11:07:55 +00:00
cp /preseed/Devuan.info /target//usr/share/python-apt/templates
cp /preseed/Devuan.mirrors /target//usr/share/python-apt/templates
cp -r /preseed/themes /target/boot/grub
# Run a commands in the chroot
chroot /target update-initramfs -u
chroot /target update-grub
cd /target//usr/share/python-apt/templates/
ln -s Devuan.info Peppermint.info
ln -s Devuan.mirrors Peppermint.mirrors
2023-04-11 11:07:55 +00:00
cd /target/usr/share/distro-info/
ln -s devuan.csv peppermint.csv
exit