Dnf #1

Merged
neillc merged 20 commits from dnf into master 2023-09-28 10:34:16 +10:00
Showing only changes of commit e5359326ee - Show all commits

View file

@ -93,9 +93,9 @@ def parse_args():
def write_user_data(data):
"""Write out a temporary user data file"""
data.boot_cmd=""
data.bootcmd=""
if data.cidr_1:
data.boot_cmd = (
data.bootcmd = (
"bootcmd:\n"
f' - "nmcli con modify \'System eth0\' ipv4.address {data.cidr_1} ipv4.method static ipv4.gateway {data.gateway} ipv4.dns {data.dns}"\n'
f' - "nmcli con modify \'Wired connection 1\' ipv4.address {data.cidr_2} ipv4.method static ipv4.gateway {data.gateway} ipv4.dns {data.dns}"\n'