mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 14:02:52 +07:00
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:
+6
-5
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user