-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zipl: relative path for BLS values #69
Comments
Of course we can fix this in downstream Fedora/RHEL CoreOS, it would be nice if upstream allows this behavior wrt the spec. |
@tuan-hoang1 I don't think the In the case of But if
In the case of
All this is to say that I think that zipl shouldn't make assumptions about the path of the images. It's up to the tool generating the BLS snippets to determine the correct path (the kernel may not even be in /boot, it could be in any other directory as long as it's in the same device than where the bootmap is). Something that may be done is to fallback to look using the But I'm not that familiar with that part of |
Hi @tuan-hoang1 Tuan, I have to agree with Javier. Hardcoding /boot/ does not look like a good idea. Regards, |
On x86 FCOS,
And I see that linux+initrd entries also start with
This is the key point, thanks !
I just happened to read zipl(5) more thoroughly, and figure that I agree with you, was not really paying attention to the 'bootmap' file before. |
The On a legacy BIOS install, both the On a EFI install, the So the path for the And this partition could be the same than Now going back to I'm also OK to extend the semantics of |
Okay now it seems much clearer to me.
I think zipl is aligned with
So, So, if we decide to extend the semantics of
|
Okay for this I think I/we can come up with a patch soonish for this. I just figured that even if we got this one and the issue#70 fix in s390x-tools upstream, it gotta be pretty hard to get into RHCOS in time. So, those 2 are pretty much serving FCOS in the mean time, for which I would like postpone a little bit. We will have to work around these 2 issues in downstream FCOS/RHCOS then, I believe. Please take this into account @martinezjavier and back me up in the downstream discussions :) |
Sure, I'm not familiar with the RHCOS schedule but happy to chime in for any downstream discussion. |
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 ibm-s390-linux#69 for more details. Fixes: ibm-s390-linux#69 Signed-off-by: Tuan Hoang <[email protected]>
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 ibm-s390-linux#69 for more details. Fixes: ibm-s390-linux#69 Signed-off-by: Tuan Hoang <[email protected]>
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 ibm-s390-linux#69 for more details. Fixes: ibm-s390-linux#69 Signed-off-by: Tuan Hoang <[email protected]>
Hi Javier @martinezjavier and Stefan @stefan-haberland,
Currently, zipl assumes the kernel and ramdisk paths to be absolute, both in zipl.conf and BLS conf files, or else it will print out file not found error to user.
In Fedora/RHEL CoreOS, a BLS file might look like:
which conforms with the BLS spec, as it says the
linux
andinitrd
fieldsshall be a path relative to the $BOOT directory
.I suggest we support this case, by also checking the paths of the images with a prefix of
/boot
, and only error out when both cases (with and without/boot
path prefix) cannot find the files. Below is a patch I would like propose: (https://tpaste.us/yPMy)The text was updated successfully, but these errors were encountered: