]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
installer: Replace ext3 filesystem by ext4. ext4
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 30 Oct 2010 23:17:29 +0000 (01:17 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 30 Oct 2010 23:17:29 +0000 (01:17 +0200)
src/install+setup/install/main.c

index ccb52647632db0933c1e717d8fb08653e5449dd9..5e2d75a20dc09e3c9857d7226fb5c4d3d61e5e5a 100644 (file)
@@ -16,7 +16,7 @@
 
 #define EXT2 0
 #define REISERFS 2
-#define EXT3 1
+#define EXT4 1
 
 FILE *flog = NULL;
 char *mylog;
@@ -44,7 +44,7 @@ int main(int argc, char *argv[])
        int rc = 0;
        char commandstring[STRING_SIZE];
        char mkfscommand[STRING_SIZE];
-       char *fstypes[] = { "ext2", "ext3", "ReiserFS", NULL };
+       char *fstypes[] = { "ext2", "ext4", "ReiserFS", NULL };
        int fstype = REISERFS;
        int choice;
        int i;
@@ -373,9 +373,9 @@ int main(int argc, char *argv[])
        } else if (fstype == REISERFS) {
                mysystem("/sbin/modprobe reiserfs");
                sprintf(mkfscommand, "/sbin/mkreiserfs -f");
-       } else if (fstype == EXT3) {
-               mysystem("/sbin/modprobe ext3");
-               sprintf(mkfscommand, "/sbin/mke2fs -T ext3 -c");
+       } else if (fstype == EXT4) {
+               mysystem("/sbin/modprobe ext4");
+               sprintf(mkfscommand, "/sbin/mke2fs -T ext4 -c");
        }
 
        snprintf(commandstring, STRING_SIZE, "/sbin/mke2fs -T ext2 -c %s1", hdparams.devnode_part);
@@ -490,7 +490,7 @@ int main(int argc, char *argv[])
        } else if (fstype == REISERFS) {
                replace("/harddisk/etc/fstab", "FSTYPE", "reiserfs");
                replace("/harddisk/boot/grub/grub.conf", "MOUNT", "ro");
-       } else if (fstype == EXT3) {
+       } else if (fstype == EXT4) {
                snprintf(commandstring, STRING_SIZE, "tune2fs -j %s3", hdparams.devnode_part);
                if (runcommandwithstatus(commandstring, ctr[TR_JOURNAL_EXT3]))
                {
@@ -505,7 +505,7 @@ int main(int argc, char *argv[])
                        replace("/harddisk/etc/fstab", "FSTYPE", "ext2");
                        goto NOJOURNAL;
                }
-               replace("/harddisk/etc/fstab", "FSTYPE", "ext3");
+               replace("/harddisk/etc/fstab", "FSTYPE", "ext4");
                NOJOURNAL:
                replace("/harddisk/boot/grub/grub.conf", "MOUNT", "ro");
        }