Gentoo Archives: gentoo-user

From: Jack <ostroffjh@×××××××××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: HACK: Boot without an initramfs / initrd while maintaining a separate /usr file system.
Date: Tue, 06 Aug 2019 00:28:25
Message-Id: LNW2GPCL.JF3XDFUU.Q73JOPXX@LRUSERBR.UOG2NFQ4.FIOI4M3K
In Reply to: [gentoo-user] Re: HACK: Boot without an initramfs / initrd while maintaining a separate /usr file system. by Ian Zimmerman
1 On 2019.08.05 19:52, Ian Zimmerman wrote:
2 > On 2019-08-04 19:36, Grant Taylor wrote:
3 >
4 >> Create the bin and sbin directories inside of the /usr directory
5 >> that is the mount point so that they are on the underlying file
6 >> system that /usr is mounted over top of. Then copy the needed
7 >> binaries to the /usr/bin & /usr/sbin directories on the underlying
8 >> file system. That way, /sbin/fsck -> /usr/sbin/fsck still exists
9 >> even before the real /usr is mounted.
10 >
11 > Don't you have to go through some extra hoops (a flag to the mount
12 > command or something) to mount over a non-empty directory?
13
14 As others have said, no. However, I keep wondering if an overlay file
15 system might not be of some use here. Start with /bin, containing only
16 what's necessary to boot before /usr is available. Once /usr is
17 mounted, overlay mount /usr/bin on /bin (or would it be the other way
18 around?)

Replies

Subject Author
Re: [gentoo-user] Re: HACK: Boot without an initramfs / initrd while maintaining a separate /usr file system. Grant Taylor <gtaylor@×××××××××××××××××××××.net>