1 |
On Wed, Sep 7, 2011 at 5:31 PM, Joshua Kinard <kumba@g.o> wrote: |
2 |
|
3 |
> Never once have I had any issues |
4 |
> with separate / and /usr, and none of them use an initramfs. |
5 |
|
6 |
|
7 |
Ditto here, but that doesn't mean that problems don't exist. Right now the |
8 |
problems are likely to be subtle, perhaps arising only with certain |
9 |
combinations of hardware/etc. Maybe if you had a bluetooth keyboard or |
10 |
something it might not work, or maybe if /usr were mounted on a bluetooth |
11 |
hard drive or something (do they even make those?). |
12 |
|
13 |
However, long-term it seems likely that the problems will continue to grow, |
14 |
as more and more upstream packages move away from supporting a /usr that |
15 |
isn't available at boot. |
16 |
|
17 |
My general suggestion has been to hold the line where it is until we have |
18 |
better support for mount /usr in initramfs, and it sounds like this is well |
19 |
underway. |
20 |
|
21 |
|
22 |
> As far as initramfs, is this something that would need to go into the |
23 |
> kernel? |
24 |
|
25 |
|
26 |
Well, the kernel comes with code for making an initramfs, but most likely it |
27 |
would be implemented in a separate package. The initramfs isn't part of the |
28 |
kernel - it is loaded by grub at boot time and its address is passed to the |
29 |
kernel. So, the file needs to be on /boot. |
30 |
|
31 |
I also netboot some of my systems, and they have limits on the total |
32 |
> size of the kernel image (7.2MB on one, ~40MB on another, etc), hence the |
33 |
> need to keep this small or find another way to do things. |
34 |
> |
35 |
|
36 |
I think that pxelinux supports initramfs - I know it supports initrd at |
37 |
least and I don't think it makes any difference at the bootloader level. In |
38 |
fact, things like network booting are one of the drivers behind the Fedora |
39 |
project to have dracut mount /usr. Their plan is to just move everything |
40 |
into /usr, allow it to be NFS-mounted, and then with one mountpoint |
41 |
everything the system needs is available. Eventually in Fedora /lib and |
42 |
/bin will just be symlinks into /usr. That will work fine as long as dracut |
43 |
mounts /usr. |
44 |
|
45 |
Are there possibilities about breaking off just a small piece of openrc and |
46 |
> putting that into /run (or /boot)? Enough of the core scripts so that it |
47 |
> can find /usr and mount it before continuing? |
48 |
> |
49 |
> |
50 |
Well, it certainly could be done, but it doesn't seem to be the direction |
51 |
anybody else is going. Instead the plan is to just create a very minimal |
52 |
initramfs that gets the job done. Using it would just be a matter of |
53 |
installing the file and editing the boot line to load it. Or, you can use |
54 |
something like dracut or genkernel and get a more robust one. |
55 |
|
56 |
Disclaimer - I'm not speaking for anybody but myself here... |
57 |
|
58 |
Rich |