mkinitrd replaced with initramfs-tools

This commit is contained in:
sulincix committed 2024-11-24 08:33:08 +00:00
1 parent b812c15233
commit 49b2dcd518
9 files changed
+46 -413

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh
if grep "boot=live" /proc/cmdline >/dev/null ; then
exit 0
fi
for kernel in $(ls /lib/modules) ; do
if [ ! -f /boot/initrd.img-$kernel ] ; then
mkinitrd -u -k $kernel
fi
done