don't unmount usb if it in fstab
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
usbmount (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: usbmount
don't unmount usb if it in fstab
now
elif [ "$1" = remove ]; then
# A block or partition device has been removed.
# Test if it is mounted.
while read device mountpoint fstype remainder; do
if [ "$DEVNAME" = "$device" ]; then
need be
elif [ "$1" = remove ]; then
# Try to use specifications in /etc/fstab first.
if grep -q "^[[:blank:
log info "executing command: umount -U $UUID"
umount -U $UUID || log err "umount wan't successful; return code $?"
elif egrep -q "^[[:blank:
log info "executing command: umount $DEVNAME"
umount $DEVNAME || log err "umount wan't successful; return code $?"
else
# A block or partition device has been removed.
# Test if it is mounted.
while read device mountpoint fstype remainder; do
if [ "$DEVNAME" = "$device" ]; then
done < /proc/mounts
fi
Hi.
On Dec 14 2010, J.L. wrote:
> Binary package hint: usbmount
>
> don't unmount usb if it in fstab
I didn't understand what you tried to say here. Do you mean that usbmount
*doesn't* unmount something if it is listed in fstab or that it *shouldn't*
unmount something listed in fstab?
It is not clear from your description.
BTW, feel free to have your changes against the versions of usbmount at:
http:// git.debian. org/?p= usbmount/ usbmount. git
Regards,
-- {ime.usp. br,gmail. com} : GPG key 4096R/BCFCAAAA rb.doesntexist. org : Packages for LaTeX : algorithms. berlios. de qa.debian. org/developer. php?login= rbrito% 40ime.usp. br
Rogério Brito : rbrito@
http://
DebianQA: http://