From: Michael Tremer Date: Sat, 17 Jul 2010 16:37:32 +0000 (+0200) Subject: rebuild-initrd: Update script for use with dracut. X-Git-Tag: v2.9-beta1~48^2~5^2~2^2~158 X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=commitdiff_plain;h=b86131fbbbb7494177423d409e457d09cd53a8e2 rebuild-initrd: Update script for use with dracut. --- diff --git a/src/scripts/rebuild-initrd b/src/scripts/rebuild-initrd index 79ec1c36d7..06f30bbf05 100644 --- a/src/scripts/rebuild-initrd +++ b/src/scripts/rebuild-initrd @@ -23,21 +23,5 @@ # # KVER=`uname -r | cut -d"-" -f1` -ROOT=`grep "root=" /boot/grub/grub.conf | cut -d"=" -f2 | cut -d" " -f1 | tail -n 1` -echo -echo Rebuild the Initramdisk ... -cp -f /etc/mkinitcpio.conf.org /etc/mkinitcpio.conf -# -# Made initramdisk -# -if [ "${ROOT:0:7}" == "/dev/sd" ]; then - # Remove ide hook if root is on sda - sed -i "s| ide | |g" /etc/mkinitcpio.conf -else -if [ "${ROOT:0:7}" == "/dev/hd" ]; then - # Remove pata & sata hook if root is on hda - sed -i "s| pata | |g" /etc/mkinitcpio.conf - sed -i "s| sata | |g" /etc/mkinitcpio.conf -fi -fi -mkinitcpio -k $KVER-ipfire -g /boot/ipfirerd-$KVER.img + +dracut --force --verbose /boot/ipfirerd-$KVER.img $KVER-ipfire