diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2006-07-13 14:06:09 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2006-07-13 14:06:09 +0000 |
| commit | aa00f900244fcfc773f47124334f1277f06c108c (patch) | |
| tree | 71f6dab9fdc2fdba954d6c82a13fc432afbe1e52 /tools | |
| parent | 42936f9334d3bec93e20f1be6d2dc742e3cec545 (diff) | |
Notes
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/tools/nanobsd/nanobsd.sh | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/tools/tools/nanobsd/nanobsd.sh b/tools/tools/nanobsd/nanobsd.sh index 64a1c3fa777a..a406c509e174 100644 --- a/tools/tools/nanobsd/nanobsd.sh +++ b/tools/tools/nanobsd/nanobsd.sh @@ -196,6 +196,19 @@ install_etc ( ) ( ${NANO_PMAKE} __MAKE_CONF=${NANO_MAKE_CONF} distribution \ DESTDIR=${NANO_WORLDDIR} \ > ${MAKEOBJDIRPREFIX}/_.etc 2>&1 + ( + cd ${NANO_WORLDDIR} + + # create diskless marker file + touch etc/diskless + + # save config file for scripts + echo "NANO_DRIVE=${NANO_DRIVE}" > etc/nanobsd.conf + + echo "/dev/${NANO_DRIVE}s1a / ufs ro 1 1" > etc/fstab + echo "/dev/${NANO_DRIVE}s3 /cfg ufs rw,noauto 2 2" >> etc/fstab + mkdir -p cfg + ) ) install_kernel ( ) ( @@ -228,16 +241,6 @@ setup_nanobsd ( ) ( ( cd ${NANO_WORLDDIR} - # create diskless marker file - touch etc/diskless - - # save config file for scripts - echo "NANO_DRIVE=${NANO_DRIVE}" > etc/nanobsd.conf - - echo "/dev/${NANO_DRIVE}s1a / ufs ro 1 1" > etc/fstab - echo "/dev/${NANO_DRIVE}s3 /cfg ufs rw,noauto 2 2" >> etc/fstab - mkdir -p cfg - for d in var etc do # link /$d under /conf |
