Fix the fstab on the second image, just like updatep2.sh does.

This commit is contained in:
Poul-Henning Kamp 2007-06-05 10:21:15 +00:00
parent 0d1b462435
commit 0dee40cc68
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=170322

View File

@ -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