From 0dee40cc688e8af4643a9376a361c6cb926c6cfe Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Tue, 5 Jun 2007 10:21:15 +0000 Subject: [PATCH] Fix the fstab on the second image, just like updatep2.sh does. --- tools/tools/nanobsd/nanobsd.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/tools/nanobsd/nanobsd.sh b/tools/tools/nanobsd/nanobsd.sh index 868d7846e5c1..98b2df71652b 100644 --- a/tools/tools/nanobsd/nanobsd.sh +++ b/tools/tools/nanobsd/nanobsd.sh @@ -385,6 +385,13 @@ create_i386_diskimage ( ) ( if [ $NANO_IMAGES -gt 1 ] ; then # Duplicate to second image (if present) dd if=/dev/${MD}s1 of=/dev/${MD}s2 bs=64k + mount /dev/${MD}s2a ${MNT} + for f in ${MNT}/etc/fstab ${MNT}/conf/base/etc/fstab + do + sed -i "" "s/${NANO_DRIVE}s1/${NANO_DRIVE}s2/g" $f + done + umount ${MNT} + fi # Create Config slice