From b56909157f0cd2491cd2918f7923676f22b5707c Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sat, 21 Sep 2019 18:48:14 +0200 Subject: bootrc: unmount devip *before* starting factotum we want devip to get reattached after hostowner has been written. factotum already handles this with a private authdial() routine that mounts devip when it is not present. so we detach devmnt before starting factotum, and attach once factotum finishes. --- sys/src/9/boot/bootrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/src') diff --git a/sys/src/9/boot/bootrc b/sys/src/9/boot/bootrc index 696fc08ab..e7356dd5b 100755 --- a/sys/src/9/boot/bootrc +++ b/sys/src/9/boot/bootrc @@ -86,6 +86,9 @@ fn main{ # authentication agent if(! test -f /srv/factotum){ + # we remount ip inteface after hostowner is set + unmount '#I' /net >[2]/dev/null + x=(/boot/factotum -n -sfactotum) if(~ $service cpu) x=($x -S) @@ -95,8 +98,6 @@ fn main{ x=($x -p) must $x - # remount ip inteface after hostowner is set - unmount '#I' /net >[2]/dev/null bind -qa '#I' /net } -- cgit v1.2.3