[PATCH] appliance/init: provide a symlink /var/lock
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 # devtmpfs is required since udev 176 mount -t devtmpfs /dev /dev -- 1.8.3.1
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
On Wednesday 05 February 2014 10:56:23 Richard W.M. Jones wrote:
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.
I saw other two symlinks in /var being relative ones, i.e. mail -> spool/mail run -> ../run so I followed them. -- Pino Toscano
participants (2)
-
Pino Toscano -
Richard W.M. Jones