Commit 1c5a3c58 by mgariepy Committed by Marc Gariepy

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: 's avatarMarc Gariepy <gariepy.marc@gmail.com>
parent f79750ac
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment