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.
This commit is contained in:
parent
5b7d8e1f6f
commit
b56909157f
1 changed files with 3 additions and 2 deletions
|
@ -86,6 +86,9 @@ fn main{
|
||||||
|
|
||||||
# authentication agent
|
# authentication agent
|
||||||
if(! test -f /srv/factotum){
|
if(! test -f /srv/factotum){
|
||||||
|
# we remount ip inteface after hostowner is set
|
||||||
|
unmount '#I' /net >[2]/dev/null
|
||||||
|
|
||||||
x=(/boot/factotum -n -sfactotum)
|
x=(/boot/factotum -n -sfactotum)
|
||||||
if(~ $service cpu)
|
if(~ $service cpu)
|
||||||
x=($x -S)
|
x=($x -S)
|
||||||
|
@ -95,8 +98,6 @@ fn main{
|
||||||
x=($x -p)
|
x=($x -p)
|
||||||
must $x
|
must $x
|
||||||
|
|
||||||
# remount ip inteface after hostowner is set
|
|
||||||
unmount '#I' /net >[2]/dev/null
|
|
||||||
bind -qa '#I' /net
|
bind -qa '#I' /net
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue