Project

General

Profile

Actions

Feature #157

closed

Disable network connection during firstboot

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
04 - Root File System
Target version:
Start date:
10 Feb 2013
Due date:
% Done:

100%

Estimated time:
Severity:
03 - Medium

Description

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

Actions #1

Updated by Hammel almost 12 years ago

  • Severity changed from Medium to 03 - Medium
Actions #2

Updated by Hammel almost 12 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.

Actions #3

Updated by Hammel almost 12 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.

Actions #4

Updated by Hammel almost 12 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.

Actions

Also available in: Atom PDF