#!/bin/sh set -e echo "Mounting archlinux install system into mnt_archlinux_dvd..." mkdir -p mnt_archlinux_dvd mount $CACHEDIR/root-image.fs mnt_archlinux_dvd # Note: Enable x86 repos su -c "echo '[multilib]' >> $INSTALLDIR/etc/pacman.conf" su -c "echo 'SigLevel = PackageRequired' >> $INSTALLDIR/etc/pacman.conf" su -c "echo 'Include = /etc/pacman.d/mirrorlist' >> $INSTALLDIR/etc/pacman.conf" echo "--> Registering Qubes custom repository" cat >> $INSTALLDIR/etc/pacman.conf < Installing qubes-packages..." ./mnt_archlinux_dvd/usr/bin/arch-chroot $INSTALLDIR sh -c "pacman -S --noconfirm qubes-vm-xen" ./mnt_archlinux_dvd/usr/bin/arch-chroot $INSTALLDIR sh -c "pacman -S --noconfirm qubes-vm-core" ./mnt_archlinux_dvd/usr/bin/arch-chroot $INSTALLDIR sh -c "pacman -S --noconfirm qubes-vm-gui" echo "--> Updating template fstab file..." cat >> $INSTALLDIR/etc/fstab < Cleaning up..." umount $INSTALLDIR/mnt/qubes-rpms-mirror-repo umount mnt_archlinux_dvd