diff options
author | Daniel Baumann <daniel@debian.org> | 2010-04-02 21:12:36 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2010-04-09 21:28:43 +0200 |
commit | 6f967193a6a5bb5ea09fe375697dd0f877ab327e (patch) | |
tree | 3f32f1221f92c9f151866fe3b420720391e9345c /helpers | |
parent | 9fdf028aa8e6a5e752bda5c33ef71dbf6c3b4480 (diff) | |
download | vyos-live-build-6f967193a6a5bb5ea09fe375697dd0f877ab327e.tar.gz vyos-live-build-6f967193a6a5bb5ea09fe375697dd0f877ab327e.zip |
Adding special hack to prevent samhain from initializing.
Diffstat (limited to 'helpers')
-rwxr-xr-x | helpers/chroot_dpkg | 23 |
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 |