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

View File

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