Commit 6a1fcb8f by Stéphane Graber Committed by GitHub

Merge pull request #1442 from mkeeler/master

Fix issue with the clonehostname hook not working for overlayfs snapshot clones
parents 4fbf4a31 cd85f31e
...@@ -19,9 +19,9 @@ ...@@ -19,9 +19,9 @@
# Note that /etc/hostname is updated by lxc itself # Note that /etc/hostname is updated by lxc itself
for file in \ for file in \
$LXC_ROOTFS_PATH/etc/sysconfig/network \ $LXC_ROOTFS_MOUNT/etc/sysconfig/network \
$LXC_ROOTFS_PATH/etc/sysconfig/network-scripts/ifcfg-* \ $LXC_ROOTFS_MOUNT/etc/sysconfig/network-scripts/ifcfg-* \
$LXC_ROOTFS_PATH/etc/hosts ; $LXC_ROOTFS_MOUNT/etc/hosts ;
do do
if [ -f $file ]; then if [ -f $file ]; then
sed -i "s|$LXC_SRC_NAME|$LXC_NAME|" $file sed -i "s|$LXC_SRC_NAME|$LXC_NAME|" $file
......
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