Skip to content

Latest commit

 

History

History
36 lines (20 loc) · 1.09 KB

README.md

File metadata and controls

36 lines (20 loc) · 1.09 KB

dbs

Generate zipped root-fs image using debootstrap variant minbase.

synopsis

export DBS_IMAGE=/full/path/name.tgz
require dbs

description

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.

security

Debootstrap needs to run as root. The hook scripts are also run as root. Default password for user root is root.