summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsdinstall/scripts
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-07-08 07:50:28 -0300
committerRenato Botelho <renato@netgate.com>2016-07-08 07:50:28 -0300
commit000fe9b921f8e1b82e649477bf28c2cfbaa0ff7c (patch)
tree28124ae41696d55b3df7dad466a3e886975de6bf /usr.sbin/bsdinstall/scripts
parenta0d0b7f06642edf2fb72f7cafc54723c47875400 (diff)
parentbfdc44e0e15d9b59cb5ff7d22d6779356921ca05 (diff)
downloadFreeBSD-src-000fe9b921f8e1b82e649477bf28c2cfbaa0ff7c.zip
FreeBSD-src-000fe9b921f8e1b82e649477bf28c2cfbaa0ff7c.tar.gz
Merge remote-tracking branch 'origin/stable/11' into devel-11
Diffstat (limited to 'usr.sbin/bsdinstall/scripts')
-rwxr-xr-xusr.sbin/bsdinstall/scripts/auto4
-rwxr-xr-xusr.sbin/bsdinstall/scripts/zfsboot19
2 files changed, 13 insertions, 10 deletions
diff --git a/usr.sbin/bsdinstall/scripts/auto b/usr.sbin/bsdinstall/scripts/auto
index 5e3f5b1..d8ecd62 100755
--- a/usr.sbin/bsdinstall/scripts/auto
+++ b/usr.sbin/bsdinstall/scripts/auto
@@ -184,7 +184,7 @@ if f_interactive; then
case "$sys_maker" in
"LENOVO")
case "$sys_version" in
- "ThinkPad X220"|"ThinkPad T420"|"ThinkPad T520")
+ "ThinkPad X220"|"ThinkPad T420"|"ThinkPad T520"|"ThinkPad W520")
dialog_workaround "$msg_lenovo_fix"
retval=$?
f_dprintf "lenovofix_prompt=[%s]" "$retval"
@@ -197,7 +197,7 @@ if f_interactive; then
;;
"Dell Inc.")
case "$sys_model" in
- "Latitude E7440"|"Latitude E7240"|"Precision Tower 5810")
+ "Latitude E6330"|"Latitude E7440"|"Latitude E7240"|"Precision Tower 5810")
dialog_workaround "$msg_gpt_active_fix"
retval=$?
f_dprintf "gpt_active_fix_prompt=[%s]" "$retval"
diff --git a/usr.sbin/bsdinstall/scripts/zfsboot b/usr.sbin/bsdinstall/scripts/zfsboot
index db28284..d2de12b 100755
--- a/usr.sbin/bsdinstall/scripts/zfsboot
+++ b/usr.sbin/bsdinstall/scripts/zfsboot
@@ -218,6 +218,7 @@ SWAP_GMIRROR_LABEL='gmirror label swap %s'
SYSCTL_ZFS_MIN_ASHIFT_12='sysctl vfs.zfs.min_auto_ashift=12'
UMOUNT='umount "%s"'
ZFS_CREATE_WITH_OPTIONS='zfs create %s "%s"'
+ZFS_MOUNT='zfs mount "%s"'
ZFS_SET='zfs set "%s" "%s"'
ZFS_UNMOUNT='zfs unmount "%s"'
ZPOOL_CREATE_WITH_OPTIONS='zpool create %s "%s" %s %s'
@@ -1350,13 +1351,6 @@ zfs_create_boot()
$BSDINSTALL_CHROOT$dir || return $FAILURE
done
- # Create symlink(s)
- if [ "$ZFSBOOT_BOOT_POOL" ]; then
- f_dprintf "$funcname: Creating /boot symlink for boot pool..."
- f_eval_catch $funcname ln "$LN_SF" "$bootpool_name/boot" \
- $BSDINSTALL_CHROOT/boot || return $FAILURE
- fi
-
# Set bootfs property
local zroot_bootfs="$ZFSBOOT_BEROOT_NAME/$ZFSBOOT_BOOTFS_NAME"
f_dprintf "$funcname: Setting bootfs property..."
@@ -1396,7 +1390,16 @@ zfs_create_boot()
fi
fi
- # While this is apparently not needed, it seems to help MBR
+ # Remount bootpool and create symlink(s)
+ if [ "$ZFSBOOT_BOOT_POOL" ]; then
+ f_eval_catch $funcname zfs "$ZFS_MOUNT" "$bootpool_name" ||
+ return $FAILURE
+ f_dprintf "$funcname: Creating /boot symlink for boot pool..."
+ f_eval_catch $funcname ln "$LN_SF" "$bootpool_name/boot" \
+ $BSDINSTALL_CHROOT/boot || return $FAILURE
+ fi
+
+ # zpool.cache is required to mount more than one pool at boot time
f_dprintf "$funcname: Configuring zpool.cache for zroot..."
f_eval_catch $funcname mkdir "$MKDIR_P" $BSDINSTALL_CHROOT/boot/zfs ||
return $FAILURE
OpenPOWER on IntegriCloud