From 57c8b9909eba82ad07b08cd2ed666390a7721c4a Mon Sep 17 00:00:00 2001 From: Cedric Hombourger Date: Wed, 14 Feb 2024 16:59:42 +0100 Subject: [PATCH] debian: do not call mtda-systemd-helper when running in chroot Closes: #397 Signed-off-by: Cedric Hombourger --- debian/mtda-service.postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/mtda-service.postinst b/debian/mtda-service.postinst index 138f293a..d3ec2177 100644 --- a/debian/mtda-service.postinst +++ b/debian/mtda-service.postinst @@ -6,7 +6,7 @@ case "$1" in configure) - /usr/sbin/mtda-systemd-helper || exit ${?} + ischroot || /usr/sbin/mtda-systemd-helper || exit ${?} if ! grep -qe '^libcomposite$' /etc/modules; then echo "libcomposite" >/etc/modules || exit ${?} fi