mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-23 09:22:59 +02:00
Ich wuerde mal sagen, dass das ext3-Dateisystem nun geht. :D
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@695 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
@@ -577,15 +577,30 @@ int main(int argc, char *argv[])
|
||||
replace("/harddisk/etc/fstab", "FSTYPE", "reiserfs");
|
||||
replace("/harddisk/boot/grub/grub.conf", "MOUNT", "ro");
|
||||
} else if (fstype == EXT3) {
|
||||
snprintf(commandstring, STRING_SIZE, "tune2fs -j %s3", hdparams.devnode_part);
|
||||
if (runcommandwithstatus(commandstring, "(TR) Creating journal for ext3..."))
|
||||
{
|
||||
errorbox("(TR) Unable to create journal. Going back to ext2.");
|
||||
replace("/harddisk/etc/fstab", "FSTYPE", "ext2");
|
||||
goto NOJOURNAL;
|
||||
}
|
||||
snprintf(commandstring, STRING_SIZE, "tune2fs -j %s4", hdparams.devnode_part);
|
||||
if (runcommandwithstatus(commandstring, "(TR) Creating journal for ext3..."))
|
||||
{
|
||||
errorbox("(TR) Unable to create journal. Going back to ext2.");
|
||||
replace("/harddisk/etc/fstab", "FSTYPE", "ext2");
|
||||
goto NOJOURNAL;
|
||||
}
|
||||
replace("/harddisk/etc/fstab", "FSTYPE", "ext3");
|
||||
NOJOURNAL:
|
||||
replace("/harddisk/etc/mkinitcpio.conf", "MODULES=\"", "MODULES=\"ext3 ");
|
||||
replace("/harddisk/boot/grub/grub.conf", "MOUNT", "ro");
|
||||
}
|
||||
|
||||
/* Going to make our initrd... */
|
||||
snprintf(commandstring, STRING_SIZE, "/sbin/chroot /harddisk /sbin/mkinitcpio -v -g /boot/ipfirerd.img -k %s-ipfire", KERNEL_VERSION);
|
||||
snprintf(commandstring, STRING_SIZE, "/sbin/chroot /harddisk /sbin/mkinitcpio -g /boot/ipfirerd.img -k %s-ipfire", KERNEL_VERSION);
|
||||
runcommandwithstatus(commandstring, ctr[TR_BUILDING_INITRD]);
|
||||
snprintf(commandstring, STRING_SIZE, "/sbin/chroot /harddisk /sbin/mkinitcpio -v -g /boot/ipfirerd-smp.img -k %s-ipfire-smp", KERNEL_VERSION);
|
||||
snprintf(commandstring, STRING_SIZE, "/sbin/chroot /harddisk /sbin/mkinitcpio -g /boot/ipfirerd-smp.img -k %s-ipfire-smp", KERNEL_VERSION);
|
||||
runcommandwithstatus(commandstring, ctr[TR_BUILDING_INITRD]);
|
||||
|
||||
sprintf(string, "root=%s3", hdparams.devnode_part_run);
|
||||
|
||||
Reference in New Issue
Block a user