Feature #157
closed
Disable network connection during firstboot
Added by Hammel almost 12 years ago.
Updated almost 12 years ago.
Category:
04 - Root File System
Description
Firstboot does initial setup that doesn't need network connectivity. Trying to connect to the network just slows firstboot.
- Severity changed from Medium to 03 - Medium
- % Done changed from 0 to 30
The way to handle this is thus:
- Have S11firstboot check for existance of /etc/firstboot.complete. If not found, run firstboot
- Have all init scripts after S11firstboot check for existance of /etc/firstboot. If found, do nothing.
- 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.
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.
- 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