archlinux: tweak archlinux preferences (locale initialization, network device names...)

This commit is contained in:
Olivier MEDOC 2014-02-16 16:20:28 +01:00 committed by Marek Marczykowski-Górecki
parent 7de9adf219
commit 9be5dc591f
2 changed files with 16 additions and 3 deletions

View File

@ -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 <<EOF
[qubes]
SigLevel = Optional TrustAll
Server = file:///mnt/qubes-rpms-mirror-repo/pkgs
[qubes] # QubesTMP
SigLevel = Optional TrustAll # QubesTMP
Server = file:///mnt/qubes-rpms-mirror-repo/pkgs # QubesTMP
EOF
export CUSTOMREPO=$PWD/yum_repo_qubes/archlinux
@ -42,6 +42,16 @@ cat >> $INSTALLDIR/etc/fstab <<EOF
/rw/home /home none noauto,bind,defaults 0 0
EOF
echo "--> 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

View File

@ -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