]> git.proxmox.com Git - mirror_lxc.git/commitdiff
Merge pull request #1286 from mgariepy/patch-1
authorStéphane Graber <stgraber@stgraber.org>
Wed, 9 Nov 2016 12:18:11 +0000 (05:18 -0700)
committerGitHub <noreply@github.com>
Wed, 9 Nov 2016 12:18:11 +0000 (05:18 -0700)
create symlink for /var/run

templates/lxc-centos.in

index 2c444e4d6912f891e60433f9220b46ca6df2dc54..8bd85a2af90de74f381e84e23fc49eb61028710b 100644 (file)
@@ -451,6 +451,13 @@ EOF
 
     $YUM install $PKG_LIST
 
+    # create symlink for /var/run -> ../run 
+    if [ "$release" = "7" ]; then
+        mv $INSTALL_ROOT/var/run/* $INSTALL_ROOT/run/
+        rmdir $INSTALL_ROOT/var/run
+        ln -sf ../run $INSTALL_ROOT/var/run
+    fi
+
     if [ $? -ne 0 ]; then
         echo "Failed to download the rootfs, aborting."
         return 1