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?) |