summaryrefslogtreecommitdiffstats
path: root/liveinst/liveinst.sh
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2007-04-03 22:22:29 +0000
committerJeremy Katz <katzj@redhat.com>2007-04-03 22:22:29 +0000
commitbb2b5369eb254f735db40b4af99626d2a5b69dae (patch)
tree7a82b3c9c85fa53e286d104117c7b1c55e35f579 /liveinst/liveinst.sh
parent617c757dfc26ef8c56651d5062124dc8cba79aca (diff)
downloadanaconda-bb2b5369eb254f735db40b4af99626d2a5b69dae.tar.gz
anaconda-bb2b5369eb254f735db40b4af99626d2a5b69dae.tar.xz
anaconda-bb2b5369eb254f735db40b4af99626d2a5b69dae.zip
2007-04-03 Jeremy Katz <katzj@redhat.com>
* anaconda.spec: Bump version.
Diffstat (limited to 'liveinst/liveinst.sh')
-rw-r--r--liveinst/liveinst.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/liveinst/liveinst.sh b/liveinst/liveinst.sh
index ab1a0aa79..f295a2a6a 100644
--- a/liveinst/liveinst.sh
+++ b/liveinst/liveinst.sh
@@ -27,8 +27,17 @@ fi
# eventually, we might want to allow a more "normal" install path
ANACONDA="/usr/sbin/anaconda --method=livecd://$LIVE_MOUNT_PATH --lang $LANG"
+if [ -x /usr/sbin/setenforce -a -e /selinux/enforce ]; then
+ current=$(cat /selinux/enforce)
+ /usr/sbin/setenforce 0
+fi
+
if [ -x /usr/bin/hal-lock ]; then
/usr/bin/hal-lock --interface org.freedesktop.Hal.Device.Storage --exclusive --run "$ANACONDA"
else
$ANACONDA
fi
+
+if [ -n $current ]; then
+ /usr/sbin/setenforce $current
+fi