summaryrefslogtreecommitdiff
path: root/auto/functions
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2012-02-16 02:39:34 +0100
committerAndreas Loibl <andreas@andreas-loibl.de>2012-02-16 02:39:34 +0100
commit0ff149fa625b4da1257f73d6534bd9f8e1562e38 (patch)
tree3f0650b940e9df4a63d39053347a311ccadf3b69 /auto/functions
parent00e77c213ed52cbffd1b593e0f7e94c860cd5513 (diff)
downloadkanotix-0ff149fa625b4da1257f73d6534bd9f8e1562e38.zip
kanotix-0ff149fa625b4da1257f73d6534bd9f8e1562e38.tar.gz
added debpool feature
Diffstat (limited to 'auto/functions')
-rw-r--r--auto/functions/debpool-hook25
1 files changed, 25 insertions, 0 deletions
diff --git a/auto/functions/debpool-hook b/auto/functions/debpool-hook
new file mode 100644
index 0000000..c86a065
--- /dev/null
+++ b/auto/functions/debpool-hook
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+if [ "$(basename "$0")" = "lb_chroot_local-hooks" ]; then
+ echo "HOOK: debpool@chroot_local-hooks"
+ if [ -e config/chroot_debpool ]; then
+ mkdir -p chroot/live
+ cp config/chroot_debpool/* chroot/live/
+ fi
+fi
+
+if [ "$(basename "$0")" = "lb_binary_rootfs" ]; then
+ echo "HOOK: debpool@binary-rootfs"
+ for dir in chroot/chroot/live chroot/live
+ do
+ [ -d $dir ] || continue
+ rm -rf debpool
+ mv $dir debpool
+ mkdir -p binary
+ mv debpool/image/debian binary/
+ rmdir debpool/image
+ [ -e debpool/keep ] || rm -r debpool
+ break
+ done
+fi
+