Skip to content
/ rr-dbs Public

run debootstrap and create a root-fs tarball

Notifications You must be signed in to change notification settings

rrconf/rr-dbs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

run debootstrap and create a root-fs tarball

Topics

Resources

Stars

Watchers

Forks

Languages