2023-04-09 19:04:38 +00:00
|
|
|
#!/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.
|
2023-04-09 19:04:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Copy files to the chroot directory
|
2023-04-11 11:07:55 +00:00
|
|
|
echo "Copying files to Target..."
|
2023-04-09 19:04:38 +00:00
|
|
|
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
|
2023-04-09 19:04:38 +00:00
|
|
|
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/
|
2023-04-09 19:04:38 +00:00
|
|
|
ln -s devuan.csv peppermint.csv
|
|
|
|
|
|
|
|
exit
|
|
|
|
|