<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Adding <b>systemd.show_status=0</b> to bootargs have fixed that problem. I guess<b> /dev/console</b> may not be set right, because
<b>status_vprintf </b>try to open<b> /dev/console. However still no login prompt show up.</b></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<b>
<pre style="color: rgb(32, 31, 30); font-size: 15px; font-weight: 400; background-color: white"><pre>Thank you for your support.
Best regards,
</pre><pre>shuyi cheng</pre></pre>
</b></div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>发件人:</b> Mantas Mikulėnas <grawity@gmail.com><br>
<b>发送时间:</b> 2019年6月7日 4:51<br>
<b>收件人:</b> 程 书意<br>
<b>抄送:</b> systemd-devel@lists.freedesktop.org<br>
<b>主题:</b> Re: [systemd-devel] Systemd spends much time about 30 seconds for every unit</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div dir="ltr"><br>
</div>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Fri, Jun 7, 2019 at 6:49 AM 程 书意 <<a href="mailto:c15271843451@outlook.com">c15271843451@outlook.com</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span></span></div>
<pre style="background-color:rgb(255,255,255)">Hi all,</pre>
<pre style="background-color:rgb(255,255,255)">I am working on virtualization on armv8 platform and encountered a complex problem. From the below boot log, we can find:</pre>
<pre style="background-color:rgb(255,255,255)"><ol><li>Every unit init need about 30 seconds.</li><li><b>status_printf </b>function doesn't work. [no <b>status_welcome </b>print and no <b>manager_status_printf </b>print]</li><li>I'm trying to use <b>systemd.log_level=debug systemd.log_target=console console=ttymxc0,115200 earlycon=ec_imx6q,0x30860000,115200 </b>to show more debug info<b>,</b> however the boot stoped at <b>systemd[1]: System time before build time, advancing clock.</b></li></ol></pre>
<pre style="background-color:rgb(255,255,255)"><pre>[ 2.478912] systemd[1]: System time before build time, advancing clock.
[ 2.499714] systemd[1]: systemd 237 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -ID)
[ 2.520807] systemd[1]: Detected architecture arm64.
[ 33.892575] systemd[1]: Set hostname to <imx8mqevk>.
[ 64.632124] systemd[1]: File /lib/systemd/system/systemd-journald.service:35 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
[ 64.648846] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
[ 64.771322] random: systemd: uninitialized urandom read (16 bytes read)
[ 64.777950] systemd[1]: Reached target Swap.
[ 95.329244] random: systemd: uninitialized urandom read (16 bytes read)
[ 95.337197] systemd[1]: Created slice User and Session Slice.
[ 126.049246] random: systemd: uninitialized urandom read (16 bytes read)
[ 126.055962] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ 156.769223] random: systemd: uninitialized urandom read (16 bytes read)
[ 156.776389] systemd[1]: Created slice System Slice.
[ 187.489398] random: systemd: uninitialized urandom read (16 bytes read)
[ 187.496097] systemd[1]: Listening on Journal Audit Socket.
[ 218.209185] random: systemd: uninitialized urandom read (16 bytes read)
[ 218.216387] systemd[1]: Created slice system-getty.slice.
[ 248.929177] random: systemd: uninitialized urandom read (16 bytes read)
[ 248.936006] systemd[1]: Listening on Journal Socket (/dev/log).
[ 279.649275] random: systemd: uninitialized urandom read (16 bytes read)
[ 279.655957] systemd[1]: Listening on Network Service Netlink Socket.
[ 310.369169] random: systemd: uninitialized urandom read (16 bytes read)
[ 310.375751] systemd[1]: Reached target Slices.
[ 341.089186] random: systemd: uninitialized urandom read (16 bytes read)
[ 341.095860] systemd[1]: Listening on udev Kernel Socket.</pre></pre>
</div>
</blockquote>
<div><br>
</div>
<div>I wonder if it is related to systemd trying to generate an "invocation ID" for every unit started. (I *thought* it had an internal PRNG for that, but I guess it might be calling getrandom() for every single unit?)</div>
</div>
<div><br>
</div>
-- <br>
<div dir="ltr" class="x_gmail_signature">
<div dir="ltr">Mantas Mikulėnas</div>
</div>
</div>
</div>
</body>
</html>