Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 898904 - sys-apps/openrc: OpenRC shouldn't filter init.d{localmount,netmount} on lxc containers
Summary: sys-apps/openrc: OpenRC shouldn't filter init.d{localmount,netmount} on lxc c...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL: https://discuss.linuxcontainers.org/t...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-02 12:08 UTC by Ed Wildgoose
Modified: 2023-03-08 15:15 UTC (History)
1 user (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 2023-03-02 12:08:58 UTC
OpenRC filters /etc/init.d/{localmount,netmount} to not run on most containerised systems, including lxc (and others)

However, this doesn't necessarily seem correct. At least on LXD, we can't easily force mounts at boot and the recommended solution by upstream is to rely on fstab

Indeed, manually running localmount, correctly parses fstab and mounts local mounts, but we cannot force this at boot time

https://discuss.linuxcontainers.org/t/how-to-mount-tmp-as-tmpfs-in-alpine-linux/5070/9


I propose that we should drop at least "-lxc" from the init.d/{localmount,netmount} scripts. However, there might be an argument for dropping this for other jails/containers (docker, systemd-nspawn, vserver perhaps?) also?

Such a change has already been implemented in alpine (patch referenced in the thread above)