mirror of
git://github.com/lxc/lxc
synced 2025-08-30 13:42:19 +00:00
create symlink for /var/run
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>
This commit is contained in:
parent
f79750ace9
commit
1c5a3c5854
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user