Disable network connection during firstboot
|Status:||Closed||Start date:||10 Feb 2013|
|Category:||04 - Root File System|
|Target version:||0.5.0 - Beta 1|
|Severity:||03 - Medium|
Firstboot does initial setup that doesn't need network connectivity. Trying to connect to the network just slows firstboot.
#2 Updated by Hammel almost 8 years ago
- % 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.
#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.