Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143725722
D44671.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D44671.diff
View Options
diff --git a/usr.sbin/bsdinstall/scripts/auto b/usr.sbin/bsdinstall/scripts/auto
--- a/usr.sbin/bsdinstall/scripts/auto
+++ b/usr.sbin/bsdinstall/scripts/auto
@@ -283,31 +283,35 @@
esac
fi
-PMODES="
- '$msg_auto_ufs' '$msg_auto_ufs_desc' '$msg_auto_ufs_help'
- '$msg_manual' '$msg_manual_desc' '$msg_manual_help'
- '$msg_shell' '$msg_shell_desc' '$msg_shell_help'
-" # END-QUOTE
-
-CURARCH=$( uname -m )
-case $CURARCH in
- amd64|arm64|i386|riscv) # Booting ZFS Supported
- PMODES="
- '$msg_auto_zfs' '$msg_auto_zfs_desc' '$msg_auto_zfs_help'
- $PMODES
- " # END-QUOTE
- ;;
- *) # Booting ZFS Unsupported
- ;;
-esac
+if [ "$BSDINSTALL_PARTMODE" ]; then
+ PARTMODE="$BSDINSTALL_PARTMODE"
+else
+ PMODES="
+ '$msg_auto_ufs' '$msg_auto_ufs_desc' '$msg_auto_ufs_help'
+ '$msg_manual' '$msg_manual_desc' '$msg_manual_help'
+ '$msg_shell' '$msg_shell_desc' '$msg_shell_help'
+ " # END-QUOTE
+
+ CURARCH=$( uname -m )
+ case $CURARCH in
+ amd64|arm64|i386|riscv) # Booting ZFS Supported
+ PMODES="
+ '$msg_auto_zfs' '$msg_auto_zfs_desc' '$msg_auto_zfs_help'
+ $PMODES
+ " # END-QUOTE
+ ;;
+ *) # Booting ZFS Unsupported
+ ;;
+ esac
-exec 5>&1
-PARTMODE=`echo $PMODES | xargs -o bsddialog --backtitle "$OSNAME Installer" \
- --title "Partitioning" \
- --item-help \
- --menu "How would you like to partition your disk?" \
- 0 0 0 2>&1 1>&5` || exit 1
-exec 5>&-
+ exec 5>&1
+ PARTMODE=`echo $PMODES | xargs -o bsddialog --backtitle "$OSNAME Installer" \
+ --title "Partitioning" \
+ --item-help \
+ --menu "How would you like to partition your disk?" \
+ 0 0 0 2>&1 1>&5` || exit 1
+ exec 5>&-
+fi
case "$PARTMODE" in
"$msg_auto_zfs") # ZFS
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 1, 9:17 AM (14 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28329515
Default Alt Text
D44671.diff (1 KB)
Attached To
Mode
D44671: bsdinstall: allow forcing a specific partitioning mode
Attached
Detach File
Event Timeline
Log In to Comment