]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Add missing newline in /etc/shadow
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 17 Apr 2023 12:17:11 +0000 (14:17 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 17 Apr 2023 12:50:43 +0000 (14:50 +0200)
Fixup for 1f3e619a0fe4a22c517e2ebaeab68402df2f4f0d.

mkosi/__init__.py

index 65f88034b991d16bcf70fc684fe1548b02fcf8fd..fecdf4b103bb7532a9960fec6507942e6b2ad688 100644 (file)
@@ -363,7 +363,7 @@ def configure_root_password(state: MkosiState) -> None:
             try:
                 patch_file(shadow, set_root_pw)
             except FileNotFoundError:
-                shadow.write_text(f"root:{password}:0:0:99999:7:::")
+                shadow.write_text(f"root:{password}:0:0:99999:7:::\n")
 
 
 def configure_autologin(state: MkosiState) -> None: