Feature #157

Disable network connection during firstboot

Added by Hammel almost 8 years ago. Updated almost 8 years ago.

Status:ClosedStart date:10 Feb 2013
Priority:NormalDue date:
Assignee:Hammel% Done:

100%

Category:04 - Root File System
Target version:0.5.0 - Beta 1
Severity:03 - Medium

Description

Firstboot does initial setup that doesn't need network connectivity. Trying to connect to the network just slows firstboot.

History

#1 Updated by Hammel almost 8 years ago

  • Severity changed from Medium to 03 - Medium

#2 Updated by Hammel almost 8 years ago

  • % Done changed from 0 to 30

The way to handle this is thus:

  1. Have S11firstboot check for existance of /etc/firstboot.complete. If not found, run firstboot
  2. Have all init scripts after S11firstboot check for existance of /etc/firstboot. If found, do nothing.
  3. Add S99firstbootcomplete to check for existance of /etc/firstboot. If found, remove it, then create /etc/firstboot.complete.

Intermediate init scripts between S11 and S99 can do special things on firstboot if necessary.

This code is implemented in my sandbox but requires me to be at the console to test them, which I'm not at the moment.

#3 Updated by Hammel almost 8 years ago

These didn't quite work, plus there are a bunch of init scripts from Buildroot/busybox that need to include the firstboot test too. So I've created a pibox.functions to do the test and all the scripts will need to be copied into the skeleton tree and reference the functions, run the test and return if it passes.

#4 Updated by Hammel almost 8 years ago

  • Status changed from New to Closed
  • % Done changed from 30 to 100

Added support for not running init scripts during firstboot to speed boot process.

Also available in: Atom PDF