summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <andreas.baumann@eurospider.com>2022-05-30 15:14:49 +0200
committerAndreas Baumann <andreas.baumann@eurospider.com>2022-05-30 15:14:49 +0200
commit0e8774c0b34fa2b8392f20a1a44a63e742bf029f (patch)
tree8254ded54247b1c4f17eec4d1cb14236f83379f2
parent2139a5b47fa074c84411d9b612fd9df6cdf9622c (diff)
downloadOpenBSD-firewall-0e8774c0b34fa2b8392f20a1a44a63e742bf029f.tar.gz
OpenBSD-firewall-0e8774c0b34fa2b8392f20a1a44a63e742bf029f.tar.bz2
added note and variable for root device in build.sh script
-rwxr-xr-xbuild.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 1a2f3f7..bc3be5d 100755
--- a/build.sh
+++ b/build.sh
@@ -2,6 +2,9 @@
DEVICE=vnd0
MOUNTPOINT=/mnt/fw
+# depends on the hardware sdX for SCSI and wd0 for flashes/IDE/PATA
+# (also adapt in template/etc/fstab for instance)
+ROOT=sd0
if test X$1 = X"-h"; then
print "Usage: build.sh [ <machine> [ <flash layout> ] ]"
@@ -117,7 +120,7 @@ chmod +t $MOUNTPOINT/tmp
echo "Populating /dev filesystem with minimal set up startup devices."
cp -R /dev/MAKEDEV $MOUNTPOINT/dev/.
-( cd $MOUNTPOINT/dev && ./MAKEDEV std wd0 random pf bpf ttyC0 tty00 )
+( cd $MOUNTPOINT/dev && ./MAKEDEV std $ROOT random pf bpf ttyC0 tty00 )
echo "Installing userland."