[systemd-devel] [PATCH 1/2] add initrd-fs.target and root-fs.target

Harald Hoyer harald at redhat.com
Wed Mar 13 01:17:53 PDT 2013


Am 13.03.2013 09:06, schrieb Tom Gundersen:
> On Wed, Mar 13, 2013 at 3:41 AM,  <harald at redhat.com> wrote:
>> From: Harald Hoyer <harald at redhat.com>
>>
>> Instead of using local-fs*.target in the initrd, use root-fs.target for
>> sysroot.mount and initrd-fs.target for /sysroot/usr and friends.
>>
>> Using local-fs.target would mean to carry over the activated
>> local-fs.target to the isolated initrd-switch-root.target and thus in
>> the real root. Having local-fs.target already active after
>> deserialization causes ordering problems with the real root services and
>> targets.
>>
>> We better isolate to targets for initrd-switch-root.target, which are
>> only available in the initrd.
> 
> Looks good.
> 
> This means that we should probably stop reusing units at all in the
> initramfs. In some cases I guess it works (udev/journal), but perhaps
> we should avoid it also there for consistency?
> 
> In particular any storage daemons will need initrd-specific versions
> which are ordered against these new targets rather than
> local-fs.target. I don't see a problem with this, just something we
> need to be aware of.
> 
> Thanks for sorting this out, and sorry for not noticing.
> 
> Cheers,
> 
> Tom

Thanks! Pushed



More information about the systemd-devel mailing list