Skip to content

Commit

Permalink
create symlink for /var/run
Browse files Browse the repository at this point in the history
this patch create /var/run link to point to /run.

This will fix various issue present when /var/run is persistent.

Signed-off-by: Marc Gariepy <gariepy.marc@gmail.com>
  • Loading branch information
mgariepy authored and stgraber committed Nov 18, 2016
1 parent 921173a commit 20aa599
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions templates/lxc-centos.in
Expand Up @@ -441,6 +441,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
Expand Down

0 comments on commit 20aa599

Please sign in to comment.