-
Notifications
You must be signed in to change notification settings - Fork 62
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
swupd os-install failed to verify data if run within debian OS #1592
Comments
Bedrock Linux users with Clear Linux strata are hit by a very similar error message. It might be for the same reason.
It looks like the file causing the issue is Per https://github.com/clearlinux/swupd-server/wiki/Hash-calculation that long hex string is a hash of both a file's content and its metadata. On a Clear Linux system, that metadata is:
However, on my Bedrock system, when
Note the GID mismatch. On Bedrock Linux systems, Does your In theory, |
I do not share groups. Clearlinux installed into clean chroot folder. On my system it crash before staged data. Since debian has no swupd I wrote simple script which clone git swup repo and compiles it. Then after running swupd into /clearlinux it stops before creating any /etc, /var ... directories (only /var/lib/swupd/cache exists). Script is here: https://gitlab.com/axet/homebin/-/blob/debian/clr-bootstrap simple version is:
result folders are: /clearlinux/tmp/... no swupd/swupd folder, as in your example. But the issue looks have the same roots. |
Describe the bug
swupd os-install failed with:
Error: File content hash mismatch for /clearlinux/var/lib/swupd/cache/https___download.clearlinux.org_update/staged/d8a2055000d9ff84e01c64622fe3ead8c324164273abce439513803345ffc4e5 (bad server data?)
I'm running Debian, with manually compiled swupd from git source. os-install failed only if os-core-update specified. Command os-install works with "os-core" bundle only and many others.
To Reproduce
sudo ./swupd os-install -n -I -F staging -u https://download.clearlinux.org/update/ /clearlinux --bundles=os-core-update --statedir=/clearlinux/var/lib/swupd
I've tried different version (specified with -V 33000) nothing helping. Something wrong with "os-core-update" bundle. If I recompile swupd with possibility to ignore verify_file errors, OS installed and executed succefully from booth: chroot and real boot after swaping folders: / (debian) <-> /clearlinux (clear linux).
The text was updated successfully, but these errors were encountered: