Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bsdinstall/scripts/auto
| Show First 20 Lines • Show All 172 Lines • ▼ Show 20 Lines | |||||
| f_dprintf "Began Installation at %s" "$( date )" | f_dprintf "Began Installation at %s" "$( date )" | ||||
| environment_save | environment_save | ||||
| rm -rf $BSDINSTALL_TMPETC | rm -rf $BSDINSTALL_TMPETC | ||||
| mkdir $BSDINSTALL_TMPETC | mkdir $BSDINSTALL_TMPETC | ||||
| # Reset the ESP list | |||||
| : > ${TMPDIR:-"/tmp"}/bsdinstall-esps | |||||
cperciva: Isn't this usually spelled `: > ${TMPDIR:-"/tmp"}/bsdinstall-esps` ?
(In particular, it avoids… | |||||
Done Inline ActionsNo idea. That's likely better though. imp: No idea. That's likely better though. | |||||
| # With pkgbase, pkg OOM has been observed with QEMU-default 128 MiB memory size. | # With pkgbase, pkg OOM has been observed with QEMU-default 128 MiB memory size. | ||||
| # Ensure we have at least about 256 MiB (with an allowance for rounding etc.). | # Ensure we have at least about 256 MiB (with an allowance for rounding etc.). | ||||
| physmem=$(($(sysctl -n hw.physmem) / 1048576)) | physmem=$(($(sysctl -n hw.physmem) / 1048576)) | ||||
| if [ $physmem -lt 200 ]; then | if [ $physmem -lt 200 ]; then | ||||
| bsddialog --backtitle "$OSNAME Installer" --title "Warning" \ | bsddialog --backtitle "$OSNAME Installer" --title "Warning" \ | ||||
| --msgbox "Insufficient physical memory (${physmem} MiB) detected. At least 256 MiB is recommended. The installer or installed system may not function correctly." 0 0 | --msgbox "Insufficient physical memory (${physmem} MiB) detected. At least 256 MiB is recommended. The installer or installed system may not function correctly." 0 0 | ||||
| fi | fi | ||||
| ▲ Show 20 Lines • Show All 301 Lines • Show Last 20 Lines | |||||
Isn't this usually spelled : > ${TMPDIR:-"/tmp"}/bsdinstall-esps ?
(In particular, it avoids needing to open /dev/null. I can't imagine a scenario where /dev/ isn't mounted here, but why rely on it?)