public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: "J. Roeleveld" <joost@antarean.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Re: eudev project announcement
Date: Fri, 21 Dec 2012 16:04:31 +0100	[thread overview]
Message-ID: <1635723.VeYid7ZcB5@eve> (raw)
In-Reply-To: <CAGfcS_=buNuCfd6MA230UtYXnyX4Qe+d3g1CcNyUGA0wb9FCOA@mail.gmail.com>

On Friday, December 21, 2012 09:38:36 AM Rich Freeman wrote:
> On Fri, Dec 21, 2012 at 8:51 AM, Ian Stakenvicius <axs@gentoo.org> wrote:
> > On 21/12/12 03:10 AM, J. Roeleveld wrote:
> >> An init* needs to be kept in sync with the rest of the system as
> >> well.
> > 
> > Just to be clear, by "init*" you mean {initrd,initramfs} , correct?
> 
> Seems likely.
> 
> However, for the most part it really only needs to be kept in sync
> with the kernel.  Smarter ones like dracut that might do things like
> keep a copy of mdadm.conf internally might need to be updated when
> your disks change, and so on.  In general, however, they only need
> changes when either your kernel changes, or the path to the root
> filesystem changes (by path I mean mdadm/lvm/nfs/etc).

And with the "move to /usr", also when that changes.
Granted, on most systems it won't actually move often once it's installed.

> Everything inside the initramfs is self-contained and does not have
> dependencies on anything outside.  Sure, it might not have the latest
> version of udev inside or whatever, but unless you need the latest
> version of udev to mount root it isn't a problem.  The contents of the
> initramfs are generally discarded once root and /usr are mounted.

True, but what if a system has been updated and the structure of the system 
has been changed. This makes the init* (what is the preferred way of naming 
this?) no longer able to boot properly.

> However, I can vouch that an initramfs can make things interesting if
> you do move your root filesystem.  I just moved mine to lvm and forgot
> to update fstab.sys.  Dracut does pay attention to your root
> filesystem in fstab and fstab.sys - it uses the kernel line to find
> root, but once it is mounted fstab gets read and used to remount it.
> Oh, and if fstab and fstab.sys have differing root lines both get
> sort-of-mounted (it mounts what is in fstab, and then mounts fstab.sys
> over it as far as I can tell - running mount and finding that you have
> /sysroot mounted on a mountpoint that you can't even get to is fun).

Why are there 2 fstab-files? That, to me, looks like a likely cause for 
problems.
I haven't tried dracut yet, but have tried " genkernel " to generate the init* 
and it does work. However it does increase the complexity and adds a layer 
that is not easily debugged.
I am looking forward to when eudev is released and supports my environment so 
I can get rid of it.

The creation of init*-files is not clearly documented and the tools available 
want to put user-space tools inside it.

> But, I wouldn't be running root on lvm but for the initramfs, so it
> was worth the trouble.  Anybody who moves around root without a boot
> CD handy is asking for trouble anyway.

Agreed, I would do that move from inside a rescue-environment myself, not on a 
live system :)

--
Joost


  reply	other threads:[~2012-12-21 15:05 UTC|newest]

Thread overview: 77+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-15  3:52 [gentoo-dev] eudev project announcement Richard Yao
2012-12-15  3:57 ` Richard Yao
2012-12-15  4:16 ` Peter Stuge
2012-12-15  5:28   ` [gentoo-dev] " Nikos Chantziaras
2012-12-15 12:40     ` Rich Freeman
2012-12-15  6:33   ` [gentoo-dev] " Walter Dnes
2012-12-15  7:21     ` [gentoo-dev] " Duncan
2012-12-15 17:53       ` Walter Dnes
2012-12-15 18:07         ` Michał Górny
2012-12-15 18:58           ` Walter Dnes
2012-12-15 19:33             ` Michał Górny
2012-12-15 20:17               ` Richard Yao
2012-12-17 10:40                 ` Olav Vitters
2012-12-17 11:09                   ` Luca Barbato
2012-12-17 13:25                     ` Olav Vitters
2012-12-17 14:29                       ` Richard Yao
2012-12-17 19:48                         ` Olav Vitters
2012-12-17 20:03                           ` J. Roeleveld
2012-12-17 21:31                             ` Greg KH
2012-12-17 23:23                               ` William Hubbs
2012-12-18  6:50                                 ` Ulrich Mueller
2012-12-18 18:45                                   ` William Hubbs
2012-12-18 18:51                                     ` Richard Yao
2012-12-18 19:06                                       ` William Hubbs
2012-12-18 19:20                                     ` Ian Stakenvicius
2012-12-18 19:28                                     ` Rich Freeman
2012-12-18  9:01                                 ` Richard Yao
2012-12-18 18:07                                 ` Ian Stakenvicius
2012-12-18  7:21                               ` J. Roeleveld
2012-12-19 17:13                                 ` Greg KH
2012-12-19 17:41                                   ` Kevin Chadwick
2012-12-19 23:27                                   ` J. Roeleveld
2012-12-20  8:31                                     ` Michał Górny
2012-12-20 11:21                                       ` Richard Yao
2012-12-20 12:02                                         ` Rich Freeman
2012-12-20 12:18                                           ` Richard Yao
2012-12-20 20:55                                           ` Kevin Chadwick
2012-12-21  8:23                                           ` J. Roeleveld
2012-12-21  8:10                                       ` J. Roeleveld
2012-12-21  8:57                                         ` Michał Górny
2012-12-21 10:24                                           ` J. Roeleveld
2012-12-21 11:02                                             ` Michał Górny
2012-12-21 11:31                                               ` J. Roeleveld
2012-12-21 11:42                                                 ` Michał Górny
2012-12-21 11:48                                                   ` J. Roeleveld
2012-12-21 16:12                                                     ` Stelian Ionescu
2012-12-21 16:14                                                       ` J. Roeleveld
2012-12-21 13:51                                         ` Ian Stakenvicius
2012-12-21 14:37                                           ` J. Roeleveld
2012-12-21 14:52                                             ` Dale
2012-12-21 14:54                                               ` J. Roeleveld
2012-12-21 15:06                                                 ` Dale
2012-12-21 14:38                                           ` Rich Freeman
2012-12-21 15:04                                             ` J. Roeleveld [this message]
2012-12-21 16:21                                               ` William Hubbs
2012-12-21 17:36                                                 ` J. Roeleveld
2012-12-21 17:52                                                   ` Dale
2012-12-21 18:05                                                     ` J. Roeleveld
2012-12-21 18:15                                                       ` Ian Stakenvicius
2012-12-21 18:20                                                   ` William Hubbs
2012-12-21 18:52                                                     ` J. Roeleveld
2012-12-18  8:51                               ` Richard Yao
2012-12-18  5:12                       ` Luca Barbato
2012-12-17 12:47                   ` Richard Yao
2012-12-15 23:32         ` Duncan
2012-12-15 14:19     ` [gentoo-dev] " Anthony G. Basile
2012-12-15 21:08   ` Richard Yao
2012-12-15 21:20     ` Rick "Zero_Chaos" Farina
2012-12-15 21:22       ` Richard Yao
2012-12-15 12:07 ` Roy Bamford
2012-12-15 12:47   ` Dale
2012-12-15 12:48 ` [gentoo-dev] Re: [gentoo-project] " Rich Freeman
2012-12-15 13:52   ` Duncan
2012-12-15 15:43   ` Luca Barbato
2012-12-15 16:20     ` Rich Freeman
2012-12-15 20:29       ` Luca Barbato
2012-12-15 21:16       ` Richard Yao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1635723.VeYid7ZcB5@eve \
    --to=joost@antarean.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox