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

Improve logging for debugging startup issues #26

Open
wants to merge 1 commit into
base: halium
Choose a base branch
from

Conversation

Flohack74
Copy link

Logging the boot mode and file layout. During my porting I found it always hard to spot reasons for stuck boot in dmesg. Also, adding a condition to the file layout detection to require both system.img and rootfs.img to be present for Halium layout type.


if [ "$ANDROID_IMAGE_MODE" = "unknown" ]; then
halium_panic "Could not identify Android system image!"
fi
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While you wouldn't guess it from the name, initramfs-tools-halium may be used in cases where no Android image is present. It's not appropriate to panic in these cases.

I think there is a warning for the Android image not being found, though?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok I´ll remove it. The problem remains, why continue trying to boot if something essential is missing? If the system.img is missing then a bunch of errors is written out, and still the thing tries to start LXC it seems. I wanted to have a clear stop condition somewhere so that people can see, okay at the very end of the log: This is the problem.

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

Successfully merging this pull request may close these issues.

2 participants