From 9be5dc591ffec812a6d80eb72bc9a0cfb15a39a9 Mon Sep 17 00:00:00 2001 From: Olivier MEDOC Date: Sun, 16 Feb 2014 16:20:28 +0100 Subject: [PATCH] archlinux: tweak archlinux preferences (locale initialization, network device names...) --- scripts_archlinux/04_install_qubes.sh | 16 +++++++++++++--- scripts_archlinux/09_cleanup.sh | 3 +++ 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/scripts_archlinux/04_install_qubes.sh b/scripts_archlinux/04_install_qubes.sh index 9c3ab86..7973857 100755 --- a/scripts_archlinux/04_install_qubes.sh +++ b/scripts_archlinux/04_install_qubes.sh @@ -14,9 +14,9 @@ su -c "echo 'Include = /etc/pacman.d/mirrorlist' >> $INSTALLDIR/etc/pacman.conf" echo "--> Registering Qubes custom repository" cat >> $INSTALLDIR/etc/pacman.conf <> $INSTALLDIR/etc/fstab < Configuring system to our preferences" +# Name network devices using simple names (ethX) +ln -s /dev/null $INSTALLDIR/etc/udev/rules.d/80-net-name-slot.rules +# Initialize encoding to qubes standards +ln -s /etc/sysconfig/i18n $INSTALLDIR/etc/locale.conf +# Enable some locales (incl. UTF-8 +sed 's/#en_US/en_US/g' -i $INSTALLDIR/etc/locale.gen +./mnt_archlinux_dvd/usr/bin/arch-chroot $INSTALLDIR sh -c "locale-gen" + + mkdir -p $INSTALLDIR/lib/modules # Creating a random file in /lib/modules to ensure that the directory in never deleted when packages are removed touch $INSTALLDIR/lib/modules/QUBES diff --git a/scripts_archlinux/09_cleanup.sh b/scripts_archlinux/09_cleanup.sh index 7913424..bbe195d 100755 --- a/scripts_archlinux/09_cleanup.sh +++ b/scripts_archlinux/09_cleanup.sh @@ -18,6 +18,9 @@ echo "--> Cleaning up linux kernel" ./mnt_archlinux_dvd/usr/bin/arch-chroot $INSTALLDIR pacman --noconfirm -Rsc linux ./mnt_archlinux_dvd/usr/bin/arch-chroot $INSTALLDIR pacman --noconfirm -S linux-firmware +# Disable qubes local repository +sed '/QubesTMP/d' -i $INSTALLDIR/etc/pacman.conf + # Clean pacman cache ./mnt_archlinux_dvd/usr/bin/arch-chroot $INSTALLDIR pacman --noconfirm -Scc