milis/talimatname/temel-ek/kernel-lts/kernel-lts.kur-kos

16 lines
393 B
Plaintext
Raw Normal View History

2016-10-24 21:54:58 +02:00
#!/bin/bash
cd /boot
if [ -f kernel ];then
rm kernel
fi
yenimodul=`ls -Art /lib/modules/ | tail -n 1`
yenikernel=`ls -Art /boot/kernel* | tail -n 1`
modulno=`basename $yenimodul`
kernelno=`basename $yenikernel`
ln -s $kernelno kernel
2016-10-24 22:56:28 +02:00
if [ -f initramfs ];then
mv initramfs initramfs_eski
fi
2016-10-24 21:54:58 +02:00
dracut -N --force --xz --omit systemd /boot/initramfs $modulno
2017-03-08 13:06:53 +01:00
grub-mkconfig -o /boot/grub/grub.cfg