milis/bin/initramfs_yap.sh

8 lines
227 B
Bash
Raw Normal View History

2016-10-24 22:36:19 +02:00
#!/bin/bash
2016-10-24 22:56:28 +02:00
if [ -f /boot/initramfs ];then
mv /boot/initramfs /boot/initramfs_eski
fi
2016-10-24 22:36:19 +02:00
yenimodul=`ls -Art /lib/modules/ | tail -n 1`
modulno=`basename $yenimodul`
dracut -N --force --xz --omit systemd /boot/initramfs $modulno