]> git.proxmox.com Git - mirror_lxc.git/blobdiff - hooks/clonehostname
Merge pull request #3067 from Rachid-Koucha/patch-1
[mirror_lxc.git] / hooks / clonehostname
index ed2765c4d68f5ddfca86a4bda33751900f56dfc1..8eec7a6658220a13a22a9bf92d87e0fc93e6f727 100755 (executable)
@@ -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