-
Notifications
You must be signed in to change notification settings - Fork 73
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
BootimgPcbiosIsarPlugin
wic plugin files fails for lack of syslinux
#69
Comments
BootimgPcbiosIsarPlugin
wic plugin files fails for lack of syslinux
I've tried |
This is in a Debian10 VM, the following steps reproduce the error:
|
|
Thanks Henning, worked for me. |
I confirm, adding this to eg. |
Well it can be kind of found in the examples. Not sure how really to automate the choice. In fact we could always add "syslinux" and "grub" as potentially needed runtime deps of i.e. "syslinux" is amd64/i386-only while "grub" gets called many names meta/conf/distro/debian-common.conf
My guess is that the hint i gave is enough to close this issue. Anyways you should not be using pcbios unless you really really have to deal with such legacy. |
@ydirson your |
And note that i only found this issue because of a cross-post to the Isar mailing-list. Issues on github or not the best channel to get in touch, mailing-list posts would be better because they have a wider reach into the "small" community. |
Note(s) taken, thanks! |
@ydirson, if this worked for you, can we close this issue? |
@ismagulb what works better is is not too rude is to close saying "please re-open if issue persists" |
I understand the difficulty of making this transparent to the user, and since the user will have to take care of this, wouldn't it be better to make this more visible in the doc ? |
Good point, let me check what we can do. If you have a specific idea, a patch would be great. |
Concluding that this issue is solved, like already confirmed in #69 (comment) Possibly needed doc improvements might deserve a new issue. |
Include into user_manual.md explanation of imager dependencies should be added if using wic image type with bootloader-related plugins. Inspired by issue #69 Signed-off-by: Anton Mikanovich <[email protected]>
Thinking twice about that, we can expand variables inside .wks files. If we use this to specify plugins from a bitbake variable, we could probably use the same variable to trigger the addition of the proper dependencies to |
Simplifications are always welcome, but I cannot follow yours yet. Can you make a concrete example? |
Here is a PoC for just directdisk-isar, with only definitions for the pcbios case. Major problem would probably be that all users would have to change Maybe
|
And you would Yeah, this would be the approach from a technical perspective. From a user perspective, selecting |
I'm not sure it is more "right" to select a particular plugin in the .wks, than to specifiy the intent at a higher level, especially as it would also open the possibility to have a single .wks for both efi and pcbios boot (lifting
Yes, and it could also maybe be better named like Note: it looks like the renaming to .wks.in may not be needed in the end. |
In the ideal world, the wks file is supposed to describe the partitioning and its parameters, not a higher level. |
Not necessarily all of them (especially when other parts of the system depend on the same high-level requirement), and it's probably a good part of why there is variable substitution in there. And I still feel that selecting the target bootchain is more high-level than the specific wic plugin implementing it. See eg. in meta-rockchip:
|
I agree for the given type of example. But I disagree about the boot method. You may only see bootimg-* right now, but the boot loader selection is broader and generally influences what needs to be IMAGER_INSTALL (u-boot, efibootguard, etc.). |
Maybe then more information could be added together with #69 (reference) ? |
In fact it remains a hack that we install the bootloader in the buildchroot and not in the target rootfs. A hack that applies to While that keeps the rootfs small it also has issues. i.e. we see problems when doing kernel updates with apt, because we lack My personal long term plan would be to install the bootloader inside the rootfs, no matter which bootloader that may be. We have several problems on that front, and the more we discuss it here the more we leave out the mailinglist while discovering more issues/solutions. So again, please close and move to where isar discussions are supposed to happen! |
Include explanation of imager dependencies into user_manual.md. Also mention deps should be added if using wic image type with bootloader-related plugins. Inspired by issue #69. Signed-off-by: Anton Mikanovich <[email protected]>
I can generate an UEFI image with the following settings:
To get a legacy/pcbios image, I try
WKS_FILE = "directdisk-isar.wks"
ordirectdisk-gpt.wks
... which fail looking for syslinux, which is apparently not pulled. Some missing dependency ?Diggig a bit I see that
BootimgPcbiosIsarPlugin
is heavily depending insyslinux
. However, it does not look like there is any recipe to get the latter intoSTAGING_DATADIR
.The text was updated successfully, but these errors were encountered: