with open(os.path.join(workspace, 'root', 'etc/locale.conf'), 'w') as f:
f.write('LANG=en_US.UTF-8\n')
+ # Arch still uses pam_securetty which prevents root login into
+ # systemd-nspawn containers. See https://bugs.archlinux.org/task/45903.
+ def rm_securetty(line: str) -> str:
+ if 'pam_securetty.so' in line:
+ return ''
+ return line
+ patch_file(os.path.join(root, 'etc/pam.d/login'), rm_securetty)
+
@completestep('Installing openSUSE')
def install_opensuse(args: CommandLineArguments, workspace: str, do_run_build_script: bool) -> None: