diff options
author | Renato Botelho <renato@netgate.com> | 2016-11-18 07:20:20 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-11-18 07:20:20 -0200 |
commit | aeced2dc0366133fe8b74ab2ff644e8c5bfb4746 (patch) | |
tree | 3aafb9746c8a618f4b157077c5dfb3878ecae83c /release | |
parent | e849ed350ecc42fa5d3be5b4083580eb089945b5 (diff) | |
download | FreeBSD-src-aeced2dc0366133fe8b74ab2ff644e8c5bfb4746.zip FreeBSD-src-aeced2dc0366133fe8b74ab2ff644e8c5bfb4746.tar.gz |
Revert "Revert "Mount /etc as MFS to be able to replace /etc/resolv.conf""
This reverts commit eea6f5eb2769e08428e9bbfd23c0ac59fa5a7511.
Diffstat (limited to 'release')
-rwxr-xr-x | release/rc.local | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/release/rc.local b/release/rc.local index f053f32..10534ae 100755 --- a/release/rc.local +++ b/release/rc.local @@ -8,6 +8,16 @@ : ${DIALOG_ITEM_HELP=4} : ${DIALOG_ESC=255} +if ! mdconfig -l | grep -q md3; then + mdconfig -a -u 3 -s 8m + newfs /dev/md3 + mount /dev/md3 /mnt + tar -C /etc -cf - . | tar -C /mnt -xf - + sync; sync; sync + umount /mnt + mount /dev/md3 /etc +fi + MACHINE=`uname -m` # resolv.conf from DHCP ends up in here, so make sure the directory exists |