Fix the fstab on the second image, just like updatep2.sh does.
This commit is contained in:
parent
0d1b462435
commit
0dee40cc68
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=170322
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user