ref: 1da2019c021a0ca3b9c33ae088ea8a6501b5251a
parent: db606b4b4861076524232f52002411dc900a03ad
author: Natanael Copa <ncopa@alpinelinux.org>
date: Wed Jun 10 09:38:03 CDT 2009
init: support for root_size in boot options This was a feature in 1.8.x to set tmpfs root size
--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -247,7 +247,12 @@
scan_drivers
eend 0
-mount -t tmpfs tmpfs $sysroot
+# mount tmpfs sysroot
+root_opts=
+if [ -n "$KOPT_root_size" ]; then
+ root_opts="-o size=$KOPT_root_size"
+fi
+mount -t tmpfs $root_opts tmpfs $sysroot
# look for apkovl
if dmesg | grep '^usb-storage: waiting' >/dev/null; then