mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
Updated Layer7 filter
Removed mkinitcpio ide hook if no ide drive found
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user