diff options
Diffstat (limited to 'builder')
| -rwxr-xr-x | builder/dnbd3-rootfs/hooks/prepare-kernel-command-line-parameter.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/builder/dnbd3-rootfs/hooks/prepare-kernel-command-line-parameter.sh b/builder/dnbd3-rootfs/hooks/prepare-kernel-command-line-parameter.sh index e17d631c..a665023b 100755 --- a/builder/dnbd3-rootfs/hooks/prepare-kernel-command-line-parameter.sh +++ b/builder/dnbd3-rootfs/hooks/prepare-kernel-command-line-parameter.sh @@ -64,11 +64,11 @@ if [ -z "$dracut_interface_name" ]; then fi mount --options bind "${writeable_proc_cmdline_path}cmdline" /proc/cmdline -if [ -z $(getargs slxsrv=) ]; then +if [ -z "$(getargs slxsrv=)" ]; then logging.warn 'No "slxsrv" parameter found in the kernel command line.' exit 1 fi -if [ -z $(getargs slxbase=) ]; then +if [ -z "$(getargs slxbase=)" ]; then logging.warn 'No "slxbase" parameter found in the kernel command line.' exit 1 fi @@ -76,6 +76,7 @@ fi logging.debug '-----------------------Dracut-Kernel-Command-Line:----------------------' logging.debug "$(logging.cat /proc/cmdline)" logging.debug '------------------------------------------------------------------------' +} exceptions.catch { emergency_shell "error in ${BASH_SOURCE[0]}" |
