[Libguestfs] [PATCH 1/6] Mount /run as tmpfs inside appliance (workaround for febootstrap's /init)
Richard W.M. Jones
rjones at redhat.com
Thu Mar 14 13:02:17 UTC 2013
On Wed, Mar 13, 2013 at 09:13:04PM +0100, Hilko Bengen wrote:
> From: Hilko Bengen <bengen at debian.org>
>
> ---
> appliance/init | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/appliance/init b/appliance/init
> index dee4efc..6d80996 100755
> --- a/appliance/init
> +++ b/appliance/init
> @@ -18,6 +18,9 @@ mount -t proc /proc /proc
> if [ ! -d /sys ]; then rm -f /sys; fi
> mkdir -p /sys
> mount -t sysfs /sys /sys
> +# taken from initramfs-tools/init --Hilko Bengen
> +mkdir -p /run
> +mount -t tmpfs -o "nosuid,size=20%,mode=0755" tmpfs /run
> mkdir -p /run/lock
>
> # devtmpfs is required since udev 176
> --
> 1.7.10.4
Thanks -- pushed.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
More information about the Libguestfs
mailing list