]> git.proxmox.com Git - mirror_lxc.git/blobdiff - hooks/clonehostname
spelling: output
[mirror_lxc.git] / hooks / clonehostname
index 8865c2df8f7eb263b4a113a3e6712e8be6a65e03..8eec7a6658220a13a22a9bf92d87e0fc93e6f727 100755 (executable)
@@ -19,8 +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_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