From 73482251116244dabc5f3bfee993aad68c012d26 Mon Sep 17 00:00:00 2001 From: Claudio Matsuoka Date: Thu, 10 Jan 2008 18:53:34 -0200 Subject: [PATCH] Reset mtab on boot (workaround, fix it properly later) Signed-off-by: Claudio Matsuoka --- Makefile | 2 +- ffinit.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3a96ef19..f53d3faf 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ CC = gcc -CFLAGS = -Os -Wall #-DDEBUG +CFLAGS = -Os -Wall -DDEBUG LD = gcc LDFLAGS = LIBS = diff --git a/ffinit.c b/ffinit.c index 969e96fb..9af5fcbb 100644 --- a/ffinit.c +++ b/ffinit.c @@ -185,6 +185,7 @@ int main() mount("tmpfs", "/tmp", "tmpfs", 0, "mode=1777,size=128m"); mount(SYSROOT, "/", NULL, MS_MOVE, NULL); + unlink("/etc/mtab"); system("mount -a"); #ifdef MAKE_DEVICES