]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Stop always setting autologin credentials
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 31 Jul 2024 14:53:13 +0000 (16:53 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 31 Jul 2024 16:07:11 +0000 (18:07 +0200)
Let's require users to set these automatically if they want to
have autologin without enabling the Autologin= setting. This gives
more flexibility after https://github.com/systemd/systemd/pull/33873
is merged in systemd as users can choose to enable the settings
globally or per tty depending on what they need.

mkosi/config.py

index a1d47a51c12f21c6317659f2c7f3781fa4d64236..2e17be0b4fba8e6877ce5cf3f523433d44d31eef 100644 (file)
@@ -3832,8 +3832,6 @@ def parse_config(argv: Sequence[str] = (), *, resources: Path = Path("/")) -> tu
 
 def load_credentials(args: argparse.Namespace) -> dict[str, str]:
     creds = {
-        "agetty.autologin": "root",
-        "login.noauth": "yes",
         "firstboot.locale": "C.UTF-8",
         **args.credentials,
     }