diff options
author | torben | 2015-11-05 15:32:34 +0100 |
---|---|---|
committer | torben | 2015-11-05 15:32:34 +0100 |
commit | d93a1fd23ce8f0a157d251aa74a6e76b9ac1c046 (patch) | |
tree | fad8f39c0ac491d73739c3710d8082ffd9dbec8c | |
parent | Remove deprecated files. (diff) | |
download | systemd-init-d93a1fd23ce8f0a157d251aa74a6e76b9ac1c046.tar.gz systemd-init-d93a1fd23ce8f0a157d251aa74a6e76b9ac1c046.tar.xz systemd-init-d93a1fd23ce8f0a157d251aa74a6e76b9ac1c046.zip |
Refactoring.
-rwxr-xr-x | build-initramfs.sh (renamed from build_initramfs.sh) | 49 | ||||
-rw-r--r-- | dev-tools/snippets.sh (renamed from dev_tools/snippets.sh) | 0 | ||||
-rwxr-xr-x | dev-tools/startup.nsh (renamed from dev_tools/startup.nsh) | 0 |
3 files changed, 0 insertions, 49 deletions
diff --git a/build_initramfs.sh b/build-initramfs.sh index 968777b1..ae71bada 100755 --- a/build_initramfs.sh +++ b/build-initramfs.sh @@ -52,13 +52,6 @@ # as file name) for lines containing a match to the given # PATTERN. By default, grep prints the matching lines. -# Optional dependencies -# --------------------- - -# TODO - -# TODO - __NAME__='build_initramfs' # endregion @@ -270,44 +263,6 @@ EOF popd 1>"$_STANDARD_OUTPUT" 2>"$_ERROR_OUTPUT" return $? } - function build_initramfs_compile_nbd() { - # Downloads and compiles nbd. - # - # Examples: - # - # >>> build_initramfs_compile_nbd - # ... - # Provides the following file: - # ${_KERNEL_MODULE_DIRECTORY}/nbd/nbd.ko - pushd "${_KERNEL_MODULE_DIRECTORY}/nbd" \ - 1>"$_STANDARD_OUTPUT" 2>"$_ERROR_OUTPUT" && \ - build_initramfs_log 'Compile the nbd kernel module.' && \ - make 1>"$_STANDARD_OUTPUT" 2>"$_ERROR_OUTPUT" && \ - popd 1>"$_STANDARD_OUTPUT" 2>"$_ERROR_OUTPUT" - return $? - # TODO make clean - } - function build_initramfs_compile_dnbd3() { - # Downloads and compiles dnbd3. - # - # Examples: - # - # >>> build_initramfs_compile_dnbd3 - # ... - # Provides the following file: - # ${_KERNEL_MODULE_DIRECTORY}/dnbd3/build/dnbd3.ko - rm --recursive --force ${_KERNEL_MODULE_DIRECTORY}/dnbd3 \ - 1>"$_STANDARD_OUTPUT" 2>"$_ERROR_OUTPUT" && \ - pushd $_KERNEL_MODULE_DIRECTORY \ - 1>"$_STANDARD_OUTPUT" 2>"$_ERROR_OUTPUT" && \ - git clone git://git.openslx.org/dnbd3.git \ - 1>"$_STANDARD_OUTPUT" 2>"$_ERROR_OUTPUT" && \ - cd dnbd3 1>"$_STANDARD_OUTPUT" 2>"$_ERROR_OUTPUT" && \ - ./build.sh 1>"$_STANDARD_OUTPUT" 2>"$_ERROR_OUTPUT" && \ - popd 1>"$_STANDARD_OUTPUT" 2>"$_ERROR_OUTPUT" - return $? - # TODO rm -rf build - } function build_initramfs_create_qcow2_system() { # TODO qemu-img create -f qcow2 "${CONTAINER_PATH}" "${QCOW_SIZE}" @@ -328,10 +283,6 @@ EOF build_initramfs_log "Dracut isn't available yet loading it." && \ build_initramfs_initialize_dracut fi - # TODO Provide note if compilation doesn't work that we need - # "linux-headers". - build_initramfs_compile_nbd && \ - build_initramfs_compile_dnbd3 && \ build_initramfs_log 'Build initramfs.' && \ build_initramfs_log \ 'Copy dnbd3 qcow2 plugin into dracut modules folder.' && \ diff --git a/dev_tools/snippets.sh b/dev-tools/snippets.sh index 6f4f21cc..6f4f21cc 100644 --- a/dev_tools/snippets.sh +++ b/dev-tools/snippets.sh diff --git a/dev_tools/startup.nsh b/dev-tools/startup.nsh index 197beb46..197beb46 100755 --- a/dev_tools/startup.nsh +++ b/dev-tools/startup.nsh |