[Bug 433395] New: mkinitrd after su uses ~user/bin/umount instead of /bin/ umount
https://bugzilla.novell.com/show_bug.cgi?id=433395 Summary: mkinitrd after su uses ~user/bin/umount instead of /bin/umount Product: openSUSE 10.3 Version: Final Platform: x86-64 OS/Version: Linux Status: NEW Severity: Major Priority: P5 - None Component: Installation AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: 7eggert@gmx.de QAContact: jsrain@novell.com Found By: Community User I created a wrapper for umount, since I don't like to remember if I have to use /bin/umount, /sbin/umount.cifs or "for a in list; do fusermount -u "$a"; done". This creates some amount of bogus error messages when unmounting, but it works better than all alternatives I can think of - except for /bin/umount doing the right thing in the first place. Unfortunately, mkinitrd does not use /bin/umount when creating the initrd, but it copies my wrapper script (being first in the path) to initrd:/bin/umount. This turns out to be a very bad idea. I did not use "su -" because I wanted to stay in the current directory. Obviously I changed pest for cholera. My umount script (In case you're interested) #!/bin/sh for a in "$@" do fusermount -u "$a" || /bin/umount "$a" || /sbin/umount.cifs "$a" done -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=433395 Marcus Meissner <meissner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.provo.novell.com |hare@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=433395 Hannes Reinecke <hare@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|hare@novell.com |agraf@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=433395 User agraf@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=433395#c1 Alexander Graf <agraf@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #1 from Alexander Graf <agraf@novell.com> 2008-12-06 03:02:02 MST --- I'm sorry to tell you that this is by design. Mkinitrd does some assumptions on what a "sane system" is, including that the PATH points to the binaries it expects, without introducing further dependencies. So while I do understand your situation, I can't think of a good solution that would work for everyone. You really should do a su - when you build the initrd ;-). In other words, if you can think of a good solution that doesn't restrict the current flexibility in the program search algorithm, please reopen this bug and tell me! I'm really eager to learn of a way to handle this special case without making it one. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com