ref: ea70373de6cf50099d7c5676a57ca14c789dbf69
parent: 9019409e64c5018dbe856728a90d39a764f7e1b2
author: Natanael Copa <ncopa@alpinelinux.org>
date: Wed Apr 8 09:49:50 CDT 2015
init: respect rootflags for tmpfs root too and warn about root_size. Users should use rootflags instead now.
--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -608,11 +608,16 @@
fi
# mount tmpfs sysroot
-root_opts="-o mode=0755"
+rootflags="mode=0755"
if [ -n "$KOPT_root_size" ]; then
- root_opts="$root_opts,size=$KOPT_root_size"
+ echo "WARNING: the boot option root_size is deprecated. Use rootflags instead"
+ rootflags="$rootflags,size=$KOPT_root_size"
fi
-mount -t tmpfs $root_opts tmpfs $sysroot
+if [ -n "$KOPT_rootflags" ]; then
+ rootflags="$rootflags,$KOPT_rootflags"
+fi
+
+mount -t tmpfs -o $rootflags tmpfs $sysroot
case "$OVL_DEV" in
'')