diff options
author | Renato Botelho <renato@netgate.com> | 2016-11-17 10:11:38 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-11-17 10:11:38 -0200 |
commit | b9e74e6e46de1450306aa6165e3bbef946e9475f (patch) | |
tree | 3aafb9746c8a618f4b157077c5dfb3878ecae83c /release | |
parent | 2ca0a4a6d2548ad106320ba1f5dd1e7eb867aa98 (diff) | |
download | FreeBSD-src-b9e74e6e46de1450306aa6165e3bbef946e9475f.zip FreeBSD-src-b9e74e6e46de1450306aa6165e3bbef946e9475f.tar.gz |
Mount /etc as MFS to be able to replace /etc/resolv.conf
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 |