Enhancement #2952

First-boot: execute system-init event before tty

Added by Giacomo Sanchietti over 6 years ago. Updated over 6 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-base
Target version:v6.5
Resolution: NEEDINFO:No

Description

After first installation, the event system-init is fired to execute all initialization tasks, like expanding templates and configuring the network.
Actual implementation locks tty1 terminal until the process is done, but the initialization is not visible inside any other console or even serial console.

Move system-init execution before all tty are started to avoid user login during the initialization process.

Associated revisions

Revision 28bc151c
Added by Giacomo Sanchietti over 6 years ago

Merge branch 'filippocarletti-b2952'. Refs #2952

Revision d5a8db91
Added by Giacomo Sanchietti over 6 years ago

first-boot: do not catch signals. Refs #2952

Revision 6085a9d2
Added by Giacomo Sanchietti over 6 years ago

first-boot: do not catch signals. Refs #2952

History

#1 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from NEW to TRIAGED
  • Target version set to v6.5
  • % Done changed from 0 to 20

#2 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Filippo Carletti
  • % Done changed from 20 to 30

Implementation is now on Github, merge is needed.

#3 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from ON_DEV to MODIFIED
  • Assignee deleted (Filippo Carletti)
  • % Done changed from 30 to 60

#4 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70
Package in nethserver-testing:
  • /nethserver-base-2.5.2-4.0git28bc151c.ns6.noarch.rpm
Test case
  • Force system initialization:
    touch /var/spool/first-boot
    
  • Restart the system
  • Check system-init event is fired before any login appears

#5 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from ON_QA to TRIAGED
  • % Done changed from 70 to 20

The script can't print output to the console, so the system seems blocked.

#6 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Giacomo Sanchietti
  • % Done changed from 20 to 30

Actually the output is printed inside the /dev/console device which can be changed by the console option from kernel command line.

#7 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from ON_DEV to MODIFIED
  • % Done changed from 30 to 60

#8 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from MODIFIED to ON_QA
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 60 to 70
Package in nethserver-testing:
  • nethserver-base-2.5.2-5.0gitd5a8db91.ns6.noarch.rpm

#9 Updated by Giacomo Sanchietti over 6 years ago

  • Subject changed from Execute system-init event before tty to First-boot: execute system-init event before tty

#10 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from ON_QA to TRIAGED
  • % Done changed from 70 to 20

Current implementation doesn't work on serial console.

#11 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from TRIAGED to MODIFIED
  • % Done changed from 20 to 60

Serial console is a limit case, we can leave it without a solution.
Still a new documentation page should be added to the administrator manual.

#12 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70
Package in nethserver-testing:
  • nethserver-base-2.5.2-5.0gitd5a8db91.ns6.noarch.rpm

#13 Updated by Davide Principi over 6 years ago

  • Assignee set to Davide Principi

#14 Updated by Davide Principi over 6 years ago

  • Status changed from ON_QA to VERIFIED
  • Assignee deleted (Davide Principi)
  • % Done changed from 70 to 90

VERIFIED

#15 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100
Released in nethserver-updates:
  • nethserver-base-2.5.3-1.ns6.noarch.rpm

Also available in: Atom PDF