Updated Layer7 filter

Removed mkinitcpio ide hook if no ide drive found
This commit is contained in:
Arne Fitzenreiter
2008-05-21 00:19:19 +02:00
parent b3b363da2d
commit a6e9d42e39
5 changed files with 27 additions and 20 deletions

View File

@@ -501,6 +501,10 @@ int main(int argc, char *argv[])
replace("/harddisk/boot/grub/grub.conf", "MOUNT", "ro");
}
/* Remove the ide hook if we install sda */
if ( scsi_disk==1 ) {
replace("/harddisk/etc/mkinitcpio.conf", " ide ", " ");
}
/* Going to make our initrd... */
snprintf(commandstring, STRING_SIZE, "/sbin/chroot /harddisk /sbin/mkinitcpio -g /boot/ipfirerd.img -k %s-ipfire", KERNEL_VERSION);
runcommandwithstatus(commandstring, ctr[TR_BUILDING_INITRD]);