]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Set agetty autologin credentials by default
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 9 Aug 2023 09:49:49 +0000 (11:49 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 9 Aug 2023 10:19:49 +0000 (11:19 +0100)
Eventually we'll replace --autologin with these but for now let's
set both.

mkosi/config.py

index ae77dace1c1905a164828804261e3d3ab01cf891..808f97ee0cd2a330ec2b183fd7964b079731c799 100644 (file)
@@ -1857,7 +1857,10 @@ class MkosiConfigParser:
 
 
 def load_credentials(args: argparse.Namespace) -> dict[str, str]:
-    creds = {}
+    creds = {
+        "agetty.autologin": "root",
+        "login.noauth": "yes",
+    }
 
     d = Path("mkosi.credentials")
     if args.directory != "" and d.is_dir():