mirror of
https://github.com/troglobit/finit.git
synced 2026-10-22 11:36:07 +00:00
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:
1 parent
9bce8f9584
commit
a685b698c2
1 file changed
+2
-2
+2
-2
@@ -232,8 +232,8 @@ static void fs_remount_root(int fsckerr)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
while ((mnt = getmntent(fp))) {
|
while ((mnt = getmntent(fp))) {
|
||||||
if (strcmp(mnt->mnt_dir, "/"))
|
if (!strcmp(mnt->mnt_dir, "/"))
|
||||||
continue;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If / is not listed in fstab, or listed as 'ro', leave it alone */
|
/* If / is not listed in fstab, or listed as 'ro', leave it alone */
|
||||||
|
|||||||
Reference in new issue
Block a user