summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-06-02 17:12:29 +0000
committerOlivier Blin <oblin@mandriva.com>2008-06-02 17:12:29 +0000
commit64cbc2c3974b233d01a9743a142a72477b9a69fd (patch)
tree2b8602e9467e0ad2e779e484496ddeb6c4b8bd9f
parent3f623c51e69918023c250a648d3b67cc8e1d0283 (diff)
downloaddraklive-install-64cbc2c3974b233d01a9743a142a72477b9a69fd.tar
draklive-install-64cbc2c3974b233d01a9743a142a72477b9a69fd.tar.gz
draklive-install-64cbc2c3974b233d01a9743a142a72477b9a69fd.tar.bz2
draklive-install-64cbc2c3974b233d01a9743a142a72477b9a69fd.tar.xz
draklive-install-64cbc2c3974b233d01a9743a142a72477b9a69fd.zip
use wrapper to lock media managers during live install (not to get popups/automounts about new partitions)
-rwxr-xr-xdraklive-install-lock-storage8
-rw-r--r--draklive-install.desktop2
-rw-r--r--mandriva-draklive-install.desktop2
3 files changed, 10 insertions, 2 deletions
diff --git a/draklive-install-lock-storage b/draklive-install-lock-storage
new file mode 100755
index 0000000..e003053
--- /dev/null
+++ b/draklive-install-lock-storage
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+CMD=/usr/sbin/draklive-install
+
+hal-lock --interface org.freedesktop.Hal.Device.Storage --exclusive --run $CMD
+# run without hal lock if it fails
+[ "$?" != 0 ] && $CMD
+
diff --git a/draklive-install.desktop b/draklive-install.desktop
index c1964df..068c210 100644
--- a/draklive-install.desktop
+++ b/draklive-install.desktop
@@ -1,6 +1,6 @@
[Desktop Entry]
Encoding=UTF-8
-Exec=/usr/sbin/draklive-install
+Exec=/usr/sbin/draklive-install-lock-storage
Icon=MandrivaOne-install-icon
Terminal=false
Type=Application
diff --git a/mandriva-draklive-install.desktop b/mandriva-draklive-install.desktop
index 9527861..dc51953 100644
--- a/mandriva-draklive-install.desktop
+++ b/mandriva-draklive-install.desktop
@@ -2,7 +2,7 @@
Encoding=UTF-8
Name=Live Install
Comment=Install your Mandriva live system to disk
-Exec=/usr/sbin/draklive-install
+Exec=/usr/sbin/draklive-install-lock-storage
Icon=MandrivaOne-install-icon
Terminal=false
Type=Application