28 lines
1.0 KiB
Markdown
28 lines
1.0 KiB
Markdown
|
|
# Build Scripts
|
||
|
|
|
||
|
|
## build.sh
|
||
|
|
|
||
|
|
```
|
||
|
|
This script builds a bootable ubuntu ISO image
|
||
|
|
|
||
|
|
Supported commands : setup_host debootstrap run_chroot build_iso
|
||
|
|
|
||
|
|
Syntax: ./build.sh [start_cmd] [-] [end_cmd]
|
||
|
|
run from start_cmd to end_end
|
||
|
|
if start_cmd is omitted, start from first command
|
||
|
|
if end_cmd is omitted, end with last command
|
||
|
|
enter single cmd to run the specific command
|
||
|
|
enter '-' as only argument to run all commands
|
||
|
|
```
|
||
|
|
|
||
|
|
## How to Customize
|
||
|
|
|
||
|
|
1. Copy the `default_config.sh` file to `config.sh` in the scripts directory.
|
||
|
|
2. Make any necessary edits there, the script will pick up `config.sh` over `default_config.sh`.
|
||
|
|
|
||
|
|
## How to Update
|
||
|
|
|
||
|
|
The configuration script is versioned with the variable CONFIG_FILE_VERSION. Any time that the configuration
|
||
|
|
format is changed in `default_config.sh`, this value is bumped. Once this happens `config.sh` must be updated manually
|
||
|
|
from the default file to ensure the new/changed variables are as desired. Once the merge is complete the `config.sh` file's
|
||
|
|
CONFIG_FILE_VERSION should match the default and the build will run.
|