SHA256
1
0
forked from pool/libguestfs

- Disable ipv6 in the appliance because qemu usernet is ipv4 only

OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=266
This commit is contained in:
Olaf Hering 2014-01-23 16:54:07 +00:00 committed by Git OBS Bridge
parent 4606884cd3
commit 131e6872cd
3 changed files with 19 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jan 23 17:53:31 CET 2014 - ohering@suse.de
- Disable ipv6 in the appliance because qemu usernet is ipv4 only
-------------------------------------------------------------------
Wed Jan 22 10:13:00 UTC 2014 - ohering@suse.com

View File

@ -81,7 +81,6 @@
#%udevmodules: nfsv2
#%udevmodules: nfsv3
#%udevmodules: nfsv4
#%udevmodules: ipv6
#
#%udevmodules: dm-crypt
#
@ -237,6 +236,16 @@ for f in /sys/block/sd*/device/timeout; do if test -w $f ; then echo 300 > $f; f
# https://access.redhat.com/site/solutions/5427
for f in /sys/block/{h,s,ub,v}d*/queue/scheduler; do if test -w $f ; then echo noop > $f; fi; done
# Disable ipv6 because host names resolve to ipv4 and ipv6
# Resolver may prefer ipv6 and qemu usernet does only ipv4
for f in /proc/sys/net/ipv6/conf/*/disable_ipv6
do
if test -w $f
then
echo 1 > $f
fi
done
# Set up the network.
ip addr add 127.0.0.1/8 brd + dev lo scope host
ip link set dev lo up

View File

@ -11,6 +11,10 @@ do
cp $i $tmp_mnt$i
done
# Disable ipv6 because host names resolve to ipv4 and ipv6
# Resolver may prefer ipv6 and qemu usernet does only ipv4
echo install ipv6 /bin/true >> $tmp_mnt/etc/modprobe.conf.local
# many guestfish commands need a mount point
# in guestfsd the mount point defaults to /sysroot
mkdir -vp $tmp_mnt/sysroot