summaryrefslogtreecommitdiff
path: root/scripts/build/lb_chroot_linux-image
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/lb_chroot_linux-image')
-rwxr-xr-xscripts/build/lb_chroot_linux-image5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/build/lb_chroot_linux-image b/scripts/build/lb_chroot_linux-image
index 411e06e2c..ad8c6e618 100755
--- a/scripts/build/lb_chroot_linux-image
+++ b/scripts/build/lb_chroot_linux-image
@@ -89,9 +89,10 @@ EOF
# lets see if we still need the squeeze's "pre init system policy discussion" hack:
IS_SYSVINIT_ESSENTIAL="$(Chroot chroot dpkg-query --show --showformat='${Essential}\n' sysvinit)"
- RC=$?
+ RC="$?"
- if [ "${IS_SYSVINIT_ESSENTIAL}" != "no" ] && [ "${RC}" == "0" ]; then
+ if [ "${IS_SYSVINIT_ESSENTIAL}" != "no" ] && [ "${RC}" = "0" ]
+ then
# sysvinit is both installed and essential, ugly hack to remove it
Chroot chroot dpkg --force-remove-essential --remove sysvinit || true
fi