diff --git a/archlinux/PKGBUILD b/archlinux/PKGBUILD index 74c5304..0efc2e7 100644 --- a/archlinux/PKGBUILD +++ b/archlinux/PKGBUILD @@ -6,7 +6,7 @@ # Maintainer: Olivier Medoc pkgname=qubes-vm-core pkgver=`cat version` -pkgrel=16 +pkgrel=17 epoch= pkgdesc="The Qubes core files for installation inside a Qubes VM." arch=("x86_64") @@ -25,10 +25,10 @@ options=() install=PKGBUILD.install changelog= -source=() +source=(PKGBUILD.qubes-ensure-lib-modules.service) noextract=() -md5sums=() #generate with 'makepkg -g' +md5sums=('88f4b3d5b156888a9d38f5bc28702ab8') #generate with 'makepkg -g' build() { @@ -93,6 +93,9 @@ package() { # Remove fedora specific scripts rm $pkgdir/etc/fstab + # Install systemd script allowing to automount /lib/modules + install -m 644 $srcdir/PKGBUILD.qubes-ensure-lib-modules.service $pkgdir/lib/systemd/system/qubes-ensure-lib-modules.service + } # vim:set ts=2 sw=2 et: diff --git a/archlinux/PKGBUILD.install b/archlinux/PKGBUILD.install index 685875e..10b6152 100644 --- a/archlinux/PKGBUILD.install +++ b/archlinux/PKGBUILD.install @@ -97,7 +97,7 @@ done update_systemd() { -for srv in qubes-dvm qubes-sysinit qubes-misc-post qubes-netwatcher qubes-network qubes-firewall qubes-yum-proxy qubes-qrexec-agent; do +for srv in qubes-dvm qubes-sysinit qubes-misc-post qubes-netwatcher qubes-network qubes-firewall qubes-yum-proxy qubes-qrexec-agent qubes-ensure-lib-modules; do systemctl enable $srv.service 2> /dev/null done @@ -247,7 +247,7 @@ post_remove() { rm /lib/firmware/updates fi - for srv in qubes-dvm qubes-sysinit qubes-misc-post qubes-netwatcher qubes-network qubes-firewall qubes-qrexec-agent qubes-yum-proxy; do + for srv in qubes-dvm qubes-sysinit qubes-misc-post qubes-netwatcher qubes-network qubes-firewall qubes-qrexec-agent qubes-yum-proxy qubes-ensure-lib-modules; do systemctl disable $srv.service done systemctl disable qubes-update-check.timer diff --git a/archlinux/PKGBUILD.qubes-ensure-lib-modules.service b/archlinux/PKGBUILD.qubes-ensure-lib-modules.service new file mode 100644 index 0000000..ee44b7c --- /dev/null +++ b/archlinux/PKGBUILD.qubes-ensure-lib-modules.service @@ -0,0 +1,17 @@ +[Unit] +Description=Qubes verification of /usr/lib/modules +DefaultDependencies=no +Documentation= +ConditionPathExists=/dev/xvdd +Before=systemd-modules-load.service +Before=systemd-udevd.service +Before=local-fs-pre.target +After=systemd-remount-fs.service + +[Service] +Type=oneshot +ExecStart=/bin/mount /dev/xvdd /usr/lib/modules +StandardOutput=syslog + +[Install] +WantedBy=sysinit.target