On 2019.08.05 19:52, Ian Zimmerman wrote:
On 2019-08-04 19:36, Grant Taylor wrote:

Create the bin and sbin directories inside of the /usr directory that is the mount point so that they are on the underlying file system that /usr is mounted over top of. Then copy the needed binaries to the /usr/bin & /usr/sbin directories on the underlying file system. That way, /sbin/fsck -> /usr/sbin/fsck still exists even before the real /usr is mounted.

Don't you have to go through some extra hoops (a flag to the mount command or something) to mount over a non-empty directory?

As others have said, no. However, I keep wondering if an overlay file system might not be of some use here. Start with /bin, containing only what's necessary to boot before /usr is available. Once /usr is mounted, overlay mount /usr/bin on /bin (or would it be the other way around?)

Reply via email to