summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Bogatov <KAction@debian.org>2018-12-29 07:22:00 +0000
committerDmitry Bogatov <KAction@debian.org>2018-12-29 07:22:00 +0000
commit50d6d2f2c20b117ccddc375812f36eaf719ccd3d (patch)
tree2b75a75237d5291af1f78b0d6a7cb7ad02268d82
parentd55345f2c91aad28bdf92383b2ae460440603fce (diff)
Simplify call to ischroot(1) in `sysvinit-core.postinst'
-rw-r--r--debian/changelog1
-rwxr-xr-xdebian/sysvinit-core.postinst5
2 files changed, 2 insertions, 4 deletions
diff --git a/debian/changelog b/debian/changelog
index 96e45870..584d7235 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,7 @@ sysvinit (2.93-3) UNRELEASED; urgency=medium
* Fix mounting of /proc on Hurd (Closes: #814735)
* Fix /sbin/poweroff alternative on Hurd (Closes: #825975)
* Use forced fsck in mountroot.sh only if it is supported (Closes: #686895)
+ * Simplify call to ischroot(1) in `sysvinit-core.postinst'
-- Dmitry Bogatov <KAction@debian.org> Thu, 27 Dec 2018 10:06:16 +0000
diff --git a/debian/sysvinit-core.postinst b/debian/sysvinit-core.postinst
index 44b6fbad..0f3ac5f0 100755
--- a/debian/sysvinit-core.postinst
+++ b/debian/sysvinit-core.postinst
@@ -112,10 +112,7 @@ fi
restart=yes
-chroot=0
-ischroot || chroot="$?"
-
-if [ "$chroot" != "1" ]; then
+if ischroot --default-true ; then
restart=no
fi