Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151538663
D50944.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
942 B
Referenced Files
None
Subscribers
None
D50944.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
@@ -178,6 +178,14 @@
rm -rf $BSDINSTALL_TMPETC
mkdir $BSDINSTALL_TMPETC
+# 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.).
+physmem=$(($(sysctl -n hw.physmem) / 1048576))
+if [ $physmem -lt 200 ]; then
+ 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
+fi
+
[ -f /usr/libexec/bsdinstall/local.pre-everything ] && f_dprintf "Running local.pre-everything" && sh /usr/libexec/bsdinstall/local.pre-everything "$BSDINSTALL_CHROOT"
trap true SIGINT # This section is optional
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 10, 2:16 AM (7 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31189856
Default Alt Text
D50944.diff (942 B)
Attached To
Mode
D50944: bsdinstall: Emit a warning if the system has too little memory
Attached
Detach File
Event Timeline
Log In to Comment