Browse Source

archlinux: fix postinstall scripts

Olivier Medoc 11 years ago
parent
commit
eadaf502bc
2 changed files with 12 additions and 15 deletions
  1. 1 1
      archlinux/PKGBUILD
  2. 11 14
      archlinux/PKGBUILD.install

+ 1 - 1
archlinux/PKGBUILD

@@ -6,7 +6,7 @@
 # Maintainer: Olivier Medoc <o_medoc@yahoo.fr>
 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")

+ 11 - 14
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 >/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 >/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() {