mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 13:33:09 +07: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:
+2
-2
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user