aboutsummaryrefslogtreecommitdiff
path: root/arch-base/bootstrap_base.sh
diff options
context:
space:
mode:
authorMhd Sulhan <ms@kilabit.info>2015-11-20 01:20:08 +0700
committerMhd Sulhan <ms@kilabit.info>2015-11-20 01:20:08 +0700
commitfa259627bf7c99a79cb48f27d57203fdc9e3df11 (patch)
tree6e89b60e750ca61b42bebbef65ae8c2cc7bbfb9c /arch-base/bootstrap_base.sh
parentbba5a1c7f072f24c9e3a1c4e8db885ae0fdf065c (diff)
downloadarch-docker-fa259627bf7c99a79cb48f27d57203fdc9e3df11.tar.xz
Modularize build script.
All process to create rootfs and bootstrap are grouped into several functions. * scripts/rootfs.sh is for creating rootfs and installing packages. * scripts/bootstrap.sh is for bootstraping rootfs and cleaning.
Diffstat (limited to 'arch-base/bootstrap_base.sh')
-rwxr-xr-xarch-base/bootstrap_base.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch-base/bootstrap_base.sh b/arch-base/bootstrap_base.sh
new file mode 100755
index 0000000..fa82e4a
--- /dev/null
+++ b/arch-base/bootstrap_base.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+echo "==> bootstraping base ..."
+
+. /bootstrap.sh
+
+bootstrap_hostname
+
+bootstrap_timezone
+
+bootstrap_locales
+
+bootstrap_remove_packages
+
+bootstrap_clean_common
+
+bootstrap_clean_base