ibm-s390-linux / s390-tools

Tools for use with the s390 Linux kernel and device drivers
MIT License
63 stars 59 forks source link

zipl: add value of target= as search path for BLS case #74

Closed tuan-hoang1 closed 4 years ago

tuan-hoang1 commented 4 years ago

In the BLS files, the 'linux' and 'initrd' fields are relative to the $BOOT directory. If $BOOT is a mount point of boot partition, 'linux' and 'initrd' fields are relative to boot partition. If not, the paths are relative to $BOOT directory of root partition.

zipl always starts searching at / regardless of partitions and mount points.

This commit extends the semantics of target= field in zipl.conf to make it as a second search path, besides /, for those 2 BLS fields.

See issues #69 for more details.

Fixes: #69

Signed-off-by: Tuan Hoang tmhoang@linux.ibm.com

tuan-hoang1 commented 4 years ago

Force pushes are to fix commit message, no functional change.

stefan-haberland commented 4 years ago

Hi,

thanks a lot for the contribution. From reading the Code it looks good to me. I will give it a test and include it if there is no additional finding.

Regards, Stefan