archlinux: fix postinstall scripts
This commit is contained in:
parent
6b8ebe6e2c
commit
eadaf502bc
@ -6,7 +6,7 @@
|
|||||||
# Maintainer: Olivier Medoc <o_medoc@yahoo.fr>
|
# Maintainer: Olivier Medoc <o_medoc@yahoo.fr>
|
||||||
pkgname=qubes-vm-core
|
pkgname=qubes-vm-core
|
||||||
pkgver=`cat version`
|
pkgver=`cat version`
|
||||||
pkgrel=3
|
pkgrel=6
|
||||||
epoch=
|
epoch=
|
||||||
pkgdesc="The Qubes core files for installation inside a Qubes VM."
|
pkgdesc="The Qubes core files for installation inside a Qubes VM."
|
||||||
arch=("x86_64")
|
arch=("x86_64")
|
||||||
|
@ -146,9 +146,9 @@ systemctl enable NetworkManager.service 2> /dev/null
|
|||||||
|
|
||||||
|
|
||||||
## arg 1: the new package version
|
## arg 1: the new package version
|
||||||
#pre_install() {
|
pre_install() {
|
||||||
# do something here
|
echo "Pre install..."
|
||||||
#}
|
}
|
||||||
|
|
||||||
## arg 1: the new package version
|
## arg 1: the new package version
|
||||||
post_install() {
|
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
|
cp /etc/init/serial.conf /var/lib/qubes/serial.orig
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# SELinux is not enabled on archlinux
|
||||||
# echo "--> Disabling SELinux..."
|
# echo "--> Disabling SELinux..."
|
||||||
sed -e s/^SELINUX=.*$/SELINUX=disabled/ </etc/selinux/config >/etc/selinux/config.processed
|
# sed -e s/^SELINUX=.*$/SELINUX=disabled/ </etc/selinux/config >/etc/selinux/config.processed
|
||||||
mv /etc/selinux/config.processed /etc/selinux/config
|
# mv /etc/selinux/config.processed /etc/selinux/config
|
||||||
setenforce 0 2>/dev/null
|
# setenforce 0 2>/dev/null
|
||||||
|
|
||||||
mkdir -p /rw
|
mkdir -p /rw
|
||||||
|
|
||||||
@ -184,15 +185,11 @@ update_systemd
|
|||||||
|
|
||||||
## arg 1: the new package version
|
## arg 1: the new package version
|
||||||
## arg 2: the old package version
|
## arg 2: the old package version
|
||||||
#pre_upgrade() {
|
pre_upgrade() {
|
||||||
# do something here
|
# 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
|
## arg 1: the old package version
|
||||||
pre_remove() {
|
pre_remove() {
|
||||||
|
Loading…
Reference in New Issue
Block a user