From eadaf502bc833d1661b165eac720b5a2f77e8b3f Mon Sep 17 00:00:00 2001 From: Olivier Medoc Date: Thu, 18 Apr 2013 13:34:50 +0200 Subject: [PATCH] archlinux: fix postinstall scripts --- archlinux/PKGBUILD | 2 +- archlinux/PKGBUILD.install | 25 +++++++++++-------------- 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/archlinux/PKGBUILD b/archlinux/PKGBUILD index 23b485e..2fdac07 100644 --- a/archlinux/PKGBUILD +++ b/archlinux/PKGBUILD @@ -6,7 +6,7 @@ # Maintainer: Olivier Medoc pkgname=qubes-vm-core pkgver=`cat version` -pkgrel=3 +pkgrel=6 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 4089248..6bef5f9 100644 --- a/archlinux/PKGBUILD.install +++ b/archlinux/PKGBUILD.install @@ -146,9 +146,9 @@ systemctl enable NetworkManager.service 2> /dev/null ## arg 1: the new package version -#pre_install() { - # do something here -#} +pre_install() { + echo "Pre install..." +} ## arg 1: the new package version post_install() { @@ -162,10 +162,11 @@ if [ -e /etc/init/serial.conf ] && ! [ -f /var/lib/qubes/serial.orig ] ; then cp /etc/init/serial.conf /var/lib/qubes/serial.orig fi -#echo "--> Disabling SELinux..." -sed -e s/^SELINUX=.*$/SELINUX=disabled/ /etc/selinux/config.processed -mv /etc/selinux/config.processed /etc/selinux/config -setenforce 0 2>/dev/null +# SELinux is not enabled on archlinux +# echo "--> Disabling SELinux..." +# sed -e s/^SELINUX=.*$/SELINUX=disabled/ /etc/selinux/config.processed +# mv /etc/selinux/config.processed /etc/selinux/config +# setenforce 0 2>/dev/null mkdir -p /rw @@ -184,15 +185,11 @@ update_systemd ## arg 1: the new package version ## arg 2: the old package version -#pre_upgrade() { +pre_upgrade() { # do something here -#} + echo "Pre upgrade..." +} -## arg 1: the new package version -## arg 2: the old package version -#post_upgrade() { - # do something here -#} ## arg 1: the old package version pre_remove() {