Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jul 2014 20:30:43 GMT
From:      kczekirda@FreeBSD.org
To:        svn-soc-all@FreeBSD.org
Subject:   socsvn commit: r270836 - in soc2014/kczekirda/pxe-fai-head: head/usr.sbin/bsdinstall/scripts others
Message-ID:  <201407142030.s6EKUhaA088702@socsvn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kczekirda
Date: Mon Jul 14 20:30:42 2014
New Revision: 270836
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=270836

Log:
  zfsboot pressed begin

Added:
  soc2014/kczekirda/pxe-fai-head/others/zfspressed
Modified:
  soc2014/kczekirda/pxe-fai-head/head/usr.sbin/bsdinstall/scripts/zfsboot

Modified: soc2014/kczekirda/pxe-fai-head/head/usr.sbin/bsdinstall/scripts/zfsboot
==============================================================================
--- soc2014/kczekirda/pxe-fai-head/head/usr.sbin/bsdinstall/scripts/zfsboot	Mon Jul 14 20:30:37 2014	(r270835)
+++ soc2014/kczekirda/pxe-fai-head/head/usr.sbin/bsdinstall/scripts/zfsboot	Mon Jul 14 20:30:42 2014	(r270836)
@@ -169,6 +169,12 @@
 #
 : ${ZFSBOOT_CONFIRM_LAYOUT:=1}
 
+############################################################ PRESSED
+
+if [ -f "$1" ]; then
+    . "$1"
+    fi
+
 ############################################################ GLOBALS
 
 #

Added: soc2014/kczekirda/pxe-fai-head/others/zfspressed
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ soc2014/kczekirda/pxe-fai-head/others/zfspressed	Mon Jul 14 20:30:42 2014	(r270836)
@@ -0,0 +1,129 @@
+
+# Default name of the boot-pool
+#
+ZFSBOOT_POOL_NAME="zroot"
+
+#
+# Default options to use when creating zroot pool
+#
+ZFSBOOT_POOL_CREATE_OPTIONS:="-O compress=lz4 -O atime=off"
+
+#
+# Default name for the boot environment parent dataset
+#
+ZFSBOOT_BEROOT_NAME="ROOT"
+
+#
+# Default name for the primany boot environment
+#
+ZFSBOOT_BOOTFS_NAME="default"
+
+#
+# Default Virtual Device (vdev) type to create
+#
+ZFSBOOT_VDEV_TYPE="stripe"
+
+#
+# Should we use gnop(8) to configure a transparent mapping to 4K sectors?
+#
+ZFSBOOT_GNOP_4K_FORCE_ALIGN="1"
+
+#
+# Should we use geli(8) to encrypt the drives?
+# NB: Automatically enables ZFSBOOT_BOOT_POOL
+#
+ZFSBOOT_GELI_ENCRYPTION=""
+
+#
+# Default path to the geli(8) keyfile used in drive encryption
+#
+ZFSBOOT_GELI_KEY_FILE="/boot/encryption.key"
+
+#
+# Create a separate boot pool?
+# NB: Automatically set when using geli(8) or MBR
+#
+FSBOOT_BOOT_POOL=""
+
+#
+# Options to use when creating separate boot pool (if any)
+#
+ZFSBOOT_BOOT_POOL_CREATE_OPTIONS=""
+
+#
+# Default name for boot pool when enabled (e.g., geli(8) or MBR)
+#
+ZFSBOOT_BOOT_POOL_NAME="bootpool"
+
+#
+# Default size for boot pool when enabled (e.g., geli(8) or MBR)
+#
+ZFSBOOT_BOOT_POOL_SIZE="1g"
+
+#
+# Default disks to use (always empty unless being scripted)
+#
+ZFSBOOT_DISKS=""
+
+#
+# Default partitioning scheme to use on disks
+#
+ZFSBOOT_PARTITION_SCHEME="GPT"
+
+#
+# How much swap to put on each block device in the boot zpool
+# NOTE: Value passed to gpart(8); which supports SI unit suffixes.
+#
+ZFSBOOT_SWAP_SIZE="0g"
+
+#
+# Should we use geli(8) to encrypt the swap?
+#
+ZFSBOOT_SWAP_ENCRYPTION=""
+
+#
+# Should we use gmirror(8) to mirror the swap?
+#
+ZFSBOOT_SWAP_MIRROR=""
+
+# Default ZFS datasets for root zpool
+#
+# NOTE: Requires /tmp, /var/tmp, /$ZFSBOOT_BOOTFS_NAME/$ZFSBOOT_BOOTFS_NAME
+# NOTE: Anything after pound/hash character [#] is ignored as a comment.
+#
+ZFSBOOT_DATASETS="
+    # DATASET>--OPTIONS (comma or space separated; or both)
+
+    # Boot Environment [BE] root and default boot dataset
+    /$ZFSBOOT_BEROOT_NAME                mountpoint=none
+    /$ZFSBOOT_BEROOT_NAME/$ZFSBOOT_BOOTFS_NAME      mountpoint=/
+
+    # Compress /tmp, allow exec but not setuid
+    /tmp        mountpoint=/tmp,exec=on,setuid=off
+
+    # Don't mount /usr so that 'base' files go to the BEROOT
+    /usr    mountpoint=/usr,canmount=off
+
+    # Home directories separated so they are common to all BEs
+    /usr/home   # NB: /home is a symlink to /usr/home
+
+    # Ports tree
+    /usr/ports  setuid=off
+
+    # Source tree (compressed)
+    /usr/src
+
+    # Create /var and friends
+    /var    mountpoint=/var
+    /var/crash  exec=off,setuid=off
+    /var/log    exec=off,setuid=off
+    /var/mail   atime=on
+    /var/tmp    setuid=off
+"
+
+# If interactive and the user has not explicitly chosen a vdev type or disks,
+# make the user confirm scripted/default choices when proceeding to install.
+#
+ZFSBOOT_CONFIRM_LAYOUT=1
+
+



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407142030.s6EKUhaA088702>