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:55:36
Message-Id: 20382.50132.236375.151927@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 12:14:19 Ulrich Mueller wrote:
4 >> >> > i've added a new USE=sep-usr flag to busybox. when enabled, this
5 >> >> > will install a static busybox at /ginit (and have the other busybox
6 >> >> > paths symlink to that so there's no overhead). this new applet has a
7 >> >> > hand written set of commands to automatically mount /dev /proc /sys
8 >> >> > /usr and seed /dev, and then execute the real init (defaulting to
9 >> >> > /sbin/init).
10 >> >>
11 >> >> Shouldn't it fsck the /usr partition before mounting it? I don't see
12 >> >> that in ginit.c.
13 >> >
14 >> > it mounts it read-only. fsck-ing is left to the normal init scripts.
15 >>
16 >> Which doesn't work, at least not for ext{2,3,4}. e2fsck contains
17 >> special handling for the root fs, but it refuses to repair any other
18 >> mounted file system (even if mounted read-only).
19
20 > i believe there's a bug open on the topic. it's not something i
21 > think belongs in the pre-/usr code.
22
23 Hm, bug 410605. I agree that the most systematic approach would be to
24 fix fsck.*. It should treat other read-only filesystems the same way
25 it treats the root fs.
26
27 Ulrich