aboutsummaryrefslogtreecommitdiff
path: root/build-arch-gce
diff options
context:
space:
mode:
authorLorenzo Castelli <lcastelli@google.com>2019-12-06 21:48:22 +0000
committerLorenzo Castelli <lcastelli@gmail.com>2019-12-06 16:47:22 -0800
commit023af32f448c49288d622dd0223d59a3051c1e4f (patch)
tree59b8b05c0d12cb72e25fe77edfe2c11a618f8744 /build-arch-gce
parent2b32c2c46361332dbaa674adcd737bc7d4821e4b (diff)
downloadcompute-archlinux-image-builder-0.4.tar.xz
Reverts to classic network interface names.0.4
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".
Diffstat (limited to 'build-arch-gce')
-rwxr-xr-xbuild-arch-gce4
1 files 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