diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2021-08-19 09:00:35 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2021-08-19 09:20:40 +0000 |
commit | 970d5a96dd903f63b7b7e243d94fe9da62b174f0 (patch) | |
tree | f685e484916740a6a93550a2543c9f5e99a49134 | |
parent | Avoid passing create command parameter to scripts in container create command. (diff) | |
download | compute-tools-970d5a96dd903f63b7b7e243d94fe9da62b174f0.tar.xz compute-tools-970d5a96dd903f63b7b7e243d94fe9da62b174f0.zip |
Adding cdebootstrap support.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
-rwxr-xr-x | share/create-scripts/debootstrap | 5 | ||||
-rw-r--r-- | share/man/container-build-bootstrap.1.rst (renamed from share/man/container-build-debootstrap.1.rst) | 21 |
2 files changed, 17 insertions, 9 deletions
diff --git a/share/create-scripts/debootstrap b/share/create-scripts/debootstrap index 01345f9..bef75b1 100755 --- a/share/create-scripts/debootstrap +++ b/share/create-scripts/debootstrap @@ -104,6 +104,11 @@ then fi case "${SCRIPT}" in + cdebootstrap) + BOOTSTRAP="/usr/bin/cdebootstrap" + BOOTSTRAP_OPTIONS="" + ;; + debootstrap) BOOTSTRAP="/usr/sbin/debootstrap" BOOTSTRAP_OPTIONS="" diff --git a/share/man/container-build-debootstrap.1.rst b/share/man/container-build-bootstrap.1.rst index 853b4dc..647f603 100644 --- a/share/man/container-build-debootstrap.1.rst +++ b/share/man/container-build-bootstrap.1.rst @@ -17,13 +17,13 @@ .. You should have received a copy of the GNU General Public License .. along with this program. If not, see <https://www.gnu.org/licenses/>. -=========================== -container-build-debootstrap -=========================== +========================= +container-build-bootstrap +========================= -------------------------------------------------------------------- -Build a basic Debian based container with debootstrap or mmdebstrap -------------------------------------------------------------------- +---------------------------------------------------------------------------------- +Build a basic Debian based container with debootstrap, cdebootstrap, or mmdebstrap +---------------------------------------------------------------------------------- :manual section: 1 :manual group: Open Infrastructure @@ -34,18 +34,21 @@ Synopsis | **container build -s debootstrap** ['OPTIONS'] | **cnt b -s debootstrap** ['OPTIONS'] +| **container build -s cdebstrap** ['OPTIONS'] +| **cnt b -s cdebstrap** ['OPTIONS'] + | **container build -s mmdebstrap** ['OPTIONS'] | **cnt b -s mmdebstrap** ['OPTIONS'] Description =========== -The debootstrap container build script uses debootstrap(8) or mmdebstrap(1) -to build a Debian based container. +The bootstrap container build script uses debootstrap(8), cdebootstrap(1), or +mmdebstrap(1) to build a Debian based container. This script builds a pure Debian system with three modificiations: - * apt cache of packages downloaded during debootstrap is cleaned + * apt cache of packages downloaded during bootstrap is cleaned * hostname is set (container name) in /etc/hostname * root password is set (user specified or 16 random characters) |