[arch-projects] [mkinitcpio PATCH 1/3] /run/initramfs: copy the whole ramfs
Gerardo Exequiel Pozzi
vmlinuz386 at yahoo.com.ar
Fri Nov 25 21:34:17 EST 2011
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
More information about the arch-projects
mailing list