summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-04-02 21:12:36 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:17:06 +0100
commit8d793f121e43bcf409eb1d37c97f8f35f16175cb (patch)
tree3f32f1221f92c9f151866fe3b420720391e9345c
parent66a1f5f07ce832523c7527e7fe2119611aba6d09 (diff)
downloadvyos-live-build-8d793f121e43bcf409eb1d37c97f8f35f16175cb.tar.gz
vyos-live-build-8d793f121e43bcf409eb1d37c97f8f35f16175cb.zip
Adding special hack to prevent samhain from initializing.
-rwxr-xr-xhelpers/chroot_dpkg23
1 files changed, 23 insertions, 0 deletions
diff --git a/helpers/chroot_dpkg b/helpers/chroot_dpkg
index 3b5f00bd5..1f1d57ae6 100755
--- a/helpers/chroot_dpkg
+++ b/helpers/chroot_dpkg
@@ -52,6 +52,17 @@ EOF
chmod 755 chroot/sbin/start-stop-daemon
+ # Manual hacks for special packages
+
+ # samhain
+ if [ -e /var/state/samhain/samhain_file ]
+ then
+ mv /var/state/samhain/samhain_file /var/state/samhain/samhain_file.orig
+ else
+ mkdir -p /var/state/samhain
+ touch /var/state/samhain/samhain_file
+ fi
+
# Creating stage file
Create_stagefile .stage/chroot_dpkg
;;
@@ -65,6 +76,18 @@ EOF
# Creating lock file
Create_lockfile .lock
+ # Manual hacks for special packages
+
+ # samhain
+ if [ -e /var/state/samhain/samhain_file.orig ]
+ then
+ mv /var/state/samhain/samhain_file.orig /var/state/samhain/samhain_file
+ elif [ -d /var/state/samhain ]
+ then
+ rm -f /var/state/samhain/samhain_file
+ rmdir --ignore-fail-on-non-empty /var/state/samhain
+ fi
+
# Restore start-stop-daemon program
if [ -e chroot/sbin/start-stop-daemon.orig ]
then