ref: bffaa325f1fbbb3edf7048f132303cf4f6c41634
parent: 3eda931cbd05a299ef93acc8fde8df531220293d
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Sep 21 14:48:14 EDT 2019
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.
--- a/sys/src/9/boot/bootrc
+++ b/sys/src/9/boot/bootrc
@@ -86,6 +86,9 @@
# 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 @@
x=($x -p)
must $x
- # remount ip inteface after hostowner is set
- unmount '#I' /net >[2]/dev/null
bind -qa '#I' /net
}
--
⑨