Last active
August 5, 2019 02:17
-
-
Save msnoigrs/5555e8ff8e187eaea1c4 to your computer and use it in GitHub Desktop.
mkinitramfs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
KVER=$(readlink /usr/src/linux | sed "s/^linux-//g") | |
echo "Creating initrd for kernel version ${KVER}..." | |
FIRMWARE="" | |
for i in $(find /lib/firmware -type f) | |
do | |
FIRMWARE+=" ${i}" | |
done | |
/usr/bin/dracut -f -H -I "${FIRMWARE}" /boot/initrd-${KVER} ${KVER} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment