diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-03 14:01:35 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-03 14:01:35 +0000 |
commit | e6f2eaf47a177a8eca054d1d70a1b6287e8c3521 (patch) | |
tree | c5719e819a9e37df4b54affd61438f382ec38a8f /dracut-init.sh | |
parent | Adding upstream version 060+5. (diff) | |
download | dracut-e6f2eaf47a177a8eca054d1d70a1b6287e8c3521.tar.xz dracut-e6f2eaf47a177a8eca054d1d70a1b6287e8c3521.zip |
Adding upstream version 102.upstream/102
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dracut-init.sh')
-rwxr-xr-x | dracut-init.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/dracut-init.sh b/dracut-init.sh index 6b81833..863df0c 100755 --- a/dracut-init.sh +++ b/dracut-init.sh @@ -115,7 +115,7 @@ require_binaries() { for cmd in "$@"; do if ! find_binary "$cmd" &> /dev/null; then - dinfo "Module '${_module_name#[0-9][0-9]}' will not be installed, because command '$cmd' could not be found!" + ddebug "Module '${_module_name#[0-9][0-9]}' will not be installed, because command '$cmd' could not be found!" ((_ret++)) fi done @@ -313,7 +313,10 @@ dracut_instmods() { local i [[ $no_kernel == yes ]] && return for i in "$@"; do - [[ $i == "--silent" ]] && _silent=1 + if [[ $i == "--silent" ]]; then + _silent=1 + break + fi done if $DRACUT_INSTALL \ @@ -630,7 +633,7 @@ inst_hook() { dfatal "No such hook type $1. Aborting initrd creation." exit 1 fi - hook="/lib/dracut/hooks/${1}/${2}-${3##*/}" + hook="/var/lib/dracut/hooks/${1}/${2}-${3##*/}" inst_simple "$3" "$hook" chmod u+x "$initdir/$hook" } @@ -730,7 +733,7 @@ inst_decompress() { inst_simple "${_src}" # Decompress with chosen tool. We assume that tool changes name e.g. # from 'name.gz' to 'name'. - ${_cmd} "${initdir}${_src}" + ${_cmd} "${initdir}${_src#"$dracutsysrootdir"}" done } |