home: hub: mkinitfs

Download patch

ref: df7f765d2238c99c68453645cfea81bc42f391cc
parent: 3bb651977b6085a9b5c64482d68b4523ae607cb7
author: Natanael Copa <ncopa@alpinelinux.org>
date: Thu Jul 30 06:45:16 CDT 2009

init: allow user to override tmpfs root size in fstab in apkovl

fixes http://redmine.alpinelinux.org/issues/show/93

--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -318,6 +318,14 @@
 	rc_add savecache shutdown
 fi
 
+# let user override tmpfs size in fstab in apkovl
+if [ -f $sysroot/etc/fstab ]; then
+	mountopts=$(awk '$2 == "/" && $3 == "tmpfs" { print $4 }' $sysroot/etc/fstab)
+	if [ -n "$mountopts" ]; then
+		mount -o remount,$mountopts $sysroot
+	fi
+fi
+
 # in case we upgrade we might need those:
 rc_add hwdrivers sysinit
 rc_add modloop sysinit