Execute some of the first boot scripts as part of the build process
|Reported by:||bonefish||Owned by:||bonefish|
Particularly for releases it would be nice to allow running some of the first boot (
post_install) scripts as part of the build process. I'm especially thinking of
mime_update.sh which can take quite a while.
This could work as follows:
configurescript option or environmental/build system variable would trigger the feature.
- The built image would contain a special
Bootscriptthat executes the scripts in question, replaces itself by the real
Bootscript, and shuts down the system.
- The build system -- or rather B-O-M -- would simply boot such an image via qemu to finalize it.
Obviously this works only for writable images, i.e. raw, VMware, and anyboot. For the ISO CDs we'd have to continue to use the current method; though I'm in favor of phasing those out anyway.