summaryrefslogtreecommitdiff
path: root/roles/installer/ubuntu/autoinstall/files
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2022-09-05 18:42:45 +0200
committerChristian Pointner <equinox@spreadspace.org>2022-09-05 18:42:45 +0200
commitd8cad6edea49880eb93f8376c2425dfce4ed6716 (patch)
treec91f0bc785ed015b9d8f6d9d7cfc768be762f9a6 /roles/installer/ubuntu/autoinstall/files
parentraspios/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')
-rw-r--r--roles/installer/ubuntu/autoinstall/files/early-command.py8
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)