summaryrefslogtreecommitdiffstats
path: root/builder/modules.d/dnbd3-rootfs/module-setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'builder/modules.d/dnbd3-rootfs/module-setup.sh')
-rwxr-xr-xbuilder/modules.d/dnbd3-rootfs/module-setup.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/builder/modules.d/dnbd3-rootfs/module-setup.sh b/builder/modules.d/dnbd3-rootfs/module-setup.sh
index 9f99f0d0..77543a54 100755
--- a/builder/modules.d/dnbd3-rootfs/module-setup.sh
+++ b/builder/modules.d/dnbd3-rootfs/module-setup.sh
@@ -1,8 +1,6 @@
#!/usr/bin/env bash
# -*- coding: utf-8 -*-
-# Sourcing some helper functions
-. "$(dirname "${BASH_SOURCE[0]}")/helper/build.inc"
_parse_dracut_args() {
local __doc__='
@@ -67,10 +65,14 @@ _parse_dracut_args ${dracut_args[*]} || _debug=$?
# endregion
clean() {
+# Sourcing some helper functions
+ . "$(dirname "${BASH_SOURCE[0]}")/helper/build.inc"
clean_components
}
# region dracut plugin api
check() {
+# Sourcing some helper functions
+ . "$(dirname "${BASH_SOURCE[0]}")/helper/build.inc"
if ! build_initialize_components; then
echo "Failed to initialize components."
return 1