diff --git a/hooks/clonehostname b/hooks/clonehostname index ed2765c4d..8eec7a665 100755 --- a/hooks/clonehostname +++ b/hooks/clonehostname @@ -19,9 +19,9 @@ # Note that /etc/hostname is updated by lxc itself for file in \ - $LXC_ROOTFS_PATH/etc/sysconfig/network \ - $LXC_ROOTFS_PATH/etc/sysconfig/network-scripts/ifcfg-* \ - $LXC_ROOTFS_PATH/etc/hosts ; + $LXC_ROOTFS_MOUNT/etc/sysconfig/network \ + $LXC_ROOTFS_MOUNT/etc/sysconfig/network-scripts/ifcfg-* \ + $LXC_ROOTFS_MOUNT/etc/hosts ; do if [ -f $file ]; then sed -i "s|$LXC_SRC_NAME|$LXC_NAME|" $file