mirror of
https://github.com/troglobit/finit.git
synced 2026-10-29 12:40:44 +00: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:
1 parent
254d7e0238
commit
9e73fda2ac
1 file changed
+6
-5
+6
-5
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user