Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 198002 - sys-apps/ivman- 0.6.14 doesn't unmount devices via pmount
Summary: sys-apps/ivman- 0.6.14 doesn't unmount devices via pmount
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-03 21:54 UTC by Sergey Galkin
Modified: 2010-08-12 13:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Galkin 2007-11-03 21:54:31 UTC
in default config ivman after remove usb flash drive called "pumount /dev/sdb1" (in example), but udev remove /dev/sdb1 before and "pumount /dev/sdb1" not work
 

Reproducible: Always

Steps to Reproduce:
1.connect-disconnect flash drive
2.connect-disconnect flash drive
3.connect-disconnect flash drive

Actual Results:  
many /dev/sd[d..z]1 mounted device

Expected Results:  
not any /dev/sd[d..z]1 mounted device

maybe make change in default  /etc/ivman/IvmConfigBase.xml
something like this
<ivm:Option name="mountcommand" value="/usr/bin/pmount '$hal.block.device$'" />
<ivm:Option name="umountcommand" value="/usr/bin/sudo /bin/umount '$hal.block.device$'" />

and in /etc/sudoers add
ivman   ALL = NOPASSWD: /bin/umount
Comment 1 Sergey Galkin 2007-11-05 06:01:16 UTC
> <ivm:Option name="mountcommand" value="/usr/bin/pmount '$hal.block.device$'" />
change to
<ivm:Option name="mountcommand" value="/usr/bin/pmount -u 002 '$hal.block.device$'" />

Comment 2 Sergey Galkin 2007-11-05 07:04:10 UTC
(In reply to comment #0)
> <ivm:Option name="umountcommand" value="/usr/bin/sudo /bin/umount
> '$hal.block.device$'" />
change to

<ivm:Option name="umountcommand" value="/usr/bin/sudo /bin/umount -l '$hal.block.device$'" />
Comment 3 Stefan Schweizer (RETIRED) gentoo-dev 2007-11-09 08:38:31 UTC
dont think its possible for an ebuild to modify sudoers. Also sounds highly risky to allow umount .. Can we not use pumount instead?
Comment 4 Sergey Galkin 2007-11-09 19:13:06 UTC
(In reply to comment #3)
> dont think its possible for an ebuild to modify sudoers. Also sounds highly
> risky to allow umount .. Can we not use pumount instead?
> 

you are right, sudo and umount is bad idea for ebuild
I try make this umount through udev rules,
and add /etc/udev/rules.d/10-local.rules
ACTION=="remove", BUS=="usb", KERNEL=="sd*", SUBSYSTEM=="block",  RUN+="/bin/umount %p"
but is don't workw
I think way via udev more correct (while developer pmount not allow option not only /dev/*)
Comment 5 Sergey Galkin 2007-11-09 19:36:51 UTC
add Feature Requests in developer pmount
http://alioth.debian.org/tracker/index.php?func=detail&aid=306696&group_id=31157&atid=412982
Comment 6 Markos Chandras (RETIRED) gentoo-dev 2010-08-12 13:41:34 UTC
ivman has been masked for removal

bug #257058