ref: 22e770f3183a6afa8064a75cf9aaae21de8eac08
parent: 704bb70108b5c1d673ba28c8f16b7b63207fce49
author: 9ferno <[email protected]>
date: Sun Oct 24 06:57:58 EDT 2021
do not run disk/prep on non plan9 partitions
--- a/dis/diskparts
+++ b/dis/diskparts
@@ -17,7 +17,7 @@
if {ftest -f $disk^/plan9} {
parts=($disk^/plan9*)
- }{ parts=($disk^/data) }
+ }
for part in $parts {
if{ftest -f $part} {
@@ -31,7 +31,6 @@
# set up any disk partitions
or { ftest -e /dev/sdctl } { bind -b '#S' /dev }
for disk in /dev/sd* { setup $disk }
- sysname=`{cat /dev/sysname}
# set up any fs(3) partitions
if {! ftest -e /dev/fs/ctl && ftest -e '#k/fs'} {
--- a/dis/init
+++ b/dis/init
@@ -148,7 +148,7 @@
x=`{read}
echo bind ether /net/ether0 > /net/ipifc/^$x^/ctl
}
- ip/dhcp -d -p /net/ipifc/$x
+ ip/dhcp -p /net/ipifc/$x
for tuple in `{cat /net/ndb}{
(name value)=${split '=' $tuple}
if{~ $name sys}{
@@ -162,9 +162,9 @@
}
}
echo $sysname
- cat /dev/sysname
+ #cat /dev/sysname
cat /net/ndb
- cat /dev/sysname
+ #cat /dev/sysname
}
# 9front uses the $bootargs to gather
--- a/lib/init/vmx9ferno
+++ b/lib/init/vmx9ferno
@@ -28,4 +28,3 @@
cp /n/master/Inferno/amd64/ipc64 /n/9fat/ipc64
cp /n/master/Inferno/386/9bootfat /n/9fat/9bootfat
}
-