From 9e73fda2ac236bdc47f4c2fdb4781a1bc32529ea Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Sat, 6 Feb 2021 20:14:50 +0100 Subject: [PATCH] Follow-up to 4febd28: remount / as rw requires /proc to be mounted Signed-off-by: Joachim Wiberg --- src/finit.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/finit.c b/src/finit.c index 13c04cda..61a24ab6 100644 --- a/src/finit.c +++ b/src/finit.c @@ -175,14 +175,15 @@ static void fs_remount_root(int fsckerr) static void fs_init(void) { - int fsckerr; - 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 ..."); plugin_run_hooks(HOOK_ROOTFS_UP);