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

Colin Guthrie colin at mageia.org
Fri Jul 17 02:18:50 PDT 2015


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.

HTHs

Col


-- 

Colin Guthrie
colin(at)mageia.org
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited http://www.tribalogic.net/
Open Source:
  Mageia Contributor http://www.mageia.org/
  PulseAudio Hacker http://www.pulseaudio.org/
  Trac Hacker http://trac.edgewall.org/


More information about the systemd-devel mailing list