Generate zipped root-fs image using debootstrap variant minbase
.
export DBS_IMAGE=/full/path/name.tgz
require dbs
Generates zipped root-fs, log and manifest file. Resulting root-fs can be optionaly customized using environment variables:
export DBS_ARCH=$(dpkg --print-architecture)
export DBS_CODENAME=bookworm
export DBS_BUILD_DIR=$HOME
export DBS_INCLUDE=/full/path/name-to-package-list-file
export DBS_EXCLUDE=/full/path/name-to-package-list-file
Default files for packages to include and exclude are included in module. They have to contain list of package names, one per line.
export DBS_INIT=/full/path/name/hook-init.sh
export DBS_EXIT=/full/path/name/hook-exit.sh
Both hook scripts must be executable despite .sh
extension above. Default init hook is no-op, the exit hook is used to set up root
password, locales, etc.
Debootstrap needs to run as root. The hook scripts are also run as root. Default password for user root
is root
.