From: Daan De Meyer Date: Sun, 16 Apr 2023 12:49:54 +0000 (+0200) Subject: Drop Debian ignore preset workaround X-Git-Tag: v15~246^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aed58cd150aaa13611e0bff17964753ca4cf9e64;p=thirdparty%2Fmkosi.git Drop Debian ignore preset workaround Let's continue to stop mucking around with distro defaults and leave the ignore * preset for users to apply in a postinst script. --- diff --git a/mkosi/distributions/debian.py b/mkosi/distributions/debian.py index 7629767a6..f03a6c104 100644 --- a/mkosi/distributions/debian.py +++ b/mkosi/distributions/debian.py @@ -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