summaryrefslogtreecommitdiff
path: root/config/chroot_local-hooks
diff options
context:
space:
mode:
authorHolger Paradies <retabell@gmx.de>2021-03-27 16:58:42 +0100
committerHolger Paradies <retabell@gmx.de>2021-03-27 17:40:52 +0100
commite3eefe185e47195157fba621df4554c6dcb44b79 (patch)
treee59c17f868cea9d5e7428eeaa5033a9ab756c90a /config/chroot_local-hooks
parent89a61c75a39268877c7b3c865fcd4c8354c30ef5 (diff)
downloadkanotix-e3eefe185e47195157fba621df4554c6dcb44b79.zip
kanotix-e3eefe185e47195157fba621df4554c6dcb44b79.tar.gz
Workaround initramfs hook
Diffstat (limited to 'config/chroot_local-hooks')
-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