Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 359063 - sys-apps/openrc-0.6.8 uses umount options unsupported by busybox in netmount
Summary: sys-apps/openrc-0.6.8 uses umount options unsupported by busybox in netmount
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-15 17:56 UTC by Ed Wildgoose
Modified: 2021-06-02 21:58 UTC (History)
2 users (show)

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 Ed Wildgoose 2011-03-15 17:56:24 UTC
At least sys-apps/openrc-0.6.8 uses "umount -O" in the /etc/init.d/netmount:stop() script

       if [ "$RC_UNAME" = Linux ]; then
               umount -a -O _netdev
               retval=$?                   
       fi

Busybox doesn't support the -O option, which mildly breaks shutdown on busybox based systems

I dare say this won't get looked at with any high priority, but busybox makes for a very nice small system...

I haven't got a patch, partly because I'm not quite sure what this is supposed to do?  I have a system with various cifs/sshfs filesystems mounted and none seem to be of type "_netdev", so I'm not quite sure what this is hitting?

Any suggestions?
Comment 1 SpanKY gentoo-dev 2011-03-15 19:26:58 UTC
busybox should implement this
Comment 2 Roy Marples 2014-09-11 15:55:19 UTC
My busybox umount has -O .... can this be closed now?
Comment 3 René Rhéaume 2014-11-02 02:31:10 UTC
(In reply to Roy Marples from comment #2)
> My busybox umount has -O .... can this be closed now?

Where did you see that? There is currently no -O option ofr umount in current busybox master

http://git.busybox.net/busybox/tree/util-linux/umount.c
Comment 4 cassioavila 2021-05-31 22:49:11 UTC
sys-apps/busybox-1.32.1 seem to have the -O option for mounting. I was thinking about if it was possible to make coreutils into a virtual package, so gentoo would support multiple coreutils implementations cleanly, it would be really useful for embedded gentoo systems and desktop users that just prefer using busybox. There is something that is really blocking this? Or is just time to implement and test this feature?
Comment 5 Ed Wildgoose 2021-06-01 12:44:33 UTC
(In reply to cassioavila from comment #4)
> sys-apps/busybox-1.32.1 seem to have the -O option for mounting. I was
> thinking about if it was possible to make coreutils into a virtual package,
> so gentoo would support multiple coreutils implementations cleanly, it would
> be really useful for embedded gentoo systems and desktop users that just
> prefer using busybox. There is something that is really blocking this? Or is
> just time to implement and test this feature?

Hi, busybox only user here.

I mask coreutils for use building embedded builds. I do wish for a couple of utils from it, but where those are essential I have built static versions. I think sfdisk was the only thing which comes to mind and I only need that for an initramfs which makes the initial install onto the boards

I would find it useful if gentoo supported this usecase a little more cleanly. Offering options to build static versions of some of the core utils (out of the box) would be rather nice as well (for use in initramfs)
Comment 6 cassioavila 2021-06-02 21:58:25 UTC
Other thing that can mess things up it the savedconfig use, maybe with the user's configuration busybox can't substitute coreutils fully, so the solution would be a useflag that applies a "working" configuration, that can substitute coreutils in a clean way.