From e3eefe185e47195157fba621df4554c6dcb44b79 Mon Sep 17 00:00:00 2001
From: Holger Paradies <retabell@gmx.de>
Date: Sat, 27 Mar 2021 16:58:42 +0100
Subject: Workaround initramfs hook

---
 config/chroot_local-hooks/update-initramfs.sh | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/config/chroot_local-hooks/update-initramfs.sh b/config/chroot_local-hooks/update-initramfs.sh
index 4b1cb2e..5fe806b 100755
--- a/config/chroot_local-hooks/update-initramfs.sh
+++ b/config/chroot_local-hooks/update-initramfs.sh
@@ -4,5 +4,16 @@
 rm -f /usr/local/sbin/update-initramfs
 
 # Create stubs that will be updated by chroot_hacks afterwards
-touch $(ls /boot/vmlinuz-* | sed 's@^.*/vmlinuz-@/var/lib/initramfs-tools/@g')
+
+# not working in bullseye TODO
+
+case "${LB_DISTRIBUTION}" in
+
+       whezzy|jessie|stretch|buster)
+            touch $(ls /boot/vmlinuz-* | sed 's@^.*/vmlinuz-@/var/lib/initramfs-tools/@g')
+            ;;
+       *)
+            echo
+            ;;
+esac
 
-- 
cgit v1.0