Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] busybox[sep-usr] support for mounting /usr w/out hassle
Date: Mon, 30 Apr 2012 16:15:09
Message-Id: 20382.47707.665237.524762@a1i15.kph.uni-mainz.de
In Reply to: Re: [gentoo-dev] busybox[sep-usr] support for mounting /usr w/out hassle by Mike Frysinger
1 >>>>> On Mon, 30 Apr 2012, Mike Frysinger wrote:
2
3 > On Monday 30 April 2012 02:34:18 Ulrich Mueller wrote:
4 >> >>>>> On Sun, 29 Apr 2012, Mike Frysinger wrote:
5 >> > i've added a new USE=sep-usr flag to busybox. when enabled, this
6 >> > will install a static busybox at /ginit (and have the other busybox
7 >> > paths symlink to that so there's no overhead). this new applet has a
8 >> > hand written set of commands to automatically mount /dev /proc /sys
9 >> > /usr and seed /dev, and then execute the real init (defaulting to
10 >> > /sbin/init).
11 >>
12 >> Shouldn't it fsck the /usr partition before mounting it? I don't see
13 >> that in ginit.c.
14
15 > it mounts it read-only. fsck-ing is left to the normal init scripts.
16
17 Which doesn't work, at least not for ext{2,3,4}. e2fsck contains
18 special handling for the root fs, but it refuses to repair any other
19 mounted file system (even if mounted read-only).
20
21 Ulrich

Replies