diff options
author | Qin Guan <qguan@redhat.com> | 2012-04-10 14:16:51 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-04-10 14:16:51 +0100 |
commit | 7f93beb61a227111ecac7dd5d2a8212603cf3fbd (patch) | |
tree | 125711384e5d550d7ca3a6c82578e64a4af64e40 | |
parent | 9f9a14d963ada8b72f9d42b1b57763f1c4d0014a (diff) | |
download | libguestfs-7f93beb61a227111ecac7dd5d2a8212603cf3fbd.tar.gz libguestfs-7f93beb61a227111ecac7dd5d2a8212603cf3fbd.tar.xz libguestfs-7f93beb61a227111ecac7dd5d2a8212603cf3fbd.zip |
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.
-rw-r--r-- | clone/virt-sysprep.in | 4 |
1 files 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 () { |