Follow-up to 4febd28: remount / as rw requires /proc to be mounted

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2021-02-06 20:37:41 +01:00
1 parent 254d7e0238
commit 9e73fda2ac
1 file changed
+6 -5
+6 -5
View File
@@ -175,14 +175,15 @@ static void fs_remount_root(int fsckerr)
static void fs_init(void) static void fs_init(void)
{ {
int fsckerr;
if (!rescue) { if (!rescue) {
fsckerr = fsck_all(); /*
fs_remount_root(fsckerr); * /etc/fstab may mount over this later, we need /proc
* to be able to remount / as read-write --Jocke
*/
mount("none", "/proc", "proc", 0, NULL);
fs_remount_root(fsck_all());
} }
_d("Root FS up, calling hooks ..."); _d("Root FS up, calling hooks ...");
plugin_run_hooks(HOOK_ROOTFS_UP); plugin_run_hooks(HOOK_ROOTFS_UP);