View previous topic :: View next topic |
Author |
Message |
hefe n00b
Joined: 18 Aug 2004 Posts: 58 Location: Germany
|
Posted: Sun Feb 03, 2013 12:07 pm Post subject: /usr on separate partition and no initramfs, whats the risk? |
|
|
Hi,
i have a few questions about the requirement of an initramfs when /usr is on a separate partition. I dont have initramfs yet and there are no (aparent) problems.
1) Is there a way to avoid initramfs when /usr is on a separate partition?
2) Where can i find more information about the internals of the early boot phase, where initramfs comes into play?
3) I know initramfs as a way to provide modules that are needed to access the block device where the root partition is, but i have these built in. What else would i use it for?
4) I could just follow http://wiki.gentoo.org/wiki/Dracut but how can i know if initramfs works, because my system seems okay even without initramfs.
Every hint is welcome,
hefe |
|
Back to top |
|
|
frostschutz Advocate
Joined: 22 Feb 2005 Posts: 2977 Location: Germany
|
Posted: Sun Feb 03, 2013 3:17 pm Post subject: |
|
|
It just won't work or stop working when you get an update that expects /usr to be present.
Even with Initramfs, I just got rid of the / /usr separation. It's simply not worth the potential trouble. |
|
Back to top |
|
|
hefe n00b
Joined: 18 Aug 2004 Posts: 58 Location: Germany
|
Posted: Mon Feb 04, 2013 9:20 pm Post subject: |
|
|
Thank you for your info.
I found that genkernel is able to create an initrd image and will early-mount all filesystems given in /etc/initramfs.mounts.
However it seems that the init-script from initramfs is unable to cope with hexadecimal device numbers in the kernel commad line, see /usr/src/linux/Documentation/kernel-parameters.txt (root= entry). Because root=/dev/sda5 works but root=805 does not but is a valid way to provide the root device. This is a problem whe you use lilo, becaus lilo will translate your root=/dev/sdXY into the correct hex number.
Links i used:
cheers |
|
Back to top |
|
|
ulenrich Veteran
Joined: 10 Oct 2010 Posts: 1480
|
Posted: Mon Feb 04, 2013 9:44 pm Post subject: |
|
|
Upstream dracut is the real thing to produce a viable initramfs. It is easy to configure and has a big crowd of developers for all that special cases. Keep away from genkernel hacks!
And it is not that hard to submit make command yourself. For the benefit you keep yourself clean of genkernel bugs! |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54242 Location: 56N 3W
|
Posted: Mon Feb 04, 2013 10:14 pm Post subject: |
|
|
hefe,
Its not hard to roll your own initramfs. Then you can stay away from all the auto black magic. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Etal Veteran
Joined: 15 Jul 2005 Posts: 1931
|
Posted: Mon Feb 04, 2013 10:48 pm Post subject: |
|
|
You can also use busybox with sep-usr USE-flag if you don't have a very complicated setup.
See here: http://thread.gmane.org/gmane.linux.gentoo.devel/76653 _________________ “And even in authoritarian countries, information networks are helping people discover new facts and making governments more accountable.”– Hillary Clinton, Jan. 21, 2010 |
|
Back to top |
|
|
The Doctor Moderator
Joined: 27 Jul 2010 Posts: 2678
|
Posted: Tue Feb 05, 2013 12:49 am Post subject: |
|
|
I keep an initramfs that mounts user handy in case anything breaks. So far, everything works. A failed boot just splashes a lot of failure messages at you. The solution is simple: log in, reboot, change boot option, reboot. losing /usr will cripple the system, not kill it. _________________ First things first, but not necessarily in that order.
Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box. |
|
Back to top |
|
|
hefe n00b
Joined: 18 Aug 2004 Posts: 58 Location: Germany
|
Posted: Wed Feb 06, 2013 5:56 am Post subject: |
|
|
Thank you for your answers!
ulenrich, do you think genkernel will be dropped in future? I use genkernel only to create the ramdisk, because i tend to manually install the kernel.
The bug [1] i filed is still unconfirmed. I will take a closer look at Dracut.
Etal, separate /usr without initrd using busybox is quite neat, i will try that too.
hefe
[1] https://bugs.gentoo.org/show_bug.cgi?id=455518 |
|
Back to top |
|
|
ulenrich Veteran
Joined: 10 Oct 2010 Posts: 1480
|
Posted: Wed Feb 06, 2013 5:39 pm Post subject: |
|
|
On then contrary genkernel is worked on very hard recently. As some stated it is not hard to build your own initramfs - this is true for the most simple case. Dracut has a very fine infrastructure which will fit for all cases.
But Dracut was initiated by some Fedora guys. Redhat is hated by most Gentoo developers. I don't know why. |
|
Back to top |
|
|
Bitspyer Apprentice
Joined: 17 Dec 2002 Posts: 211 Location: Mainz, Germany
|
Posted: Fri Feb 08, 2013 9:34 am Post subject: |
|
|
As you write in No. 3.) you have built in the needed Drivers, so you don't need initramfs.
I do this for many years.
Greetz
bitspyer _________________ Der Weg zur Dunklen Seite... Schneller er ist, verführerischer, leichter. |
|
Back to top |
|
|
hcaulfield57 Tux's lil' helper
Joined: 13 Mar 2012 Posts: 148
|
Posted: Fri Feb 15, 2013 6:38 am Post subject: |
|
|
I have separate /usr and no initramfs (with eudev), everything works properly without any additional configuration. The separate /usr is broken thing is basically a myth, although it does break some rare use cases. _________________ "To design the perfect anti-Unix, make all file formats binary and opaque, and require heavyweight tools to read and edit them." - The Art of Unix Programming |
|
Back to top |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5909
|
Posted: Fri Feb 15, 2013 9:42 am Post subject: |
|
|
hcaulfield57 wrote: | I have separate /usr and no initramfs (with eudev), everything works properly without any additional configuration. The separate /usr is broken thing is basically a myth, although it does break some rare use cases. |
same with latest udev. _________________ Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein |
|
Back to top |
|
|
|