mirror of
https://github.com/leitbogioro/Tools.git
synced 2024-11-15 21:54:40 +08:00
Update RHELinit.sh
This commit is contained in:
parent
3903c7f55e
commit
440166bc06
1 changed files with 0 additions and 4 deletions
|
@ -111,10 +111,6 @@ sed -ri 's/ip6Gate/'${ip6Gate}'/g' /mnt/etc/cloud/cloud.cfg.d/99-fake_cloud.cfg
|
||||||
sed -ri 's/ip6DNS1/'${ip6DNS1}'/g' /mnt/etc/cloud/cloud.cfg.d/99-fake_cloud.cfg
|
sed -ri 's/ip6DNS1/'${ip6DNS1}'/g' /mnt/etc/cloud/cloud.cfg.d/99-fake_cloud.cfg
|
||||||
sed -ri 's/ip6DNS2/'${ip6DNS2}'/g' /mnt/etc/cloud/cloud.cfg.d/99-fake_cloud.cfg
|
sed -ri 's/ip6DNS2/'${ip6DNS2}'/g' /mnt/etc/cloud/cloud.cfg.d/99-fake_cloud.cfg
|
||||||
|
|
||||||
# Disable any datahouse
|
|
||||||
# Reference: https://github.com/canonical/cloud-init/issues/3772
|
|
||||||
echo 'datasource_list: [ NoCloud, None ]' > /mnt/etc/cloud/cloud.cfg.d/90_dpkg.cfg
|
|
||||||
|
|
||||||
# disable IPv6
|
# disable IPv6
|
||||||
[[ "$setIPv6" == "0" ]] && {
|
[[ "$setIPv6" == "0" ]] && {
|
||||||
sed -ri 's/net.ifnames=0 biosdevname=0/net.ifnames=0 biosdevname=0 ipv6.disable=1/g' /mnt/etc/default/grub
|
sed -ri 's/net.ifnames=0 biosdevname=0/net.ifnames=0 biosdevname=0 ipv6.disable=1/g' /mnt/etc/default/grub
|
||||||
|
|
Loading…
Reference in a new issue