diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-11-16 17:44:28 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-12-07 15:53:45 +0100 |
commit | 483c9c1b8a559e2fe2a6bd1e544b4d6c50566071 (patch) | |
tree | b90418852a2799ae7025ea19c9f87a6f1c4b6812 /man/ukify.xml | |
parent | a1d6dbb1c94685d7972f63ed2762fe4ba0251287 (diff) | |
download | systemd-483c9c1b8a559e2fe2a6bd1e544b4d6c50566071.tar.gz |
ukify: try to find the uname string in the linux image if not specified
The approach is based on mkinicpio's autodetection.
This is hacky as hell. Some cases are actually fairly nice: ppc64el images have
a note that contains 'uname -r'. (The note is not uniquely labeled at all, and
only contains the release part instead of the full version-hostname-release
string, and we don't actually care about ppc, and it's very hard to read the
note from Python, but in general that'd be the approach I'd like.)
I opted to simply read and decompress the full linux binary in some cases.
Python doesn't make it easy to do streaming decompression with regexp matching,
and it doesn't seem to matter much: the image decompresses in a fraction of a
second.
Diffstat (limited to 'man/ukify.xml')
0 files changed, 0 insertions, 0 deletions