Follow-up to 5593372f, regression in remounting read-write at boot

A subtle regression was introduced in 5593372f, when moving to get
getmntent() family of APIs.  Finding the 'ro' flag (or not) in the
system fstab broke and Finit never tried to remount / read-write.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2022-05-01 19:28:50 +02:00
parent 9bce8f9584
commit a685b698c2
+2 -2
View File
@@ -232,8 +232,8 @@ static void fs_remount_root(int fsckerr)
return;
while ((mnt = getmntent(fp))) {
if (strcmp(mnt->mnt_dir, "/"))
continue;
if (!strcmp(mnt->mnt_dir, "/"))
break;
}
/* If / is not listed in fstab, or listed as 'ro', leave it alone */