initramfs_yapici
This commit is contained in:
parent
5dd5ebdaf1
commit
dca1545bd5
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue