[Libguestfs] [PATCH] appliance/init: provide a symlink /var/lock
Richard W.M. Jones
rjones at redhat.com
Wed Feb 5 10:56:23 UTC 2014
On Wed, Feb 05, 2014 at 11:43:51AM +0100, Pino Toscano wrote:
> Provide /var/lock as symlink to /run/lock, as it might be used by
> applications.
> ---
> appliance/init | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/appliance/init b/appliance/init
> index b25ea26..aac3f5a 100755
> --- a/appliance/init
> +++ b/appliance/init
> @@ -32,6 +32,7 @@ mount -t sysfs /sys /sys
> mkdir -p /run
> mount -t tmpfs -o "nosuid,size=20%,mode=0755" tmpfs /run
> mkdir -p /run/lock
> +ln -s ../run/lock /var/lock
Do we need the .. in that path? It's probably better to have it as a
symlink to the absolute path.
ACK.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages. http://libguestfs.org
More information about the Libguestfs
mailing list