fosslinux / live-bootstrap

Use of a Linux initramfs to fully automate the bootstrapping process
291 stars 26 forks source link

Fix the default build script used by "build <package name>" #417

Closed Googulator closed 6 months ago

Googulator commented 6 months ago

Before the simplify refactor, the convention was to name the first or default build script ".sh". The refactor changed this default to "pass1.sh", with "pass2.sh" and so on used for subsequent passes. This wasn't an issue when building usig scripts generated by script-generator (which explicitly declares the build script to use), but broke running "build " without an explicit script name from the post-bootstrap bash prompt.

By deriving the script name from the current revision/pass number, this commit restores that functionality.

An unfortunate blemish is that we number build scripts from 1, but repo tarballs from 0 - it would be nice to standardize on a single indexing convention.