summaryrefslogtreecommitdiffstats
path: root/liveinst
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2009-03-19 12:55:06 -0400
committerJeremy Katz <katzj@redhat.com>2009-03-19 12:55:06 -0400
commit582dfa9e781a172765b5c2f9ce770a41bac77e68 (patch)
tree377ef8b895ff4cec0e5c3bcbe5e015533a067590 /liveinst
parent3264da56554cebba460f18efbb2e01231b5b9d46 (diff)
downloadanaconda-582dfa9e781a172765b5c2f9ce770a41bac77e68.tar.gz
anaconda-582dfa9e781a172765b5c2f9ce770a41bac77e68.tar.xz
anaconda-582dfa9e781a172765b5c2f9ce770a41bac77e68.zip
Inhibit devkit-disks during a live install
This is a bit of a big hammer, but disable devkit-disks from touching things during a live install until we can do something a little bit more fine-grained
Diffstat (limited to 'liveinst')
-rw-r--r--liveinst/liveinst.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/liveinst/liveinst.sh b/liveinst/liveinst.sh
index 744a2b9bd..cdba58f03 100644
--- a/liveinst/liveinst.sh
+++ b/liveinst/liveinst.sh
@@ -61,7 +61,9 @@ umount /media/*
/sbin/swapoff -a
/sbin/lvm vgchange -an --ignorelockingfailure
-if [ -x /usr/bin/hal-lock -a -e /var/lock/subsys/haldaemon ]; then
+if [ -x /usr/bin/devkit-disks ]; then
+ /usr/bin/devkit-disks --inhibit -- /usr/bin/hal-lock --interface org.freedesktop.Hal.Device.Storage --exclusive --run "$ANACONDA $*"
+elif [ -x /usr/bin/hal-lock -a -e /var/lock/subsys/haldaemon ]; then
/usr/bin/hal-lock --interface org.freedesktop.Hal.Device.Storage --exclusive --run "$ANACONDA $*"
else
$ANACONDA $*