mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
pvics: Fail on non-existend BLE
Issue an error if the specified boot loader entry cannot be found. Reviewed-by: Holger Dengler <dengler@linux.ibm.com> Signed-off-by: Finn Callies <fcallies@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
a879036e3f
commit
cf45a6e108
@@ -1051,6 +1051,7 @@ convert() {
|
||||
local pvimg_cmd pv_cmd ble_array b
|
||||
|
||||
# initialize
|
||||
kernel_parameter=""
|
||||
image=${IMAGE}
|
||||
ble=${C_BOOT_LOADER_ENTRY}
|
||||
kernel_parameter_file="${TEMP_DIR}/kernel_parameter"
|
||||
@@ -1097,6 +1098,9 @@ convert() {
|
||||
kernel_parameter+="$(grep -E "^options" "${f}" | cut -d ' ' -f 2-) ${sel_kernel_parameter}"
|
||||
break
|
||||
done
|
||||
if [[ -z "${kernel_parameter}" ]]; then
|
||||
log_error "No boot loader entry with title \"${ble}\" found"
|
||||
fi
|
||||
if [[ "${NO_EBC}" != "true" ]]; then
|
||||
if [[ $(echo "${kernel_parameter}" | grep "root=LABEL=root") == "" \
|
||||
&& $? == "1" \
|
||||
|
||||
Reference in New Issue
Block a user