fixed timezone, firefox in french, optional grub and isolinux folders

This commit is contained in:
Amazed 2021-04-16 11:57:56 +02:00
parent e8e7f392a6
commit 2d2defecae
2 changed files with 14 additions and 8 deletions

View File

@ -2,7 +2,7 @@
set -eE
function clean() {
echo "==== CLEAN ERR ===="
echo "==== CLEAN ===="
sudo umount "$WORKDIR/squashfs" || :
sudo umount /tmp/livecd || :
}
@ -59,12 +59,16 @@ echo "==== Install extensions ===="
sudo cp "$SPATH/firefox/extensions/"* "$WORKDIR/custom/usr/lib/firefox/distribution/extensions/"
echo "==== Mod ISOLINUX (BIOS) AND GRUB (EFI) ===="
# isolinux
chmod -R +w "$WORKDIR/cd/isolinux"
cp isolinux/* "$WORKDIR/cd/isolinux/"
# grub
chmod -R +w "$WORKDIR/cd/boot/grub"
cp grub/* "$WORKDIR/cd/boot/grub/"
if [[ -d isolinux ]]; then
# isolinux
chmod -R +w "$WORKDIR/cd/isolinux"
cp isolinux/* "$WORKDIR/cd/isolinux/"
fi
if [[ -d grub ]]; then
# grub
chmod -R +w "$WORKDIR/cd/boot/grub"
cp grub/* "$WORKDIR/cd/boot/grub/"
fi
# setup iso
echo "==== Setup ISO ===="

View File

@ -7,11 +7,13 @@ mount -t devpts none /dev/pts/
# set timezone
echo "Europe/Paris" > /etc/timezone
ln -sf /usr/share/zoneinfo/$(cat /etc/timezone /etc/localtime
ln -sf /usr/share/zoneinfo/$(cat /etc/timezone) /etc/localtime
dpkg-reconfigure -f noninteractive tzdata
sudo apt-get update
sudo apt-get upgrade -y
# install lang pack
lang=fr
for l in $(cat /usr/share/linuxmint/mintlocale/language_packs); do