We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2105652 commit 34fc1aaCopy full SHA for 34fc1aa
ebssurrogate/scripts/chroot-bootstrap-nix.sh
@@ -157,8 +157,7 @@ function disable_fsck {
157
158
# Don't request hostname during boot but set hostname
159
function setup_hostname {
160
- sed -i 's/gethostname()/ubuntu /g' /etc/dhcp/dhclient.conf
161
- sed -i 's/host-name,//g' /etc/dhcp/dhclient.conf
+ sudo sed -i 's/hostname: .*/hostname: "ubuntu"/g' /etc/netplan/*.yaml
162
echo "ubuntu" > /etc/hostname
163
chmod 644 /etc/hostname
164
}
0 commit comments