#!/bin/bash set -ex -o pipefail update-initramfs -kall -u INITRDS=(/boot/initrd.img-*) unmkinitramfs "${INITRDS[0]}" initramfs/ find initramfs/ # Microcode may be extracted under an early/ subdirectory, depending # on the version of unmkinitramfs if [ -d initramfs/early ]; then test -e initramfs/early/kernel/x86/microcode/GenuineIntel.bin else test -e initramfs/kernel/x86/microcode/GenuineIntel.bin fi echo '# everything seems ok'