summaryrefslogtreecommitdiff
path: root/auto
diff options
context:
space:
mode:
authorHolger Paradies <retabell@gmx.de>2024-02-11 11:44:38 +0100
committerHolger Paradies <retabell@gmx.de>2024-02-11 11:44:38 +0100
commitcccad9261f3a6c46cc1420e2ffd2d79f23bc0e5e (patch)
tree4f9eab3af236cbc2e2e6474a10dccd96007013d8 /auto
parent162faa640fba315d72c5ee57915c9d382c449803 (diff)
downloadkanotix-cccad9261f3a6c46cc1420e2ffd2d79f23bc0e5e.zip
kanotix-cccad9261f3a6c46cc1420e2ffd2d79f23bc0e5e.tar.gz
Update and rework debpool features
Diffstat (limited to 'auto')
-rw-r--r--auto/functions/debpool-hook27
1 files changed, 20 insertions, 7 deletions
diff --git a/auto/functions/debpool-hook b/auto/functions/debpool-hook
index e56df34..adc0aaa 100644
--- a/auto/functions/debpool-hook
+++ b/auto/functions/debpool-hook
@@ -2,24 +2,37 @@
current_script="$(basename "$0"|sed 's/^lb_//')"
-if [ "$current_script" = "chroot_local-hooks" ]; then
- echo "HOOK: debpool@chroot_local-hooks"
+if [ "$current_script" = "chroot_hooks" ]; then
+ echo "HOOK: debpool@chroot_hooks"
if [ -e config/chroot_debpool ]; then
- mkdir -p chroot/live
- cp config/chroot_debpool/* chroot/live/
+ mkdir -p chroot/run/live/medium
+ cp -rf config/chroot_debpool/* chroot/run/live/medium/
fi
fi
if [ "$current_script" = "binary_rootfs" ]; then
echo "HOOK: debpool@binary-rootfs"
- for dir in chroot/chroot/live chroot/live
+ for dir in chroot/chroot/run/live/medium chroot/run/live/medium
do
[ -d $dir ] || continue
rm -rf debpool
+ echo "DEBUG: $dir"
mv $dir debpool
mkdir -p binary
- mv debpool/image/debian binary/
- rmdir debpool/image
+ if [ -e debpool/bin ]; then
+ #mkdir -p binary/bin
+ mv debpool/bin binary
+ fi
+
+echo "DEBUG: debpool"
+ls debpool
+#ls debpool/image
+#ls debpool/image/debian
+ if [ -e debpool/debian ]; then
+ mv debpool/debian binary/
+ fi
+
+ #rmdir debpool/image
[ -e debpool/keep ] || rm -r debpool
break
done