Bug 131547

Summary: /sbin/udev.mount.sh can never run
Product: [openSUSE] SUSE LINUX 10.0 Reporter: jo de baer <jo.debaer>
Component: HotplugAssignee: Stefan Scheler <sscheler>
Status: VERIFIED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: yanestra
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on: 143352    
Bug Blocks:    

Description jo de baer 2005-10-31 13:20:59 UTC
in /etc/udev/rules.d/50-udev.rules there is a line :

SUBSYSTEM=="block", KERNEL=="sd*[0-9]|hd*[0-9]", ACTION=="add",
RUN+="/sbin/udev.mount.sh"

The first check in that script is :
test "$HOTPLUG_MOUNT_FSTAB" != yes && exit

Now - that HOTPLUG_MOUNT_FSTAB variable comes from
/etc/sysconfig/storage, which is not source by /sbin/udev.mount.sh ... so
it is always empty.

Result : /sbin/udev.mount.sh will afaik never run.
Comment 1 Kay Sievers 2005-11-10 02:17:31 UTC
Correct, it is broken and never worked. 10.1 will have a different version.
Comment 2 Kay Sievers 2005-11-29 13:18:20 UTC
*** Bug 134595 has been marked as a duplicate of this bug. ***
Comment 3 Kay Sievers 2005-12-19 01:44:15 UTC
The script in the current version is corrected regarding the bug, but the needed "hotplug" flag in the fstab is not accepted by mount. :) Hannes, any ideas? Is "hotplug" in fstab still expected to work?
Comment 4 Kay Sievers 2006-01-13 20:07:14 UTC
Christian, here is the mount.sh that we should move to sysconfig, if we still want to do it that way. As discussed earlier today, I will remove it from the udev package. Thanks! 
Comment 5 Christian Zoz 2006-01-15 17:59:48 UTC
Hannes, do you know more why 'hotplug' is not accepted anymore by mount?

Further did you speak about removing mount.sh and implementing this stuff as udev rules. What about that? Do you have some (un)finished work somewhere.
Comment 6 Christian Zoz 2006-01-16 11:59:33 UTC
Did we remove the 'hotplug' option of mount, because we wanted to mount all devices via udev anyway and therefore did not need this option?

Since boot.localfs is still the old script which mounts and not only checks we need option 'hotplug' again. 
Comment 7 Christian Zoz 2006-01-16 12:00:52 UTC
Hannes, can you tell me more?
Comment 8 Stefan Scheler 2006-01-16 12:11:06 UTC
(In reply to comment #6)
> Did we remove the 'hotplug' option of mount, because we wanted to mount all
> devices via udev anyway and therefore did not need this option?

The patch is still in there and used. I have no idea why it doesn't work any longer.
Comment 9 Christian Zoz 2006-01-16 14:43:39 UTC
See bug 143352 for mount option 'hotplug'.

Stefan, please remove the variables from sysconfig/storage in mount.sh and call fsck directly. But please keep logging fsck/mount failures to syslog.

Please adapt also README.storage (for next beta, not today).

When performing an system update /etc/sysconfig/storage has to be removed.
Comment 11 Stefan Scheler 2006-02-23 10:25:17 UTC
I think this is fixed.
Comment 12 Ihno Krumreich 2007-06-04 16:38:55 UTC
Closed.