[systemd-devel] How to debug this strange issue about "systemd"?

Andrei Borzenkov arvidjaar at gmail.com
Fri Jul 17 02:22:44 PDT 2015


On Fri, Jul 17, 2015 at 12:18 PM, Colin Guthrie <colin at mageia.org> wrote:
> sean wrote on 17/07/15 09:33:
>> On Fri, 2015-07-17 at 06:55 +0300, Andrei Borzenkov wrote:
>>> В Wed, 15 Jul 2015 23:03:02 +0800
>>> sean <xrfu at suse.com> пишет:
>>>
>>>> Hi All:
>>>>     I am trying to test the latest upstream kernel, But i encounter a strange issue about systemd.
>>>> When the "systemd" extracted from initrd image mounts the real root file system "hda.img" on "/sysroot" and changes root to the new directory,  it can not found "/sbin/init" and "/bin/sh".
>>>> In fact, These two files exist in the "hda.img".
>>>> How to debug this issue?
>>>> Why does not it enter emergency mode?
>>>> If enter emergency mode, maybe this issue become easy.
>>>>
>>>
>>> You can stop in dracut just before switch root step and examine
>>> environment. At this point root should already be mounted.
>> Thanks very much!
>> How to stop the booting process before switch root?
>
> See "man dracut" and the "Debugging dracut" section. Also see "man
> dracut.cmdline" and the "rd.break" bits.
>

Was it not man dracut.kernel?


More information about the systemd-devel mailing list