diff options
| author | jandob | 2015-11-20 14:22:48 +0100 |
|---|---|---|
| committer | jandob | 2015-11-20 14:22:48 +0100 |
| commit | 0d7fcc5bcbf0802924de895dfe7c65b5a8f98674 (patch) | |
| tree | d33dc90aeb73b7915f47ea9822affeca155d1a23 /builder | |
| parent | rebash update (diff) | |
| parent | Fix log level in verbose mode. (diff) | |
| download | systemd-init-0d7fcc5bcbf0802924de895dfe7c65b5a8f98674.tar.gz systemd-init-0d7fcc5bcbf0802924de895dfe7c65b5a8f98674.tar.xz systemd-init-0d7fcc5bcbf0802924de895dfe7c65b5a8f98674.zip | |
Merge branch 'master' of git.openslx.org:openslx-ng/systemd-init
Diffstat (limited to 'builder')
| -rwxr-xr-x | builder/build-initramfs.sh | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/builder/build-initramfs.sh b/builder/build-initramfs.sh index 4e973ee5..5e5195fe 100755 --- a/builder/build-initramfs.sh +++ b/builder/build-initramfs.sh @@ -93,7 +93,7 @@ function build-initramfs() { function build_initramfs_print_usage_message() { # Prints a description about how to use this program. - cat << EOF + logging.cat << EOF $__NAME__ provides a generic way to install systemd based remote linux initramfs. EOF @@ -101,14 +101,14 @@ EOF function build_initramfs_print_usage_examples() { # Prints a description about how to use this program by providing # examples. - cat << EOF + logging.cat << EOF # Start install progress: # >>> ./build_initramfs.sh EOF } function build_initramfs_print_command_line_option_description() { # Prints descriptions about each available command line option. - cat << EOF + logging.cat << EOF -h --help Shows this help message. -v --verbose Tells you what is going on (default: "$_VERBOSE"). @@ -125,13 +125,13 @@ EOF } function build_initramfs_print_help_message() { # Provides a help message for this module. - echo -e "\nUsage: $0 [options]\n" + logging.plain "\nUsage: $0 [options]\n" build_initramfs_print_usage_message "$@" - echo -e '\nExamples:\n' + logging.plain '\nExamples:\n' build_initramfs_print_usage_examples "$@" - echo -e '\nOption descriptions:\n' + logging.plain -e '\nOption descriptions:\n' build_initramfs_print_command_line_option_description "$@" - echo + logging.plain } function build_initramfs_command_line_interface() { # Provides the command line interface and interactive questions. @@ -144,7 +144,7 @@ EOF ;; -v|--verbose) shift - logging.set_commands_log_level info + logging.set_commands_log_level debug logging.set_log_level info ;; -d|--debug) @@ -258,7 +258,6 @@ EOF loglevel="$loglevel --stdlog 4" modules="$modules i18n" fi - echo "$logging.level" dracut/dracut.sh --local $loglevel --force --modules "$modules" \ --no-hostonly /boot/initramfs-test.img logging.info 'All done!' |
