1 |
On Wed, Sep 07, 2011 at 08:35:46PM -0400, Rich Freeman wrote: |
2 |
> On Wed, Sep 7, 2011 at 5:31 PM, Joshua Kinard <kumba@g.o> wrote: |
3 |
> > Never once have I had any issues |
4 |
> > with separate / and /usr, and none of them use an initramfs. |
5 |
> Ditto here, but that doesn't mean that problems don't exist. Right now the |
6 |
> problems are likely to be subtle, perhaps arising only with certain |
7 |
> combinations of hardware/etc. Maybe if you had a bluetooth keyboard or |
8 |
> something it might not work, or maybe if /usr were mounted on a bluetooth |
9 |
> hard drive or something (do they even make those?). |
10 |
Bluetooth keyboard wanted during early boot (to put in the root password |
11 |
for a fsck repair after a hard shutdown) is one that bit me already. |
12 |
|
13 |
> > As far as initramfs, is this something that would need to go into the |
14 |
> > kernel? |
15 |
> Well, the kernel comes with code for making an initramfs, but most likely it |
16 |
> would be implemented in a separate package. The initramfs isn't part of the |
17 |
> kernel - it is loaded by grub at boot time and its address is passed to the |
18 |
> kernel. So, the file needs to be on /boot. |
19 |
That's not always true, see further down. |
20 |
|
21 |
> I also netboot some of my systems, and they have limits on the total |
22 |
> > size of the kernel image (7.2MB on one, ~40MB on another, etc), hence the |
23 |
> > need to keep this small or find another way to do things. |
24 |
> I think that pxelinux supports initramfs - I know it supports initrd at |
25 |
> least and I don't think it makes any difference at the bootloader level. In |
26 |
> fact, things like network booting are one of the drivers behind the Fedora |
27 |
> project to have dracut mount /usr. Their plan is to just move everything |
28 |
> into /usr, allow it to be NFS-mounted, and then with one mountpoint |
29 |
> everything the system needs is available. Eventually in Fedora /lib and |
30 |
> /bin will just be symlinks into /usr. That will work fine as long as dracut |
31 |
> mounts /usr. |
32 |
That's not quite as easy for Kumba... Some of the MIPS bootloaders are |
33 |
very limited. At least one of them requires that the initramfs be built |
34 |
INTO the kernel. |
35 |
|
36 |
> |
37 |
> Are there possibilities about breaking off just a small piece of openrc and |
38 |
> > putting that into /run (or /boot)? Enough of the core scripts so that it |
39 |
> > can find /usr and mount it before continuing? |
40 |
> Well, it certainly could be done, but it doesn't seem to be the direction |
41 |
> anybody else is going. Instead the plan is to just create a very minimal |
42 |
> initramfs that gets the job done. |
43 |
That's pretty much the only stuff in WilliamH's prototype. Just enough |
44 |
to get /usr mounted (/run comes for almost free at that point basically, |
45 |
it's just mounting tmpfs on /newroot/run/). |
46 |
|
47 |
-- |
48 |
Robin Hugh Johnson |
49 |
Gentoo Linux: Developer, Trustee & Infrastructure Lead |
50 |
E-Mail : robbat2@g.o |
51 |
GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85 |