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
systemd:u-boot: /var/lock and /run/lock usage #3658
Comments
This issue has been automatically marked as stale because no activity has occurred in the last 6 months. It will be closed if no activity occurs in the next 30 days. If this issue should not be closed please add a comment. Thank you for your understanding and contributions. |
This issue has been closed because no activity has occurred in the last 7 months. Please reopen if this issue should not have been closed. Thank you for your contributions. |
This came up recently in discord because of https://gerrit.openbmc.org/c/openbmc/openbmc/+/57952, which removed /var/lock, and caused the original issue documented here. We still need a solution. Just create the directory in the u-boot-fw-utils-aspeed-sdk_2019.04.bb recipe? |
There are two existing recipes for early mounting procedures: * preinit-mounts - for obmc-ubi-fs * phosphor-mmc-init - for phosphor-mmc Add one for the static-norootfs image type. This one is similar to the preinit-mounts, except for it mounts /var as an overlay to avoid violating FHS expectations (See #3658 as an example of why this is problematic). I did not directly change preinit-mounts and fix it because there are likely field upgrade issues in doing this for existing users. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I62ab288c2d139cfecadeb191d576e2753120e123
There are two existing recipes for early mounting procedures: * preinit-mounts - for obmc-ubi-fs * phosphor-mmc-init - for phosphor-mmc Add one for the static-norootfs image type. This one is similar to the preinit-mounts, except for it mounts /var as an overlay to avoid violating FHS expectations (See openbmc#3658 as an example of why this is problematic). I did not directly change preinit-mounts and fix it because there are likely field upgrade issues in doing this for existing users. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I62ab288c2d139cfecadeb191d576e2753120e123
…penbmc#3658) Reed Frandsen (1): Merge pull request openbmc#26 from PriyangaRamasamy/lamptest-false-print Priyanga Ramasamy (2): meson:Update meson version to 0.58.0 and more Lamp test: Handle false trace getting printed Change-Id: I62c7d3f355a5480267843581d5aadb9af0f71750
Our Witherspoon system appears to still be using u-boot packages from 2016 so it is not getting the fixes: So after a dediprog or factory reset, a witherspoon system will not boot correctly with openbmc master. Need to figure out if we can update witherspoon to more recent u-boot. |
@geissonator - Is there any plan here? |
No, for now we just have it documented in our process that if you factory reset a witherspoon (running master), you have to manually create /var/lock (similar to what was done in 315698e for emmc). I don't think we're going to do anything else here. |
Need to look into an upstream change to u-boot that changes fw_setenv/fw_printenv to either create the /var/lock directory when it does not exist or look into alternatives when not available.
This commit was put in as a workaround:
https://gerrit.openbmc-project.xyz/c/openbmc/meta-phosphor/+/31860
systemd/systemd#15668 was the discussion with systemd on this. In general it seems like the usage of /var/lock should be deprecated.
Need to open up some discussion with upstream u-boot team.
The text was updated successfully, but these errors were encountered: