]> git.lizzy.rs Git - plan9front.git/commit
provide /n and /mnt early in bootrc to allow consistent use in /lib/namespace
authorcinap_lenrek <cinap_lenrek@felloff.net>
Sun, 14 Feb 2016 00:42:32 +0000 (01:42 +0100)
committercinap_lenrek <cinap_lenrek@felloff.net>
Sun, 14 Feb 2016 00:42:32 +0000 (01:42 +0100)
commitecebba779f8cb55dadac70ef1c109e9e69c63423
treef003eabc02cfe1f67b6069f946f2d0741607520a
parent24150b117110e982496b10c2f1dfef329160a36a
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.
lib/namespace
rc/bin/cpurc
rc/bin/termrc
sys/src/9/boot/bootfs.proto
sys/src/9/boot/bootrc
sys/src/9/port/devroot.c