summaryrefslogtreecommitdiffstats
path: root/builder/build-initramfs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'builder/build-initramfs.sh')
-rwxr-xr-xbuilder/build-initramfs.sh9
1 files changed, 4 insertions, 5 deletions
diff --git a/builder/build-initramfs.sh b/builder/build-initramfs.sh
index 8e5df3fd..51ae5ddf 100755
--- a/builder/build-initramfs.sh
+++ b/builder/build-initramfs.sh
@@ -547,6 +547,7 @@ main() {
fi
logging.info " * kernel headers: $kernel_headers"
[ -n "$qcow_handler" ] && logging.info " * qcow2 handler: $qcow_handler"
+ export _QCOW_HANDLER="$qcow_handler"
# endregion
# region dependency checks and command line parsing
result=0
@@ -693,12 +694,10 @@ main() {
elif [[ "$cleanup" == 'yes' ]]; then
logging.info 'Removing distribution specific files.'
cleanup
- else
+ elif [[ "$initialize" == 'yes' ]]; then
. "${_root_dir}/modules.d/dnbd3-rootfs/helper/build.inc"
- initialize_components "$qcow_handler"
- if [[ "$initialize" == 'yes' ]]; then
- exit 0
- fi
+ build_initialize_components
+ else
logging.info 'Build initramfs.'
# NOTE: We deactivate our exception handle since dracut returns "1" if
# it is launched with help parameter ("-h" or "--help").