summaryrefslogtreecommitdiff
path: root/config/chroot_local-hooks/update-initramfs.sh
blob: 5fe806b80b848e4bd53c4da04e3336dcb97da7f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
# Disable the diversion that prevented update-initramfs from being run
# This way we save time by not calling update-initramfs several times
rm -f /usr/local/sbin/update-initramfs

# Create stubs that will be updated by chroot_hacks afterwards

# 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