diff --git a/bin/initramfs_yap.sh b/bin/initramfs_yap.sh index 0b66eb24b..a3c6b622c 100755 --- a/bin/initramfs_yap.sh +++ b/bin/initramfs_yap.sh @@ -1,4 +1,7 @@ #!/bin/bash +if [ -f /boot/initramfs ];then + mv /boot/initramfs /boot/initramfs_eski +fi yenimodul=`ls -Art /lib/modules/ | tail -n 1` modulno=`basename $yenimodul` dracut -N --force --xz --omit systemd /boot/initramfs $modulno diff --git a/talimatname/temel-ek/kernel-lts/kernel-lts.kur-kos b/talimatname/temel-ek/kernel-lts/kernel-lts.kur-kos index cdccb9600..700594637 100644 --- a/talimatname/temel-ek/kernel-lts/kernel-lts.kur-kos +++ b/talimatname/temel-ek/kernel-lts/kernel-lts.kur-kos @@ -8,4 +8,7 @@ yenikernel=`ls -Art /boot/kernel* | tail -n 1` modulno=`basename $yenimodul` kernelno=`basename $yenikernel` ln -s $kernelno kernel +if [ -f initramfs ];then + mv initramfs initramfs_eski +fi dracut -N --force --xz --omit systemd /boot/initramfs $modulno