Skip to content

Instantly share code, notes, and snippets.

@sixtyfive
Created July 17, 2016 14:00
Show Gist options
  • Save sixtyfive/862d908d7227c9b35e1a6019628c7ef1 to your computer and use it in GitHub Desktop.
Save sixtyfive/862d908d7227c9b35e1a6019628c7ef1 to your computer and use it in GitHub Desktop.
[...]
d-i preseed/late_command string \
echo -e "\n# The secondary network interface" >> /target/etc/network/interfaces; \
echo "allow-hotplug eth1" >> /target/etc/network/interfaces; \
echo "iface eth1 inet dhcp" >> /target/etc/network/interfaces
d-i preseed/late_command string echo -e "\n# The public network interface\nallow-hotplug eth2\niface eth2 inet static\n address XXX\n netmask XXX\n gateway XXX" >> /target/etc/network/interfaces
d-i finish-install/keep-consoles boolean true
d-i finish-install/reboot_in_progress note
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment