Bug 235129 - gparted needs to use new hal-lock(1) tool
gparted needs to use new hal-lock(1) tool
Product: Fedora
Classification: Fedora
Component: gparted (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Deji Akingunola
Fedora Extras Quality Assurance
: Reopened
Depends On:
Blocks: FC7Blocker 234082 F7Test4
  Show dependency treegraph
Reported: 2007-04-03 16:59 EDT by David Zeuthen
Modified: 2013-03-05 22:49 EST (History)
1 user (show)

See Also:
Fixed In Version: gparted-0.3.3-10.fc7
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-04-19 14:06:35 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description David Zeuthen 2007-04-03 16:59:09 EDT
GParted currently uses an inappropriate way of locking out automounters by
leaving a HAL fdi file telling HAL to ignore all volumes resulting in all Mount
actions being denied. This is bad because the file sometimes is not deleted. 

There's new API/tools in HAL 0.5.9 specifically written with gparted and
anaconda in mind. Just use a wrapper that does

  hal-lock  --interface  org.freedesktop.Hal.Device.Storage --exclusive --run

Make sure you run this as root; e.g. after consolehelper bits. Please fix this
for Fedora 7; one of my coworkers just ran into this issue... Thanks!
Comment 1 Deji Akingunola 2007-04-03 17:13:48 EDT
Hi David,

You're so reading my mind, I just did this last night (see the commit mail @
and a follow up
I was waiting for the build to be pushed out before commenting on it on the
FC6's USB-mount bug. Thanks for the new tool, it works like a charm.
Comment 2 David Zeuthen 2007-04-03 17:29:35 EDT
Awesome, thank you so much for fixing this!
Comment 3 David Zeuthen 2007-04-16 14:37:10 EDT
Seems like this doesn't work:

[davidz@zelda ~]$ cat /etc/security/console.apps/gparted

[davidz@zelda ~]$ cat /usr/bin/run-gparted 
%{_bindir}/hal-lock --interface org.freedesktop.Hal.Device.Storage  --exclusive
--run %{_sbindir}/gparted

[davidz@zelda ~]$ cat /usr/share/applications/fedora-gparted.desktop  |grep Exec

[davidz@zelda ~]$ rpm -q gparted
Comment 4 Deji Akingunola 2007-04-16 14:57:15 EDT
(In reply to comment #3)
> Seems like this doesn't work:

I don't understand, how do you mean doesn't work? /usr/bin/gparted is a link to
consolehelpher, which runs %{_bindir}/run_gparted when its called. It sure does
WORKSFORME ;), unless I'm missing something simply obvious. 
Comment 5 David Zeuthen 2007-04-16 15:14:09 EDT
What I pasted in comment 3 was the content of the _files_ shipped in the RPM's.

1. You can't use ${_bindir}; it needs to be expanded in the final files. 

2. The console helper file says run_gparted while the binary is actually called

3. Also, g-v-m happily automounts when launching gparted.

Comment 6 Deji Akingunola 2007-04-16 15:27:36 EDT
Wow thanks, its so stupid of e to make all those mistakes and typos. I have
fixed them in cvs.
Comment 7 David Zeuthen 2007-04-18 16:02:53 EDT
still happening with gparted-0.3.3-9.fc7

%{_bindir}/hal-lock --interface org.freedesktop.Hal.Device.Storage  --exclusive 
--run /usr/sbin/gparted

Comment 8 Deji Akingunola 2007-04-18 16:06:15 EDT
Yeah, sorry about that, have already fixed it in gparted-0.3.3-10.fc7
Comment 9 Deji Akingunola 2007-04-19 14:06:35 EDT
This is now finally fixed with gparted-0.3.3-10.fc7. i get a pop-up which says
the enlcosed interface is locked if I connect an external drive while gparted is
Comment 10 David Zeuthen 2007-04-19 14:17:02 EDT
Thanks for doing this - I just confirmed that it's working.

I've filed bug 237152 against gnome-mount for the issue mention in comment 9.
Will work on a fix for Fedora 7.

Note You need to log in before you can comment on or make changes to this bug.