char *shortlangnames[] = { "de", "en", NULL };
char **langtrs[] = { de_tr, en_tr, NULL };
char hdletter;
- char harddrive[11], sourcedrive[5]; /* Device holder. */
+ char harddrive[30], sourcedrive[5]; /* Device holder. */
struct devparams hdparams, cdromparams; /* Params for CDROM and HD */
int rc = 0;
char commandstring[STRING_SIZE];
errorbox(ctr[TR_NO_HARDDISK]);
goto EXIT;
}
- fgets(harddrive, 11, handle);
+ fgets(harddrive, 30, handle);
fclose(handle);
/* load unattended configuration */
replace("/harddisk/boot/grub/grub.conf", "MOUNT", "ro");
}
+ /* mkinitcpio has a problem if ide and pata are included */
+ if ( scsi_disk==1 ) {
+ /* 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);
runcommandwithstatus(commandstring, ctr[TR_BUILDING_INITRD]);