mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zipl: use the BLS "title" field as the IPL section name
Most bootloaders use the BootLoaderSpec "title" field to name the entries in their boot menu. The zipl bootloader used the "version" field instead, since it was wrongly assumed that the zipl boot menu didn't support names that contained spaces, which are usually present in a BLS "title" field. But this is not the case, names with space characters are supported by the IPL and is just a constraint of the section heading in the zipl.conf file. So to be consistent with all the other bootloaders, use the "title" field also on zipl when populating the boot menu entries from BLS files. Closes: https://github.com/ibm-s390-tools/s390-tools/pull/47 Signed-off-by: Javier Martinez Canillas <javierm@redhat.com> Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com> Reviewed-by: Stefan Haberland sth@linux.ibm.com Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
667516681e
commit
4951044213
@@ -150,6 +150,7 @@ while IFS='= ' read key val; do
|
||||
if [ -f "${OUTPUT}" ]; then
|
||||
print_error "BLS file ${OUTPUT} already exists"
|
||||
fi
|
||||
echo "title $section" >> ${OUTPUT}
|
||||
fi
|
||||
elif [[ $val ]]; then
|
||||
val="$(echo $val | sed -e 's/^[ \t"]*//;s/[ \t"]*$//')"
|
||||
|
||||
@@ -701,7 +701,7 @@ scan_bls_field(struct misc_file_buffer *file, struct scan_token* scan,
|
||||
file->buffer[key_end] = '\0';
|
||||
file->buffer[val_end] = '\0';
|
||||
|
||||
if (strncmp("version", &file->buffer[key_start], key_end - key_start) == 0) {
|
||||
if (strncmp("title", &file->buffer[key_start], key_end - key_start) == 0) {
|
||||
scan_append_section_heading(scan, index, &file->buffer[val_start]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user