diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-02-14 01:42:32 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-02-14 01:42:32 +0100 |
commit | ecebba779f8cb55dadac70ef1c109e9e69c63423 (patch) | |
tree | f003eabc02cfe1f67b6069f946f2d0741607520a /rc/bin/termrc | |
parent | 24150b117110e982496b10c2f1dfef329160a36a (diff) |
provide /n and /mnt early in bootrc to allow consistent use in /lib/namespace
theres a bootstrap problem:
when /bin/init is run, it processes /lib/namespace where we might want to
mount or bind resources to /n or /mnt. but mntgen was run later in
cpurc/termrc so these mounts would be ignored.
we already have mntgen in bootfs, so we can provide these mountpoints early.
i keep the termrc/cpurc mntgens where they are, but ignore the error
prints. this way old kernels will continue to work.
Diffstat (limited to 'rc/bin/termrc')
-rwxr-xr-x | rc/bin/termrc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/rc/bin/termrc b/rc/bin/termrc index cd40ec7a6..74b3566dd 100755 --- a/rc/bin/termrc +++ b/rc/bin/termrc @@ -9,10 +9,11 @@ rm -f /env/i mount -qb /srv/cons /dev -# mount points -mntgen -s slashn && chmod 666 /srv/slashn +# mount points (if not done by bootrc already) +>[2]/dev/null { +mntgen -s slashn /n && chmod 666 /srv/slashn mntgen -s slashmnt /mnt && chmod 666 /srv/slashmnt -mntgen -s mntexport /mnt/exportfs && chmod 666 /srv/mntexport +mntgen -s mntexport /mnt/exportfs && chmod 666 /srv/mntexport} # move factotum from /mnt to /mnt/factotum mount /srv/factotum /mnt/temp |