Skip to content
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

compressed initramfs sometimes shows error at boot #18

Open
ojafuenf opened this issue Mar 9, 2022 · 4 comments
Open

compressed initramfs sometimes shows error at boot #18

ojafuenf opened this issue Mar 9, 2022 · 4 comments

Comments

@ojafuenf
Copy link
Contributor

ojafuenf commented Mar 9, 2022

At least for now COMPRESSION="cat" seems to have fixed this in mkinitcpio

@boi4
Copy link

boi4 commented Apr 11, 2022

Maybe using some consistency/integrity checks with MAC/HMAC would be good together with a loop that does a couple of retries.

@TheJJ
Copy link
Member

TheJJ commented Apr 11, 2022

for a proper solution it would be good to know what error is shown at boot.
i doubt it's an integrity problem.

@boi4
Copy link

boi4 commented Apr 11, 2022

If I remember correctly, I've so far encountered the following two types of error messages related to this:

PXL_20220411_192101889
PXL_20220411_192231928

Note that these messages are printed on top of the systemd output (the systemd output is probably from the stiefelclient before kexec'ing).
The unpacking fails and some files are missing in the filesystem.
As you can see, the mkinitcpio hooks are run, but usually fail at some point due to missing files.

I guess the question is at which point the initramfs gets corrupted.
Just double checked, and we actually do use an encrypt-then-mac scheme, so nevermind my previous reply....
However, this makes it even more confusing where the actual error might happen.

@ojafuenf
Copy link
Contributor Author

Yes, this is the type of error I meant.
The part I find most interesting, is the fact, that the error never occurred for me, when I disabled the compression of the initramfs. I have seen this error with all other compression options.
In theory this should have no influence as the compression is done at initramfs creation time. However, when booting the initramfs "normaly" (without stiefel), the error does not occur.
The error does not mean, that the boot fails. For me every time the boot continued without any problems. If I had to guess, I would suspect some kind of padding issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants