diff --git a/archlinux/PKGBUILD b/archlinux/PKGBUILD index 0e88aa3..a108af4 100644 --- a/archlinux/PKGBUILD +++ b/archlinux/PKGBUILD @@ -6,7 +6,7 @@ # Maintainer: Olivier Medoc pkgname=qubes-vm-core pkgver=`cat version` -pkgrel=7 +pkgrel=11 epoch= pkgdesc="The Qubes core files for installation inside a Qubes VM." arch=("x86_64") diff --git a/archlinux/PKGBUILD.install b/archlinux/PKGBUILD.install index 6bef5f9..7f1e42c 100644 --- a/archlinux/PKGBUILD.install +++ b/archlinux/PKGBUILD.install @@ -148,6 +148,19 @@ systemctl enable NetworkManager.service 2> /dev/null ## arg 1: the new package version pre_install() { echo "Pre install..." + + # do this whole %pre thing only when updating for the first time... + + mkdir -p /var/lib/qubes + + # Add qubes core related fstab entries + echo "xen /proc/xen xenfs defaults 0 0" >> /etc/fstab + echo "/dev/xvdi /mnt/removable auto noauto,user,rw 0 0" >> /etc/fstab + #if [ -e /etc/fstab ] ; then + # mv /etc/fstab /var/lib/qubes/fstab.orig + #fi + + useradd --create-home user } ## arg 1: the new package version