mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 03:33:25 +02:00
fixup initrd - Änderung von ipcoprd.img nach ipfirerd.img
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@206 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
@@ -163,20 +163,20 @@ void fixup_initrd() {
|
|||||||
if (!strlen(driver) > 1)
|
if (!strlen(driver) > 1)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
fprintf(flog, "Fixing up ipcoprd.img\n");
|
fprintf(flog, "Fixing up ipfirerd.img\n");
|
||||||
mysystem("/bin/chroot /harddisk /sbin/modprobe loop");
|
mysystem("/bin/chroot /harddisk /sbin/modprobe loop");
|
||||||
mkdir("/harddisk/initrd", S_IRWXU|S_IRWXG|S_IRWXO);
|
mkdir("/harddisk/initrd", S_IRWXU|S_IRWXG|S_IRWXO);
|
||||||
sprintf(commandstring, "/bin/chroot /harddisk /sbin/mkinitrd"
|
sprintf(commandstring, "/bin/chroot /harddisk /sbin/mkinitrd"
|
||||||
" --with=scsi_mod --with=%s --with=sd_mod"
|
" --with=scsi_mod --with=%s --with=sd_mod"
|
||||||
" --with=sr_mod --with=libata"
|
" --with=sr_mod --with=libata"
|
||||||
" --with=ataraid /boot/ipcoprd.img "KERNEL_VERSION,
|
" --with=ataraid /boot/ipfirerd.img "KERNEL_VERSION,
|
||||||
driver );
|
driver );
|
||||||
runcommandwithstatus(commandstring, ctr[TR_BUILDING_INITRD]);
|
runcommandwithstatus(commandstring, ctr[TR_BUILDING_INITRD]);
|
||||||
#ifdef __i386__
|
#ifdef __i386__
|
||||||
sprintf(commandstring, "/bin/chroot /harddisk /sbin/mkinitrd"
|
sprintf(commandstring, "/bin/chroot /harddisk /sbin/mkinitrd"
|
||||||
" --with=scsi_mod --with=%s --with=sd_mod"
|
" --with=scsi_mod --with=%s --with=sd_mod"
|
||||||
" --with=sr_mod --with=libata"
|
" --with=sr_mod --with=libata"
|
||||||
" --with=ataraid /boot/ipcoprd-smp.img "KERNEL_VERSION"-smp",
|
" --with=ataraid /boot/ipfirerd-smp.img "KERNEL_VERSION"-smp",
|
||||||
driver );
|
driver );
|
||||||
runcommandwithstatus(commandstring, ctr[TR_BUILDING_INITRD]);
|
runcommandwithstatus(commandstring, ctr[TR_BUILDING_INITRD]);
|
||||||
mysystem("/bin/chroot /harddisk /bin/mv /boot/grub/scsigrub.conf /boot/grub/grub.conf");
|
mysystem("/bin/chroot /harddisk /bin/mv /boot/grub/scsigrub.conf /boot/grub/grub.conf");
|
||||||
|
|||||||
Reference in New Issue
Block a user