-
Notifications
You must be signed in to change notification settings - Fork 71
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
[Draft] Add some initramfs debugging basics #796
base: main
Are you sure you want to change the base?
Conversation
This topic has not been covered by our docs, let's finally address this blank spot.
Thank you for contributing to the Leapp project!Please note that every PR needs to comply with the Leapp Guidelines and must pass all tests in order to be mergable.
To launch regression testing public members of oamg organization can leave the following comment:
Please open ticket in case you experience technical problem with the CI. (RH internal only) Note: In case there are problems with tests not being triggered automatically on new PR/commit or pending for a long time, please consider rerunning the CI by commenting leapp-ci build (might require several comments). If the problem persists, contact leapp-infra. |
Can one of the admins verify this patch? |
@MichalHe If you can expand some TBD sections or you have any other ideas on topics to be covered - you are welcome to just push a commit :) |
5. [TBD] Put info how to collect the logs | ||
|
||
> **_NOTE:_** When working in initramfs stage you will need a serial console. Though openstack machines can provide | ||
you with a novnc console, unless you need a shared dev environment consider using vagrant/libvirt. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fernflower This is not good place to add this information. Keep in mind you are adding information about a initramfs debugging that is completely irrelevant for the framework. This is the framework documentation, not documentation for the content provided by leapp-repositories. If any debugging instrusctionts regarding that should be provided, it should not be here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is related to leapp as a whole, not repositories only, and as leapp has been historically containing general debugging docs (like how to debug actors with rpdb information you see above) I decided to put initramfs debugging there as well.
I want this information to be public but I am not opposed to moving it, just tell where should I move it to?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can find el7toel8 directory inside docs. You need to come up where under docs specific for our upgrade repositories we should put it. We have already a task to separate leapp & leapp-repository docs, however there was no time to deal with it yet.
/rerun |
Copr build succeeded: https://copr.fedorainfracloud.org/coprs/build/4998023 |
Testing Farm request for RHEL-8.6-rhui/4996744;4998023 regression testing has been created. |
Testing Farm request for RHEL-8.7.0-Nightly/4996744;4998023 regression testing has been created. |
Testing Farm request for RHEL-8.6.0-Nightly/4996744;4998023 regression testing has been created. |
Testing Farm request for RHEL-7.9-ZStream/4996744;4998023 regression testing has been created. |
Testing Farm request for RHEL-7.9-rhui/4996744;4998023 regression testing has been created. |
Testing Farm request for RHEL-7.9-ZStream/4996744;4998023 regression testing has been created. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some suggestions
If `/sysroot` is not mounted at the time you may need to mount it manually, e.g. with `systemctl start sysroot.mount`. | ||
|
||
4. If the binaries are complaining about missing shared libraries, you could either set `LD_LIBRARY_PATH` variable | ||
to `LD_LIBRARY_PATH=/sysroot/lib64:/lib64` or change root to /sysroot: `chroot /sysroot` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before chroot
, kernel interfaces such as /dev /sys /proc should be mounted into the /sysroot
. Otherwise some commands, e.g lsblk
won't work.
I am not sure if you assume this knowledge or if it should be in the docs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should definitely be in the docs, assumed knowledge is always knowledge lost :)
Do you have a ready to run command to share?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can look at the leapp_dbg_chroot
funtion in #997, but I am not 100% sure all of them are included here.
Maybe we can wait until #997 is merged and then just point to the function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
chroot is problematic from this POV (depends, what everything you would like to do inside and what are expectations). from the point of upgrades, we should always run it in the same way as leapp, creating the systemd-nspawn container with the all parameters.
/rerun |
Copr build succeeded: https://copr.fedorainfracloud.org/coprs/build/5149512 |
Testing Farm request for RHEL-8.6-rhui/5130510;5149512 regression testing has been created. |
Testing Farm request for RHEL-7.9-rhui/5130510;5149512 regression testing has been created. |
Testing Farm request for RHEL-8.6.0-Nightly/5130510;5149512 regression testing has been created. |
Testing Farm request for RHEL-8.7.0-Nightly/5130510;5149512 regression testing has been created. |
Testing Farm request for RHEL-7.9-ZStream/5130510;5149512 regression testing has been created. |
Testing Farm request for RHEL-7.9-ZStream/5130510;5149512 regression testing has been created. |
This topic has not been covered by our docs, let's finally
address this blank spot.