Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.

Commit

Permalink
Fixed the issue with the ubuntu bionic (18.04) version where the MAC …
Browse files Browse the repository at this point in the history
…address is getting replaced with UUID to receive the IP from DHCP.

Also one enhancement has been added for installing OS in the default disk (/dev/sda) when NVMe SSDs are connected as test devices.
  • Loading branch information
sarathtadi authored and steveax committed Apr 24, 2020
1 parent a8fb9c9 commit a5043d2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tasks/ubuntu.task/preseed.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ d-i clock-setup/utc boolean true
d-i time/zone string <%= node.metadata['timezone'] || 'US/Pacific' %>
d-i clock-setup/ntp boolean true
d-i clock-setup/ntp-server string ntp.ubuntu.com
d-i partman-auto/disk string /dev/sda
#d-i partman-auto/disk string /dev/sda
d-i partman-auto/disk string <%= node.facts['blockdevices'].split(',')[-1] %>
d-i partman-auto/method string lvm
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-md/device_remove_md boolean true
Expand Down Expand Up @@ -52,6 +53,6 @@ d-i preseed/late_command string wget <%= log_url("preseed end") %>; \
wget <%= file_url("os_boot") %> -O /target/usr/local/sbin/razor_postinstall.sh; \
printf %b '#!/bin/sh\n/usr/local/sbin/razor_postinstall.sh\nexit 0\n' > /target/etc/rc.local; \
chmod +x /target/usr/local/sbin/razor_postinstall.sh; \
sed -i '8i\ dhcp-identifier: mac' /target/etc/netplan/01-netcfg.yaml; \
chmod +x /target/etc/rc.local; \
wget <%= stage_done_url("preseed") %>

wget <%= stage_done_url("preseed") %>

0 comments on commit a5043d2

Please sign in to comment.