From 023af32f448c49288d622dd0223d59a3051c1e4f Mon Sep 17 00:00:00 2001 From: Lorenzo Castelli Date: Fri, 6 Dec 2019 21:48:22 +0000 Subject: Reverts to classic network interface names. This disables "predictable interface names", as they make the network interface name dependent on exact hardware configuration. Scripts would then break in case the name is not exactly "ens4". --- build-arch-gce | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-arch-gce b/build-arch-gce index 48e415f..9569145 100755 --- a/build-arch-gce +++ b/build-arch-gce @@ -135,7 +135,7 @@ arch-chroot -- "$mount_dir" /bin/bash -s -- "$loop_dev" <<-'EOS' echo "-- Enabling other services." systemctl --quiet enable \ - dhclient@ens4 growpartfs@- \ + dhclient@eth0 growpartfs@- \ google-accounts-daemon google-clock-skew-daemon google-instance-setup \ google-network-daemon google-shutdown-scripts google-startup-scripts @@ -156,7 +156,7 @@ arch-chroot -- "$mount_dir" /bin/bash -s -- "$loop_dev" <<-'EOS' grub-install --target=i386-pc -- "$1" cat <<-'EOF' > /etc/default/grub # GRUB boot loader configuration - GRUB_CMDLINE_LINUX="console=ttyS0,38400n8 elevator=noop scsi_mod.use_blk_mq=Y" + GRUB_CMDLINE_LINUX="console=ttyS0,38400n8 net.ifnames=0 elevator=noop scsi_mod.use_blk_mq=Y" GRUB_PRELOAD_MODULES="part_gpt part_msdos" GRUB_TIMEOUT=0 GRUB_DISABLE_RECOVERY=true -- cgit v1.3