ext4 filesystem support added
This commit is contained in:
parent
608fa90730
commit
b5573f97da
3
disk.c
3
disk.c
@ -255,11 +255,12 @@ static enum return_type try_with_partition(char *choice)
|
||||
|
||||
if (my_mount(device_fullname, IMAGE_LOCATION, "ext2", 0) == -1 &&
|
||||
my_mount(device_fullname, IMAGE_LOCATION, "ext3", 0) == -1 &&
|
||||
my_mount(device_fullname, IMAGE_LOCATION, "ext4", 0) == -1 &&
|
||||
my_mount(device_fullname, IMAGE_LOCATION, "vfat", 0) == -1 &&
|
||||
my_mount(device_fullname, IMAGE_LOCATION, "ntfs", 0) == -1 &&
|
||||
my_mount(device_fullname, IMAGE_LOCATION, "iso9660", 0) == -1 &&
|
||||
my_mount(device_fullname, IMAGE_LOCATION, "reiserfs", 0) == -1) {
|
||||
stg1_error_message("I can't find a valid filesystem (tried: ext2, ext3, vfat, ntfs, iso9660, reiserfs).");
|
||||
stg1_error_message("I can't find a valid filesystem (tried: ext2, ext3, ext4, vfat, ntfs, iso9660, reiserfs).");
|
||||
return RETURN_ERROR;
|
||||
}
|
||||
|
||||
|
4
mount.c
4
mount.c
@ -218,6 +218,10 @@ int my_mount(char *dev, char *location, char *fs, int force_rw)
|
||||
|
||||
if (!strcmp(fs, "ext2"))
|
||||
my_insmod("ext2", NULL);
|
||||
if (!strcmp(fs, "ext3"))
|
||||
my_insmod("ext3", NULL);
|
||||
if (!strcmp(fs, "ext4"))
|
||||
my_insmod("ext4", NULL);
|
||||
|
||||
if (!strcmp(fs, "vfat")) {
|
||||
my_insmod("vfat", NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user