Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Marc Schiffbauer <mschiff@g.o>
Subject: Re: /usr vs. initramfs redux
Date: Fri, 5 Aug 2011 12:16:52 +0200
* Robin H. Johnson schrieb am 05.08.11 um 02:46 Uhr:
[...]
> That leaves the only reasonable solution as #2. In terms of minimal
> impact, I propose that we offer users with a static system an absolutely
> minimal initramfs, that _just_ mounts the required directories.  No
> modules, no LVM, no MD, no crypto etc - if you want that functionality,
> go and use genkernel or dracut. If your fstab contains a line like:
> /dev/sdXN /usr ...
> Then this initramfs is for you.
> 
> The minimal initramfs would do the following.
> 
> 1. Mount devtmpfs/sysfs/procfs as needed to access devices.
> 2. Mount real_root to /newroot
> 3. Read /newroot/etc/initramfs.mount and /newroot/etc/fstab
> 4.1. If /newroot/etc/initramfs.mount does not exist
>      Assume it contains only: /usr /var
> 5. Mount the combined items from said files
> 6. pivot_root.
> 

That sounds like a good compromise to me!

Another thing to consider:

/etc/init.d/localmount should check whats already mounted and leave
that out. But it will act as fallback if the minimal initramfs fails
to mount /usr or /var for any reason.

That way anybody migrating to that "minitramfs" will not risc an
unbootable system.

-Marc
-- 
8AAC 5F46 83B4 DB70 8317  3723 296C 6CCA 35A6 4134
Attachment:
pgpTswzhOKrvb.pgp (PGP signature)
Replies:
Re: /usr vs. initramfs redux
-- Rich Freeman
References:
Warn users not to do separate /usr partition without proper initramfs in the handbook?
-- Samuli Suominen
Re: Warn users not to do separate /usr partition without proper initramfs in the handbook?
-- Michał Górny
Re: Warn users not to do separate /usr partition without proper initramfs in the handbook?
-- Samuli Suominen
Re: Warn users not to do separate /usr partition without proper initramfs in the handbook?
-- Jorge Manuel B. S. Vicetto
Re: Warn users not to do separate /usr partition without proper initramfs in the handbook?
-- William Hubbs
Re: Warn users not to do separate /usr partition without proper initramfs in the handbook?
-- Greg KH
/usr vs. initramfs redux
-- Robin H. Johnson
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
/usr vs. initramfs redux
Next by thread:
Re: /usr vs. initramfs redux
Previous by date:
Libreoffice without sane?
Next by date:
Re: /usr vs. initramfs redux


Updated Jun 29, 2012

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.