From bb26d87271f6c61334a9bd30751335bce207dae7 Mon Sep 17 00:00:00 2001 From: David Marec Date: Sat, 27 Oct 2018 16:10:16 +0200 Subject: [PATCH] set root mount point --- rc.conf | 5 ++++- rc.conf.d/hostname | 2 +- zfsinstall.sh | 9 +++++---- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/rc.conf b/rc.conf index 61be623..62cafcd 100644 --- a/rc.conf +++ b/rc.conf @@ -5,4 +5,7 @@ ntpd_enable="YES" # Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable dumpdev="AUTO" zfs_enable="YES" -local_enable="YES" + +ifconfig_em0=85.10.211.30 +defaultrouter=85.10.211.31 +ifconfig_re0_ipv6="inet6 accept_rtadv" diff --git a/rc.conf.d/hostname b/rc.conf.d/hostname index 46dabcb..515981b 100644 --- a/rc.conf.d/hostname +++ b/rc.conf.d/hostname @@ -1,2 +1,2 @@ -hostname="matarje" +hostname="vazylouison" diff --git a/zfsinstall.sh b/zfsinstall.sh index 441cc3e..b346349 100644 --- a/zfsinstall.sh +++ b/zfsinstall.sh @@ -46,21 +46,22 @@ sysctl vfs.zfs.min_auto_ashift=12 echo set up zfs pool: ${ZPOOL} alt mount: ${DESTDIR} echo ================= -zpool create -m none -f -R ${DESTDIR} ${ZPOOL} ${DESTDISK}p3 +zpool create -m none -f -R ${DESTDIR} ${ZPOOL} ${DESTDISK}p3 ada1 if [ "${?}" -ne 0 ]; then echo "unable to create zpool" exit 1 fi -for I in ROOT VAR HOME; do +for I in ROOT VAR HOME DATA; do zfs create -o mountpoint=none -o canmount=off ${ZPOOL}/${I} done zfs create -o atime=off -o mountpoint=/ ${ZPOOL}/ROOT/master + zfs create -o mountpoint=/usr/obj ${ZPOOL}/ROOT/obj zfs create -o compression=off -o mountpoint=/usr/src ${ZPOOL}/ROOT/src -zfs create -o copies=1 -o mountpoint=/usr/doc -o compression=on ${ZPOOL}/ROOT/doc +zfs create -o mountpoint=/usr/doc -o compression=on ${ZPOOL}/ROOT/doc # useless ? as far /tmp mountpoint will be mounted by tmpfs zfs create -o mountpoint=/tmp ${ZPOOL}/ROOT/tmp @@ -96,7 +97,7 @@ echo ======================================= for I in base.txz kernel.txz lib32.txz; do - fetch http://ftp.freebsd.org/pub/FreeBSD/snapshots/amd64/12.0-ALPHA8/${I} + fetch http://ftp.freebsd.org/pub/FreeBSD/releases/amd64/11.2-RELEASE/${I} tar --unlink -pJxf ${I} -C ${DESTDIR} done -- 2.47.0