From 7f93beb61a227111ecac7dd5d2a8212603cf3fbd Mon Sep 17 00:00:00 2001 From: Qin Guan Date: Tue, 10 Apr 2012 14:16:51 +0100 Subject: sysprep: Allow hwaddr to be removed on other Red Hat derivatives (RHBZ#811117). Allow hostname to be set on other Red Hat derivatives (RHBZ#811112). Since virt-sysprep has been rewritten on the development branch, this is a new patch based on commit 5e054f873198b83947de328777d9ced3bfa39ad5 and commit 60b87d0a5c97a458cefb6c5d31eeede7709f5a3d. --- clone/virt-sysprep.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clone/virt-sysprep.in b/clone/virt-sysprep.in index 833a31de..443a2a8a 100644 --- a/clone/virt-sysprep.in +++ b/clone/virt-sysprep.in @@ -273,7 +273,7 @@ fi if [ "$hostname" = "yes" ]; then case "$type/$distro" in - linux/fedora) + linux/fedora|linux/rhel|linux/centos|linux/scientificlinux|linux/redhat-based) echo "HOSTNAME=$hostname_param" > $mnt/etc/sysconfig/network.new sed '/^HOSTNAME=/d' < $mnt/etc/sysconfig/network >> $mnt/etc/sysconfig/network.new mv -f $mnt/etc/sysconfig/network.new $mnt/etc/sysconfig/network @@ -313,7 +313,7 @@ fi if [ "$net_hwaddr" = "yes" ]; then case "$type/$distro" in - linux/fedora) + linux/fedora|linux/rhel|linux/centos|linux/scientificlinux|linux/redhat-based) if [ -d $mnt/etc/sysconfig/network-scripts ]; then rm_hwaddr () { -- cgit