more fixes for sammy
Change-Id: Ie11c673a204a328a82f767a2610c5f1d9a51233c
This commit is contained in:
parent
47d86a35bc
commit
ab1f8b836e
@ -977,7 +977,8 @@ void write_fstab_root(char *path, FILE *file)
|
||||
|
||||
fprintf(file, "%s ", device);
|
||||
fprintf(file, "%s ", path);
|
||||
fprintf(file, "%s rw\n", vol->fs_type2 != NULL ? "auto" : vol->fs_type);
|
||||
// special case rfs cause auto will mount it as vfat on samsung.
|
||||
fprintf(file, "%s rw\n", vol->fs_type2 != NULL && strcmp(vol->fs_type, "rfs") != 0 ? "auto" : vol->fs_type);
|
||||
}
|
||||
|
||||
void create_fstab()
|
||||
|
1
roots.c
1
roots.c
@ -175,6 +175,7 @@ int ensure_path_mounted(const char* path) {
|
||||
return mtd_mount_partition(partition, v->mount_point, v->fs_type, 0);
|
||||
} else if (strcmp(v->fs_type, "ext4") == 0 ||
|
||||
strcmp(v->fs_type, "ext3") == 0 ||
|
||||
strcmp(v->fs_type, "rfs") == 0 ||
|
||||
strcmp(v->fs_type, "vfat") == 0) {
|
||||
// try fs type 2 first
|
||||
if ((result = try_mount(v->device, v->mount_point, v->fs_type, v->fs_options)) == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user