From 56e5a0358ba52270a333a812c440440b7bd882da Mon Sep 17 00:00:00 2001 From: Kris Lamoureux Date: Wed, 4 Mar 2020 22:38:01 -0500 Subject: [PATCH] Change IP (temp) --- vmseed.txt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/vmseed.txt b/vmseed.txt index f8d6881..0349124 100644 --- a/vmseed.txt +++ b/vmseed.txt @@ -23,7 +23,7 @@ d-i netcfg/choose_interface select auto d-i netcfg/disable_autoconfig boolean true # Static network configuration. -d-i netcfg/get_ipaddress string 192.168.1.15 +d-i netcfg/get_ipaddress string 192.168.1.16 d-i netcfg/get_netmask string 255.255.255.0 d-i netcfg/get_gateway string 192.168.1.1 d-i netcfg/get_nameservers string 192.168.1.1 @@ -140,14 +140,14 @@ d-i finish-install/reboot_in_progress note # Just before install finishes, install SSH keys into root d-i preseed/late_command string \ - - # Install SSH keys + \ + # Install SSH keys \ mkdir -p /target/root/.ssh; \ wget -O /target/root/.ssh/authorized_keys \ https://raw.githubusercontent.com/krislamo/bootstrap/master/authorized_keys; \ - - # Update /etc/issue with IP and SSH fingerprint + \ + # Update /etc/issue with IP and SSH fingerprint \ ethdev=$(ip a | grep -e "^2" | awk '{print substr($2, 1, length($2)-1)}'); \ - echo "$ethdev: \4{$ethdev}" >> /etc/issue; \ - ssh-keygen -l -f /etc/ssh/ssh_host_ecdsa_key.pub | \ - awk '{split($2, a, ":"); print a[2]}' >> /etc/issue; \ + echo "$ethdev: \4{$ethdev}" >> /target/etc/issue; \ + ssh-keygen -l -f /target/etc/ssh/ssh_host_ecdsa_key.pub | \ + awk '{split($2, a, ":"); print a[2]}' >> /target/etc/issue; \