Removed also the pata mkinitcpio hook if install on hda

This commit is contained in:
Michael Tremer
2008-05-28 17:40:25 +02:00
parent 5ac0da0b63
commit e62ab04d2d

View File

@@ -501,9 +501,13 @@ int main(int argc, char *argv[])
replace("/harddisk/boot/grub/grub.conf", "MOUNT", "ro");
}
/* Remove the ide hook if we install sda */
/* mkinitcpio has a problem if ide and pata are included */
if ( scsi_disk==1 ) {
replace("/harddisk/etc/mkinitcpio.conf", " ide ", " ");
/* Remove the ide hook if we install sda */
replace("/harddisk/etc/mkinitcpio.conf", " ide ", " ");
} else {
/* Remove the pata hook if we install hda */
replace("/harddisk/etc/mkinitcpio.conf", " pata ", " ");
}
/* Going to make our initrd... */
snprintf(commandstring, STRING_SIZE, "/sbin/chroot /harddisk /sbin/mkinitcpio -g /boot/ipfirerd.img -k %s-ipfire", KERNEL_VERSION);