From ac3147a9c58f339f9b978ab087464912c16bc8f8 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sat, 30 Mar 2019 05:50:14 +0100 Subject: dist/mkfile: aux/stub -d /n/src9/usr to avoid overbinding /usr in case /n/src9 an / alias when /n/src9 is an alias for / (bind / /n/src9), then the bind from /sys/lib/dist/usr on /n/src9/usr would also overbind /usr and potentially make the build target file inaccessible. the solution is to run aux/stub -d /n/src9/usr. this works as aux/stub mounts itself on /n/src9, so the bind for /n/src9/usr will not override /usr in the root filesystem but the stub directory from aux/stub. --- sys/lib/dist/mkfile | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/lib/dist/mkfile b/sys/lib/dist/mkfile index 6fb040377..faae876f8 100644 --- a/sys/lib/dist/mkfile +++ b/sys/lib/dist/mkfile @@ -146,4 +146,5 @@ binds:V: bind mail/lib /n/src9/mail/lib bind ndb /n/src9/lib/ndb bind -a adm/timezone /n/src9/adm/timezone + aux/stub -d /n/src9/usr bind usr /n/src9/usr -- cgit v1.2.3