diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-30 11:45:16 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-30 11:45:16 +0000 |
commit | df7f765d2238c99c68453645cfea81bc42f391cc (patch) | |
tree | b95ca1bf675e72e0aaa1aceb00338881340efc78 /initramfs-init.in | |
parent | 3bb651977b6085a9b5c64482d68b4523ae607cb7 (diff) | |
download | mkinitfs-df7f765d2238c99c68453645cfea81bc42f391cc.tar.bz2 mkinitfs-df7f765d2238c99c68453645cfea81bc42f391cc.tar.xz |
init: allow user to override tmpfs root size in fstab in apkovl
fixes http://redmine.alpinelinux.org/issues/show/93
Diffstat (limited to 'initramfs-init.in')
-rwxr-xr-x | initramfs-init.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/initramfs-init.in b/initramfs-init.in index bac20a3..f4d9e74 100755 --- a/initramfs-init.in +++ b/initramfs-init.in @@ -318,6 +318,14 @@ else 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 |