[arch-projects] [mkinitcpio PATCH 1/3] /run/initramfs: copy the whole ramfs

Dave Reisner d at falconindy.com
Fri Nov 25 21:46:10 EST 2011


On Fri, Nov 25, 2011 at 11:34:17PM -0300, Gerardo Exequiel Pozzi wrote:
> On 11/17/2011 01:08 PM, Tom Gundersen wrote:
> >This is useful for the future shutdown hook, and might make debugging easier,
> >as well as potentially opening up for other usecases (that I cannot yet imagine ;-) ).
> >
> >Signed-off-by: Tom Gundersen<teg at jklm.no>
> >---
> >  init         |    2 +-
> >  install/base |    1 +
> >  2 files changed, 2 insertions(+), 1 deletions(-)
> >
> >diff --git a/init b/init
> >index 7cc2d47..3c6fb81 100644
> >--- a/init
> >+++ b/init
> >@@ -21,7 +21,7 @@ else
> >    mknod /dev/mem c 1 1
> >  fi
> >  mount -t tmpfs run /run -o nosuid,nodev,mode=755,size=10M
> >-mkdir /run/initramfs
> >+cp -ax / /run/initramfs
> >
> >  # parse the kernel command line
> >  parse_cmdline
> >diff --git a/install/base b/install/base
> >index 0726fa2..84e7f02 100644
> >--- a/install/base
> >+++ b/install/base
> >@@ -10,6 +10,7 @@ build() {
> >      add_binary /sbin/blkid
> >      add_binary /bin/mount
> >      add_binary /sbin/switch_root
> >+    add_binary /bin/cp
> >
> >      add_symlink "/etc/mtab" "/proc/self/mounts"
> >
> 
> I guess, we should start thinking incrementing size of /run, 10M is becoming small, for example I am using 56% due archiso_shutdown hook (it takes 5.3M).
> 
> 
> -- 
> Gerardo Exequiel Pozzi
> \cos^2\alpha + \sin^2\alpha = 1
> 

Given that /run is owned by root, I don't see why we need to worry about
hard capping the size.

d
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://mailman.archlinux.org/pipermail/arch-projects/attachments/20111125/d0fe2755/attachment.asc>


More information about the arch-projects mailing list