diff options
Diffstat (limited to 'rc/bin/diskparts')
| -rwxr-xr-x | rc/bin/diskparts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/rc/bin/diskparts b/rc/bin/diskparts index 0088f5cc1..a7014ac44 100755 --- a/rc/bin/diskparts +++ b/rc/bin/diskparts @@ -1,9 +1,15 @@ #!/bin/rc # set up any disk partitions -rfork e if (! test -e /dev/sdctl) bind -b '#S' /dev +# attach partfs to usb disks +for(disk in /dev/sdU*[0-9]){ + pdev=`{echo $disk | sed 's,^/dev/(.*),\1p,'} + if(! test -d /dev/$pdev && test -f $disk/data) + disk/partfs -d $pdev $disk/data +} + # set up any /dev/sd partitions. # note that really big disks (e.g., aoe devices) may have no mbr # partition table because the mbr partition table can't cope with large |
