Lines Matching +full:pre +full:- +full:boot

2 #-
4 # Copyright (c) 2013-2018 Devin Teske
55 msg_auto_zfs_desc="Guided Root-on-ZFS"
68 msg_shell_help="Create customized partitions using command-line utilities"
86 [ -f "$PATH_FSTAB" ] && bsdinstall umount
93 --title "$title" \
94 --backtitle "$btitle" \
95 --hline "$hline" \
96 --no-label "$msg_exit" \
97 --yes-label "$msg_restart" \
98 --yesno "$prompt" $height $width
121 local max_width=$(( $width - 3 - $plen ))
125 yes=ok no=cancel defaultno=default-no
126 extra_args="--wrap --left"
130 extra_args="--cr-wrap"
140 --title "$title" \
141 --backtitle "$btitle" \
142 --hline "$hline" \
143 --$yes-label "$msg_yes" \
144 --$no-label "$msg_no" \
146 --yesno "$prompt" $height $width
156 …eval "if [ -n \"\${ORIG_$var}\" -o -z \"\${ORIG_$var-z}\" ]; then $var=\${ORIG_$var}; else unset $…
162 # Save any user-defined environment variable that may be modified during the
168 …eval "if [ -n \"\${$var}\" -o -z \"\${$var-z}\" ]; then ORIG_$var=\${$var}; else unset ORIG_$var; …
178 rm -rf $BSDINSTALL_TMPETC
182 : > ${TMPDIR:-"/tmp"}/bsdinstall-esps
184 # With pkgbase, pkg OOM has been observed with QEMU-default 128 MiB memory size.
186 physmem=$(($(sysctl -n hw.physmem) / 1048576))
187 if [ $physmem -lt 200 ]; then
188 bsddialog --backtitle "$OSNAME Installer" --title "Warning" \
189--msgbox "Insufficient physical memory (${physmem} MiB) detected. At least 256 MiB is recommended.…
192 [ -f /usr/libexec/bsdinstall/local.pre-everything ] && f_dprintf "Running local.pre-everything" && …
195 [ -z "$BSDINSTALL_SKIP_KEYMAP" ] && bsdinstall keymap
197 trap error SIGINT # Catch cntrl-C here
198 if [ -z "$BSDINSTALL_SKIP_HOSTNAME" ]; then bsdinstall hostname || error "Set hostname failed"; fi
200 if [ -f /usr/freebsd-packages/repos/FreeBSD-base-offline.conf ]; then
202 PKGBASE_DEFAULT_BUTTON=--default-no
208 if [ ! -f $BSDINSTALL_DISTDIR/MANIFEST ]; then
211 bsddialog --backtitle "$OSNAME Installer" --title "Select Installation Type" \
212 --yes-label "Distribution Sets" --no-label "Packages (Tech Preview)" --yesno \
215 if [ $? -eq 1 ]; then
222 bsddialog --backtitle "$OSNAME Installer" --title "Network or Offline Installation" \
223 --yes-label "Network" --no-label "Offline (Limited Packages)" --yesno \
225 if [ $? -eq 1 ]; then
226 export BSDINSTALL_PKG_REPOS_DIR=/usr/freebsd-packages/repos/
232 bsddialog --backtitle "$OSNAME Installer" --title "Network Installation" \
233--msgbox "No base system packages are included in this installation media. The next few screens wi…
238 export DISTRIBUTIONS="${DISTRIBUTIONS:-base.txz kernel.txz}"
239 if [ -f $BSDINSTALL_DISTDIR/MANIFEST ]; then
240 DISTMENU=`awk -F'\t' '!/^(kernel\.txz|base\.txz)/{print $1,$5,$6}' $BSDINSTALL_DISTDIR/MANIFEST`
241 DISTMENU="$(echo ${DISTMENU} | sed -E 's/\.txz//g')"
243 if [ -n "$DISTMENU" ]; then
246 --backtitle \"$OSNAME Installer\" \
247 --title \"Distribution Select\" --nocancel --separate-output \
248 --checklist \"Choose optional system components to install:\" \
259 if [ ! -f $BSDINSTALL_DISTDIR/$dist ]; then
264 if [ -n "$FETCH_DISTRIBUTIONS" -a -n "$BSDINSTALL_CONFIGCURRENT" ]; then
265 …bsddialog --backtitle "$OSNAME Installer" --title "Network Installation" --msgbox "Some installati…
271 rm -f $PATH_FSTAB
274 [ -f /usr/libexec/bsdinstall/local.pre-partition ] && f_dprintf "Running local.pre-partition" && sh…
281 sys_maker=$( kenv -q smbios.system.maker )
283 sys_model=$( kenv -q smbios.system.product )
285 sys_version=$( kenv -q smbios.system.version )
287 sys_mb_maker=$( kenv -q smbios.planar.maker )
289 sys_mb_product=$( kenv -q smbios.planar.product )
302 if [ $retval -eq $DIALOG_OK ]; then
315 if [ $retval -eq $DIALOG_OK ]; then
322 "Hewlett-Packard")
328 if [ $retval -eq $DIALOG_OK ]; then
346 if [ $retval -eq $DIALOG_OK ]; then
359 if [ $retval -eq $DIALOG_OK ]; then
373 " # END-QUOTE
375 CURARCH=$( uname -m )
381 " # END-QUOTE
388 PARTMODE=`echo $PMODES | xargs -o bsddialog --backtitle "$OSNAME Installer" \
389 --title "Partitioning" \
390 --item-help \
391 --menu "How would you like to partition your disk?" \
393 exec 5>&-
423 [ -f /usr/libexec/bsdinstall/local.pre-fetch ] && f_dprintf "Running local.pre-fetch" && sh /usr/li…
428 if [ -n "$FETCH_DISTRIBUTIONS" ]; then
432 exec 5>&-
434 [ $FETCH_RESULT -ne 0 ] && error "Could not fetch remote distributions"
440 # Set up boot loader
443 [ -f /usr/libexec/bsdinstall/local.pre-configure ] && f_dprintf "Running local.pre-configure" && sh…
449 bsdinstall netconfig # Don't check for errors -- the user may cancel
451 [ -z "$BSDINSTALL_SKIP_TIME" ] && bsdinstall time
452 [ -z "$BSDINSTALL_SKIP_SERVICES" ] && bsdinstall services
453 [ -z "$BSDINSTALL_SKIP_HARDENING" ] && bsdinstall hardening
454 [ -z "$BSDINSTALL_SKIP_FIRMWARE" ] && bsdinstall firmware
456 [ -z "$BSDINSTALL_SKIP_USERS" ] && bsddialog --backtitle "$OSNAME Installer" \
457 --title "Add User Accounts" --yesno \
462 [ -z "$BSDINSTALL_SKIP_FINALCONFIG" ] && bsdinstall finalconfig
467 if [ ! -z "$BSDINSTALL_FETCHDEST" ]; then
468 rm -rf "$BSDINSTALL_FETCHDEST"
471 [ -f /usr/libexec/bsdinstall/local.post-configure ] && f_dprintf "Running local.post-configure" && …
473 if [ -z "$BSDINSTALL_SKIP_MANUAL" ]; then
474 bsddialog --backtitle "$OSNAME Installer" --title "Manual Configuration" \
475 --default-no --yesno \
477 if [ $? -eq 0 ]; then
481 chroot "$BSDINSTALL_CHROOT" /bin/sh -l 2>&1