]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Drop Debian ignore preset workaround
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 16 Apr 2023 12:49:54 +0000 (14:49 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 17 Apr 2023 09:27:33 +0000 (11:27 +0200)
Let's continue to stop mucking around with distro defaults and leave
the ignore * preset for users to apply in a postinst script.

mkosi/distributions/debian.py

index 7629767a6df6412abb446cab51bfbf00d4c8261c..f03a6c1048d6deab162bda41cbf1c8c7566b0ea4 100644 (file)
@@ -86,11 +86,6 @@ class DebianInstaller(DistributionInstaller):
         # Ensure /efi exists so that the ESP is mounted there, and we never run dpkg -i on vfat
         state.root.joinpath("efi").mkdir(mode=0o755, exist_ok=True)
 
-        # Make sure preset doesn't touch services unless explicitly configured.
-        presetdir = state.root / "etc/systemd/system-preset"
-        presetdir.mkdir(exist_ok=True, mode=0o755)
-        presetdir.joinpath("99-mkosi-ignore.preset").write_text("ignore *")
-
     @classmethod
     def install_packages(cls, state: MkosiState, packages: Sequence[str]) -> None:
         # Debian policy is to start daemons by default. The policy-rc.d script can be used choose which ones to