update calamares files

This commit is contained in:
manuel 2024-01-10 11:48:42 -01:00
parent 274f0fb73a
commit f26f08c834
9 changed files with 66 additions and 6 deletions

View File

@ -0,0 +1,35 @@
#!/bin/sh
#
# Writes the final sources.list file
#
CHROOT=$(mount | grep proc | grep calamares | awk '{print $3}' | sed -e "s#/proc##g")
RELEASE="daedalus"
cat << EOF > $CHROOT/etc/apt/sources.list
# This system was installed using PeppermintOS removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were removed at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
# Main Repo - main contribnon-free non-free-firmware
deb http://deb.devuan.org/merged daedalus main contrib non-free non-free-firmware
#deb-src http://deb.devuan.org/merged daedalus main contrib non-free non-free-firmware
# Security Repo - main contribnon-free non-free-firmware
#deb http://deb.devuan.org/merged daedalus-security main contrib non-free non-free-firmware
#deb-src http://deb.devuan.org/merged daedalus-security main contrib non-free non-free-firmware
# Updates Repo - main contribnon-free non-free-firmware
#deb http://deb.devuan.org/merged daedalus-updates main contrib non-free non-free-firmware
#deb-src http://deb.devuan.org/merged daedalus-updates main contrib non-free non-free-firmware
# daedalus-backports, previously on backports.debian.org
#deb http://deb.devuan.org/merged daedalus-backports main contrib non-free non-free-firmware
#deb-src http://deb.devuan.org/merged daedalus-backports main contrib non-free non-free-firmware
EOF
exit 0

View File

@ -0,0 +1,25 @@
#!/bin/sh
CHROOT=$(mount | grep proc | grep calamares | awk '{print $3}' | sed -e "s#/proc##g")
MEDIUM_PATH="/run/live/medium"
RELEASE="daedalus"
if [ "$1" = "-u" ]; then
umount $CHROOT/$MEDIUM_PATH
rm $CHROOT/etc/apt/sources.list.d/debian-live-media.list
chroot $CHROOT apt-get update
exit 0
fi
# Remove the base sources, we will configure sources in a later phase
rm -f $CHROOT/etc/apt/sources.list.d/base.list
mkdir -p $CHROOT/$MEDIUM_PATH
mount --bind $MEDIUM_PATH $CHROOT/$MEDIUM_PATH
echo "deb [trusted=yes] file:$MEDIUM_PATH $RELEASE main" > $CHROOT/etc/apt/sources.list.d/debian-live-media.list
chroot $CHROOT apt-get update
# Attempt safest way to remove cruft
rmdir $CHROOT/run/live/medium
rmdir $CHROOT/run/live
exit 0

View File

@ -261,7 +261,7 @@ cp $fusato/applications/* $fusato/fusato/config/includes.chroot/usr/share/applic
cp $fusato/hooks/live/* $fusato/fusato/config/includes.chroot/usr/lib/live/config cp $fusato/hooks/live/* $fusato/fusato/config/includes.chroot/usr/lib/live/config
cp $fusato/hooks/normal/* $fusato/fusato/config/hooks/normal cp $fusato/hooks/normal/* $fusato/fusato/config/hooks/normal
cp $fusato/grub/grub $fusato/fusato/config/includes.chroot/etc/default cp $fusato/grub/grub $fusato/fusato/config/includes.chroot/etc/default
cp $fusato/calamares/sources-final $fusato/fusato/config/includes.chroot/usr/sbin cp $fusato/calamares/sources-debian/* $fusato/fusato/config/includes.chroot/usr/sbin
cp $fusato/calamares/bootloader-config-32/* $fusato/fusato/config/includes.chroot/usr/sbin cp $fusato/calamares/bootloader-config-32/* $fusato/fusato/config/includes.chroot/usr/sbin
cp $fusato/calamares/install-peppermint $fusato/fusato/config/includes.chroot/usr/bin cp $fusato/calamares/install-peppermint $fusato/fusato/config/includes.chroot/usr/bin
cp $fusato/database/* $fusato/fusato/config/includes.chroot/opt/pypep/dbpep cp $fusato/database/* $fusato/fusato/config/includes.chroot/opt/pypep/dbpep

View File

@ -259,7 +259,7 @@ cp $fusato/applications/* $fusato/fusato/config/includes.chroot/usr/share/applic
cp $fusato/hooks/live/* $fusato/fusato/config/includes.chroot/usr/lib/live/config cp $fusato/hooks/live/* $fusato/fusato/config/includes.chroot/usr/lib/live/config
cp $fusato/hooks/normal/* $fusato/fusato/config/hooks/normal cp $fusato/hooks/normal/* $fusato/fusato/config/hooks/normal
cp $fusato/grub/grub $fusato/fusato/config/includes.chroot/etc/default cp $fusato/grub/grub $fusato/fusato/config/includes.chroot/etc/default
cp $fusato/calamares/sources-final $fusato/fusato/config/includes.chroot/usr/sbin cp $fusato/calamares/sources-debian/* $fusato/fusato/config/includes.chroot/usr/sbin
cp $fusato/calamares/install-peppermint $fusato/fusato/config/includes.chroot/usr/bin cp $fusato/calamares/install-peppermint $fusato/fusato/config/includes.chroot/usr/bin
cp $fusato/database/* $fusato/fusato/config/includes.chroot/opt/pypep/dbpep cp $fusato/database/* $fusato/fusato/config/includes.chroot/opt/pypep/dbpep
cp $fusato/PepProPixMaps/* $fusato/fusato/config/includes.chroot/usr/share/pixmaps cp $fusato/PepProPixMaps/* $fusato/fusato/config/includes.chroot/usr/share/pixmaps

View File

@ -262,7 +262,7 @@ cp $fusato/applications/* $fusato/fusato/config/includes.chroot/usr/share/applic
cp $fusato/hooks/live/* $fusato/fusato/config/includes.chroot/usr/lib/live/config cp $fusato/hooks/live/* $fusato/fusato/config/includes.chroot/usr/lib/live/config
cp $fusato/hooks/normal/* $fusato/fusato/config/hooks/normal cp $fusato/hooks/normal/* $fusato/fusato/config/hooks/normal
cp $fusato/grub/grub $fusato/fusato/config/includes.chroot/etc/default cp $fusato/grub/grub $fusato/fusato/config/includes.chroot/etc/default
cp $fusato/calamares/sources-final $fusato/fusato/config/includes.chroot/usr/sbin cp $fusato/calamares/sources-debian/* $fusato/fusato/config/includes.chroot/usr/sbin
cp $fusato/calamares/bootloader-config-arm64/* $fusato/fusato/config/includes.chroot/usr/sbin cp $fusato/calamares/bootloader-config-arm64/* $fusato/fusato/config/includes.chroot/usr/sbin
cp $fusato/calamares/install-peppermint $fusato/fusato/config/includes.chroot/usr/bin cp $fusato/calamares/install-peppermint $fusato/fusato/config/includes.chroot/usr/bin
cp $fusato/database/* $fusato/fusato/config/includes.chroot/opt/pypep/dbpep cp $fusato/database/* $fusato/fusato/config/includes.chroot/opt/pypep/dbpep

View File

@ -263,7 +263,7 @@ cp $fusato/applications/* $fusato/fusato/config/includes.chroot/usr/share/applic
cp $fusato/hooks/live/* $fusato/fusato/config/includes.chroot/usr/lib/live/config cp $fusato/hooks/live/* $fusato/fusato/config/includes.chroot/usr/lib/live/config
cp $fusato/hooks/normal/* $fusato/fusato/config/hooks/normal cp $fusato/hooks/normal/* $fusato/fusato/config/hooks/normal
cp $fusato/grub/grub $fusato/fusato/config/includes.chroot/etc/default cp $fusato/grub/grub $fusato/fusato/config/includes.chroot/etc/default
cp $fusato/calamares/sources-final $fusato/fusato/config/includes.chroot/usr/sbin cp $fusato/calamares/sources-devuan/* $fusato/fusato/config/includes.chroot/usr/sbin
cp $fusato/calamares/bootloader-config-32/* $fusato/fusato/config/includes.chroot/usr/sbin cp $fusato/calamares/bootloader-config-32/* $fusato/fusato/config/includes.chroot/usr/sbin
cp $fusato/calamares/install-peppermint $fusato/fusato/config/includes.chroot/usr/bin cp $fusato/calamares/install-peppermint $fusato/fusato/config/includes.chroot/usr/bin
cp $fusato/database/* $fusato/fusato/config/includes.chroot/opt/pypep/dbpep cp $fusato/database/* $fusato/fusato/config/includes.chroot/opt/pypep/dbpep

View File

@ -261,7 +261,7 @@ cp $fusato/applications/* $fusato/fusato/config/includes.chroot/usr/share/applic
cp $fusato/hooks/live/* $fusato/fusato/config/includes.chroot/usr/lib/live/config cp $fusato/hooks/live/* $fusato/fusato/config/includes.chroot/usr/lib/live/config
cp $fusato/hooks/normal/* $fusato/fusato/config/hooks/normal cp $fusato/hooks/normal/* $fusato/fusato/config/hooks/normal
cp $fusato/grub/grub $fusato/fusato/config/includes.chroot/etc/default cp $fusato/grub/grub $fusato/fusato/config/includes.chroot/etc/default
cp $fusato/calamares/sources-final $fusato/fusato/config/includes.chroot/usr/sbin cp $fusato/calamares/sources-devuan/* $fusato/fusato/config/includes.chroot/usr/sbin
cp $fusato/calamares/install-peppermint $fusato/fusato/config/includes.chroot/usr/bin cp $fusato/calamares/install-peppermint $fusato/fusato/config/includes.chroot/usr/bin
cp $fusato/database/* $fusato/fusato/config/includes.chroot/opt/pypep/dbpep cp $fusato/database/* $fusato/fusato/config/includes.chroot/opt/pypep/dbpep
cp $fusato/PepProPixMaps/* $fusato/fusato/config/includes.chroot/usr/share/pixmaps cp $fusato/PepProPixMaps/* $fusato/fusato/config/includes.chroot/usr/share/pixmaps

View File

@ -262,7 +262,7 @@ cp $fusato/applications/* $fusato/fusato/config/includes.chroot/usr/share/applic
cp $fusato/hooks/live/* $fusato/fusato/config/includes.chroot/usr/lib/live/config cp $fusato/hooks/live/* $fusato/fusato/config/includes.chroot/usr/lib/live/config
cp $fusato/hooks/normal/* $fusato/fusato/config/hooks/normal cp $fusato/hooks/normal/* $fusato/fusato/config/hooks/normal
cp $fusato/grub/grub $fusato/fusato/config/includes.chroot/etc/default cp $fusato/grub/grub $fusato/fusato/config/includes.chroot/etc/default
cp $fusato/calamares/sources-final $fusato/fusato/config/includes.chroot/usr/sbin cp $fusato/calamares/sources-devuan/* $fusato/fusato/config/includes.chroot/usr/sbin
cp $fusato/calamares/bootloader-config-arm64/* $fusato/fusato/config/includes.chroot/usr/sbin cp $fusato/calamares/bootloader-config-arm64/* $fusato/fusato/config/includes.chroot/usr/sbin
cp $fusato/calamares/install-peppermint $fusato/fusato/config/includes.chroot/usr/bin cp $fusato/calamares/install-peppermint $fusato/fusato/config/includes.chroot/usr/bin
cp $fusato/database/* $fusato/fusato/config/includes.chroot/opt/pypep/dbpep cp $fusato/database/* $fusato/fusato/config/includes.chroot/opt/pypep/dbpep