summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rwxr-xr-xconfig/chroot_local-hooks/update-initramfs.sh13
1 files changed, 12 insertions, 1 deletions
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