Run a script on first boot after install in 16.04

Tom H tomh0665 at gmail.com
Fri Jul 22 15:12:21 UTC 2016


On Fri, Jul 22, 2016 at 10:37 AM, Josef Wolf <jw at raven.inka.de> wrote:
> 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.

This variable controls what syslog message level is printed to a
console, which is controlled by the kernel.

On Ubuntu, it's "CONFIG_MESSAGE_LOGLEVEL_DEFAULT=4" in the kernel
config, which means that warnings are printed to the console.


>> 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.

Indeed. Liam's said that he's seen the eye on startup; that behavior
was unknown to me, hence my question.




More information about the ubuntu-users mailing list