initramfs_yapici

This commit is contained in:
milisman 2016-10-24 23:56:28 +03:00
parent 5dd5ebdaf1
commit dca1545bd5
2 changed files with 6 additions and 0 deletions

View File

@ -1,4 +1,7 @@
#!/bin/bash #!/bin/bash
if [ -f /boot/initramfs ];then
mv /boot/initramfs /boot/initramfs_eski
fi
yenimodul=`ls -Art /lib/modules/ | tail -n 1` yenimodul=`ls -Art /lib/modules/ | tail -n 1`
modulno=`basename $yenimodul` modulno=`basename $yenimodul`
dracut -N --force --xz --omit systemd /boot/initramfs $modulno dracut -N --force --xz --omit systemd /boot/initramfs $modulno

View File

@ -8,4 +8,7 @@ yenikernel=`ls -Art /boot/kernel* | tail -n 1`
modulno=`basename $yenimodul` modulno=`basename $yenimodul`
kernelno=`basename $yenikernel` kernelno=`basename $yenikernel`
ln -s $kernelno kernel ln -s $kernelno kernel
if [ -f initramfs ];then
mv initramfs initramfs_eski
fi
dracut -N --force --xz --omit systemd /boot/initramfs $modulno dracut -N --force --xz --omit systemd /boot/initramfs $modulno