4 # note that really big disks (e.g., aoe devices) may have no mbr
5 # partition table because the mbr partition table can't cope with large
6 # block numbers, so we may have to examine the data file with prep if
7 # there's no plan9 file. beware that `disk/prep -p data' on a disk with
8 # no plan 9 partition table will delete all extant partitions.
10 if(test -f $1/data && test -f $1/ctl)
11 { disk/fdisk -p $1/data |
12 grep -v '^delpart ' >$1/ctl } >[2]/dev/null
19 { disk/prep -p $part |
20 grep -v '^delpart ' >$1/ctl } >[2]/dev/null
24 # set up any disk partitions
25 if (! test -e /dev/sdctl)
27 for(disk in /dev/sd*) {
30 sysname=`{cat /dev/sysname}
31 # set up any fs(3) partitions
32 if (! test -e /dev/fs/ctl && test -e '#k/fs')
34 if (~ $#sysname 1 && ! ~ $sysname '' &&
35 test -r /cfg/$sysname/fsconfig && test -w /dev/fs/ctl)
36 awk '{print $0; fflush}' /cfg/$sysname/fsconfig >/dev/fs/ctl