virt-install: drop inject-core-user hack
The core user is being created by Ignition now.
@@ -16,7 +16,7 @@ def fatal(msg):
raise SystemExit(1)
# Set of valid keys in image.yaml
-IMAGE_CONF_KEYS = ['size', 'inject-core-user', 'postprocess-script']
+IMAGE_CONF_KEYS = ['size', 'postprocess-script']
parser = argparse.ArgumentParser()
parser.add_argument("--dest", help="Destination disk",
@@ -121,10 +121,6 @@ if subprocess.call(['ostree', f"--repo={args.ostree_repo}", 'ls', args.ostree_re
%end
""")
-# Undocumented hack until we change Ignition to handle this
-if image_conf.get('inject-core-user'):
- ks_tmp.write("user --name=core --groups='wheel,sudo,adm,systemd-journal'\n")
-
# This is an implementation detail of https://github.com/coreos/ignition-dracut
# So we hardcode it here.
# See: https://github.com/coreos/ignition-dracut/pull/12
