Files
integ/base/dnsmasq/debian/trixie/deb_patches/0001-Disable-systemd-for-dnsmasq.patch
pmp1 6c9c35f18f Add integ/base for Trixie
Added packaging support for Trixie under 'debian/trixie/'.

This change brings updates from the 'f/trixie' branch into 'master' to
ensure consistent functionality and packaging structure across both
branches.

base-passwd
ca-certificates
cluster-resource-agents
dhcp
dnsmasq
haproxy
libfdt
lighttpd
linuxptp
lvm2
lsb
openssl
pf-bb-config
stalld
synce4l
systemd
systemd-presets

Story: 2011360
Task: 53245

Change-Id: Ib3f098217c8b85cd80be9c13223b5bf4f71f4805
Signed-off-by: pmp1 <preetham.mp@windriver.com>
Signed-off-by: Abhinav Ayyapasetti <ayyapasetti.abhinav@windriver.com>
2025-11-26 11:15:36 -05:00

44 lines
1.6 KiB
Diff

From 55cae4e85d59b5c6cbfd00257833ccaab2b76982 Mon Sep 17 00:00:00 2001
From: Charles Short <charles.short@windriver.com>
Date: Wed, 13 Jul 2022 10:04:57 -0400
Subject: [PATCH] Disable systemd for dnsmasq
Disable systemd from starting at boot since its managed by the
sm service.
Signed-off-by: Charles Short <charles.short@windriver.com>
---
debian/postinst | 16 ----------------
1 file changed, 16 deletions(-)
diff --git a/debian/postinst b/debian/postinst
index 8c93160..38c2a07 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -4,22 +4,6 @@ set -e
# /usr/share/doc/dnsmasq was a symlink in versions < 2.81-1 (see #985282)
dpkg-maintscript-helper symlink_to_dir /usr/share/doc/dnsmasq dnsmasq-base 2.84-1.2~ dnsmasq -- "$@"
-# Code copied from dh_systemd_enable ----------------------
-# This will only remove masks created by d-s-h on package removal.
-deb-systemd-helper unmask dnsmasq.service >/dev/null || true
-
-# was-enabled defaults to true, so new installations run enable.
-if deb-systemd-helper --quiet was-enabled dnsmasq.service; then
- # Enables the unit on first installation, creates new
- # symlinks on upgrades if the unit file has changed.
- deb-systemd-helper enable dnsmasq.service >/dev/null || true
-else
- # Update the statefile to add new symlinks (if any), which need to be
- # cleaned up on purge. Also remove old symlinks.
- deb-systemd-helper update-state dnsmasq.service >/dev/null || true
-fi
-# End code copied from dh_systemd_enable ------------------
-
if [ -x /etc/init.d/dnsmasq ]; then
update-rc.d dnsmasq defaults 15 85 >/dev/null
--
2.25.1