summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2017-02-10 23:43:47 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2017-02-12 12:57:27 +0000
commitc5512813ad4795f5f3596a7963b84d821604f212 (patch)
tree0c61addfd58e0126e5b882f8841afbedbafc2816 /perl-install/standalone
parentbd4c2c2f5c8b92e1cd0e72ba5471dd526c535279 (diff)
downloaddrakx-c5512813ad4795f5f3596a7963b84d821604f212.tar
drakx-c5512813ad4795f5f3596a7963b84d821604f212.tar.gz
drakx-c5512813ad4795f5f3596a7963b84d821604f212.tar.bz2
drakx-c5512813ad4795f5f3596a7963b84d821604f212.tar.xz
drakx-c5512813ad4795f5f3596a7963b84d821604f212.zip
Inhibit udisks2 when running drakdisk (mga#20247).
This prevents disks/partitions being auto-mounted by e.g. Thunar when drakdisk probes the disks or makes changes, which can lead to disk corruption.
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/drakdisk10
1 files changed, 10 insertions, 0 deletions
diff --git a/perl-install/standalone/drakdisk b/perl-install/standalone/drakdisk
new file mode 100755
index 000000000..a40edf5ed
--- /dev/null
+++ b/perl-install/standalone/drakdisk
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+CMD=/usr/libexec/diskdrake
+
+ps -C udisksd > /dev/null
+if [ $? -eq 0 -a -x /usr/lib/udisks2/udisks2-inhibit ] ; then
+ /usr/lib/udisks2/udisks2-inhibit $CMD "$@"
+else
+ $CMD "$@"
+fi