diff options
author | Christian Pointner <equinox@spreadspace.org> | 2022-09-05 18:42:45 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2022-09-05 18:42:45 +0200 |
commit | d8cad6edea49880eb93f8376c2425dfce4ed6716 (patch) | |
tree | c91f0bc785ed015b9d8f6d9d7cfc768be762f9a6 /roles/installer/ubuntu/autoinstall/files/early-command.py | |
parent | raspios/image/firstrun: trigger restart of dhcpd after network config (diff) |
ubuntu/installer: fix early command and focal support
Diffstat (limited to 'roles/installer/ubuntu/autoinstall/files/early-command.py')
-rw-r--r-- | roles/installer/ubuntu/autoinstall/files/early-command.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/roles/installer/ubuntu/autoinstall/files/early-command.py b/roles/installer/ubuntu/autoinstall/files/early-command.py index 93d72b2d..0be450c9 100644 --- a/roles/installer/ubuntu/autoinstall/files/early-command.py +++ b/roles/installer/ubuntu/autoinstall/files/early-command.py @@ -15,11 +15,9 @@ try: for c in config['storage']['config']: if 'type' not in c or c['type'] != 'disk' or 'path' not in c: continue - c['path'] = os.path.realpath(c['path']) - - with open('/autoinstall.yaml', 'w') as file: - yaml.dump(config, file, default_flow_style=False) - except KeyError: pass + +with open('/autoinstall.yaml', 'w') as file: + yaml.dump(config, file, default_flow_style=False) |