Run a script on first boot after install in 16.04

Tom H tomh0665 at gmail.com
Fri Jul 22 13:23:27 UTC 2016


On Fri, Jul 22, 2016 at 3:59 AM, Josef Wolf <jw at raven.inka.de> wrote:
>
> My postinstall-script that is started on first bootup starts a screen session.
> This way, it can prompt me to query for additional information, and I am able
> to to start new shell sessions for investigating any problems that can come
> up.
>
> unfortunatley, while waiting for my script to finish (that can last some
> hours!), systemd outputs a message telling me that it is waiting for it to
> finish. It repeats this message multiple times per second to show a red dot
> moving from left to right and back again. This output destroys all the output
> in my screen session and I can't seen any prompt (it is immedeately
> overwritten). I can't even see what I am typing when I start a new shell in
> screen by CTRL-A CTRL-C!
>
> This output is thrown at whatever termial I switch, so switching terminals
> won't help.
>
> 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/"?

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?




More information about the ubuntu-users mailing list