Mageia Bugzilla – Attachment 8948 Details for
Bug 20247
INTERNAL ERROR: unknown device sdaX (probably caused by Thunar auto-mounting partitions and installer not being aware they're mounted)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Patch to prevent disks being auto-mounted by Thunar when drakdisk is running
0001-Inhibit-udisks2-when-running-drakdisk-mga-20247.patch (text/plain), 1.89 KB, created by
Martin Whitaker
on 2017-02-11 15:18:03 CET
(
hide
)
Description:
Patch to prevent disks being auto-mounted by Thunar when drakdisk is running
Filename:
MIME Type:
Creator:
Martin Whitaker
Created:
2017-02-11 15:18:03 CET
Size:
1.89 KB
patch
obsolete
>From ea7a1108f0bdef989460ad3b3e73a0b22e074700 Mon Sep 17 00:00:00 2001 >From: Martin Whitaker <mageia@martin-whitaker.me.uk> >Date: Fri, 10 Feb 2017 23:43:47 +0000 >Subject: [PATCH] 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. > >diff --git a/perl-install/Makefile.drakxtools b/perl-install/Makefile.drakxtools >index a8b5a1a..4975e82 100644 >--- a/perl-install/Makefile.drakxtools >+++ b/perl-install/Makefile.drakxtools >@@ -47,7 +47,7 @@ install: > mv -f $(SBINDEST)/drak{autologin,auth,boot,clock,font,perm,sec,ups,xservices} $(LIBEXECDEST) > mv -f $(SBINDEST)/logdrake $(LIBEXECDEST)/draklog > mv -f $(SBINDEST)/drakedm $(LIBEXECDEST)/drakdm >- mv -f $(SBINDEST)/diskdrake $(LIBEXECDEST)/drakdisk >+ mv -f $(SBINDEST)/diskdrake $(LIBEXECDEST)/drakdisk-unprotected > mv -f $(SBINDEST)/harddrake2 $(LIBEXECDEST)/drakhardware > mv -f $(SBINDEST)/scannerdrake $(LIBEXECDEST)/drakscanner > >@@ -62,6 +62,7 @@ install: > echo 'RESTRICT=yes' > $(PREFIX)/etc/security/fileshare.conf > > install -D standalone/drakdoc $(BINDEST)/ >+ install -D standalone/drakdisk $(LIBEXECDEST) > install -D standalone/finish-install.xsetup $(PREFIX)/etc/X11/xsetup.d/$(XSETUPLEVEL)finish-install.xsetup > install -D standalone/notify-x11-free-driver-switch.xsetup $(PREFIX)/etc/X11/xsetup.d/$(XSETUPLEVEL_HARDDRAKE)notify-x11-free-driver-switch.xsetup > install -d $(PREFIX)/etc/sysconfig >diff --git a/perl-install/standalone/drakdisk b/perl-install/standalone/drakdisk >new file mode 100755 >index 0000000..7fe1dbe >--- /dev/null >+++ b/perl-install/standalone/drakdisk >@@ -0,0 +1,10 @@ >+#!/bin/sh >+ >+CMD=/usr/libexec/drakdisk-unprotected >+ >+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 >-- >2.10.2 >
From ea7a1108f0bdef989460ad3b3e73a0b22e074700 Mon Sep 17 00:00:00 2001 From: Martin Whitaker <mageia@martin-whitaker.me.uk> Date: Fri, 10 Feb 2017 23:43:47 +0000 Subject: [PATCH] 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. diff --git a/perl-install/Makefile.drakxtools b/perl-install/Makefile.drakxtools index a8b5a1a..4975e82 100644 --- a/perl-install/Makefile.drakxtools +++ b/perl-install/Makefile.drakxtools @@ -47,7 +47,7 @@ install: mv -f $(SBINDEST)/drak{autologin,auth,boot,clock,font,perm,sec,ups,xservices} $(LIBEXECDEST) mv -f $(SBINDEST)/logdrake $(LIBEXECDEST)/draklog mv -f $(SBINDEST)/drakedm $(LIBEXECDEST)/drakdm - mv -f $(SBINDEST)/diskdrake $(LIBEXECDEST)/drakdisk + mv -f $(SBINDEST)/diskdrake $(LIBEXECDEST)/drakdisk-unprotected mv -f $(SBINDEST)/harddrake2 $(LIBEXECDEST)/drakhardware mv -f $(SBINDEST)/scannerdrake $(LIBEXECDEST)/drakscanner @@ -62,6 +62,7 @@ install: echo 'RESTRICT=yes' > $(PREFIX)/etc/security/fileshare.conf install -D standalone/drakdoc $(BINDEST)/ + install -D standalone/drakdisk $(LIBEXECDEST) install -D standalone/finish-install.xsetup $(PREFIX)/etc/X11/xsetup.d/$(XSETUPLEVEL)finish-install.xsetup install -D standalone/notify-x11-free-driver-switch.xsetup $(PREFIX)/etc/X11/xsetup.d/$(XSETUPLEVEL_HARDDRAKE)notify-x11-free-driver-switch.xsetup install -d $(PREFIX)/etc/sysconfig diff --git a/perl-install/standalone/drakdisk b/perl-install/standalone/drakdisk new file mode 100755 index 0000000..7fe1dbe --- /dev/null +++ b/perl-install/standalone/drakdisk @@ -0,0 +1,10 @@ +#!/bin/sh + +CMD=/usr/libexec/drakdisk-unprotected + +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 -- 2.10.2
View Attachment As Raw
Actions:
View
Attachments on
bug 20247
:
8933
| 8948 |
8967