initramfs

This commit is contained in:
milisarge 2017-06-12 05:37:39 +03:00
parent 15abe9acf9
commit daf21b2b9e
2 changed files with 4 additions and 7 deletions

View File

@ -1 +1,5 @@
#!/bin/bash
if [ -f /boot/initramfs ];then
mv /boot/initramfs /boot/initramfs_eski
fi
dracut -N --force --xz --omit systemd --add-drivers ahci -f /boot/initramfs `uname -r` dracut -N --force --xz --omit systemd --add-drivers ahci -f /boot/initramfs `uname -r`

View File

@ -1,7 +0,0 @@
#!/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