Re: [PATCH] Inhibit devkit-disks during a live install

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Looks good,

Regards,

Hans


Jeremy Katz wrote:
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
---
 liveinst/liveinst.sh |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/liveinst/liveinst.sh b/liveinst/liveinst.sh
index 744a2b9..cdba58f 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 $*

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux