Run a script on first boot after install in 16.04

Josef Wolf jw at raven.inka.de
Fri Jul 22 14:37:59 UTC 2016


On Fri, Jul 22, 2016 at 09:23:27AM -0400, Tom H wrote:
> On Fri, Jul 22, 2016 at 3:59 AM, Josef Wolf <jw at raven.inka.de> wrote:
> >
> > Why won't this output stay on virtual console 1? How can I disable it?
> 
> Does this happen if you set kernel.printk to '3 4 1 3' from your
> script or from "/etc/sysctl.d/"?

This would affect the kernel, won't it?

I am not talking about kernel's output. I am talking about the output from
systemd, telling me that it waits for my script exits.

> IIRC, the red dot is called "Eye of Cylon" (see Battlestar Galactica)
> but I've only ever seen it at shutdown. Is your system shutting down
> at that point?

No. It's on the the way to achieve multi-user.target. This is because I told
that my script is a prerequisite for multi-user.target. So systemd is telling
me that it can't reach multi-user.target because it is waiting for my script
to exit.

It's totally OK that systemd is trying to tell me that. But ist should
restrict its output to some specific VT, instead of polluting every VT as soon
as this VT becomed active.

-- 
Josef Wolf
jw at raven.inka.de



More information about the ubuntu-users mailing list