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

IoT 42 installer images since Fedora-IoT-42-20241018.0 boot to text mode with error "Wayland startup failed, falling back to text mode" #66

Open
pcdubs opened this issue Oct 22, 2024 · 10 comments · Fixed by osbuild/bootc-image-builder#707
Assignees
Labels
bug Something isn't working jira osbuild-related When the issue involves osbuild

Comments

@pcdubs
Copy link
Member

pcdubs commented Oct 22, 2024

Describe the bug
From: https://pagure.io/fedora-iot/issue/61

anaconda was recently ported to Wayland. Apparently IoT needs some sort of adjustment for this (some package missing?), because since it happened, IoT images boot to text mode, with an error "Wayland startup failed, falling back to text mode". See e.g. https://openqa.fedoraproject.org/tests/2971030#

@pcdubs pcdubs added bug Something isn't working jira osbuild-related When the issue involves osbuild labels Oct 22, 2024
@mmartinv
Copy link

mmartinv commented Nov 8, 2024

After reproducing the problem it looks like /usr/libexec/anaconda/run-in-new-session is failing because python3-pam package is missing:

ov 08 10:10:40 localhost.localdomain anaconda[2222]: program: Running... /usr/libexec/anaconda/run-in-new-session --user root --service anaconda --session-type wayland --session-class user --vt 6 gnome-kiosk --sm-disable --wayland --no-x11 --wayland-display wl-sysinstall-0
Nov 08 10:10:40 localhost.localdomain org.fedoraproject.Anaconda.Modules.Timezone[2323]: DEBUG:anaconda.modules.timezone.timezone:Time sources are set to: []
Nov 08 10:10:40 localhost.localdomain anaconda[2222]: anaconda: core.threads: Thread Done: AnaWaitForConnectingNMThread (140089852163776)
Nov 08 10:10:40 localhost.localdomain gnome-kiosk[2433]: Traceback (most recent call last):
Nov 08 10:10:40 localhost.localdomain gnome-kiosk[2433]:   File "/usr/libexec/anaconda/run-in-new-session", line 24, in <module>
Nov 08 10:10:40 localhost.localdomain gnome-kiosk[2433]:     import pam
Nov 08 10:10:40 localhost.localdomain gnome-kiosk[2433]: ModuleNotFoundError: No module named 'pam'

mmartinv added a commit to mmartinv/bootc-image-builder that referenced this issue Nov 8, 2024
Add the the python3-pam package to the list of dependencies
as it seems to be required for the anaconda-core rpm.

Resolves: fedora-iot/iot-distro#66

Signed-off-by: Miguel Martín <[email protected]>
github-merge-queue bot pushed a commit to osbuild/bootc-image-builder that referenced this issue Nov 8, 2024
Add the the python3-pam package to the list of dependencies
as it seems to be required for the anaconda-core rpm.

Resolves: fedora-iot/iot-distro#66

Signed-off-by: Miguel Martín <[email protected]>
@mmartinv mmartinv self-assigned this Nov 8, 2024
@mmartinv
Copy link

mmartinv commented Nov 8, 2024

Fixed by osbuild/bootc-image-builder#707

@mmartinv mmartinv closed this as completed Nov 8, 2024
@miabbott
Copy link
Member

miabbott commented Nov 8, 2024

@mmartinv I'm a bit confused by the fix...

I thought the Anaconda ISO for IoT 42 is built by osbuild, not b-i-b?

@miabbott
Copy link
Member

miabbott commented Nov 8, 2024

Also, if anaconda-core requires python3-pam, shouldn't we also be fixing this in the spec file for anaconda?

@miabbott
Copy link
Member

miabbott commented Nov 8, 2024

Also, if anaconda-core requires python3-pam, shouldn't we also be fixing this in the spec file for anaconda?

Looks like it is there for rawhide, but not for 41 - https://src.fedoraproject.org/rpms/anaconda/blob/rawhide/f/anaconda.spec#_273

@mmartinv
Copy link

mmartinv commented Nov 8, 2024

@mmartinv I'm a bit confused by the fix...

I thought the Anaconda ISO for IoT 42 is built by osbuild, not b-i-b?

My fault, I was able to reproduce the same issue while creating the anaconda ISO with b-i-b and I assumed the image was also built with b-i-b which is obviously not the case.

@mmartinv
Copy link

mmartinv commented Nov 8, 2024

Also, if anaconda-core requires python3-pam, shouldn't we also be fixing this in the spec file for anaconda?

Yes, that's something that I have been investigating.

Looks like it is there for rawhide, but not for 41 - https://src.fedoraproject.org/rpms/anaconda/blob/rawhide/f/anaconda.spec#_273

Well, I don't think the problem is actually fixed in rawhide: The python3-pam dependency was added to the anaconda-install-img-deps package and in my opinion it should have been added to anaconda-core package because it's the package that contains /usr/libexec/anaconda/run-in-new-session.

I think we need to discuss this with anaconda guys.

@miabbott
Copy link
Member

miabbott commented Nov 8, 2024

Well, I don't think the problem is actually fixed in rawhide: The python3-pam dependency was added to the anaconda-install-img-deps package and in my opinion it should have been added to anaconda-core package because it's the package that contains /usr/libexec/anaconda/run-in-new-session.

I think we need to discuss this with anaconda guys.

Good call out; I missed that the Requires was for a different sub-package.

Looks like the Anaconda folks use Bugzilla, so let's open an bug with them to discuss.

mmartinv added a commit to mmartinv/osbuild-images that referenced this issue Nov 11, 2024
According to the anaconda team we should be using the `anaconda-install-img-deps`
metapackage to install all the boot.iso image dependencies.

Relates: fedora-iot/iot-distro#66
Signed-off-by: Miguel Martín <[email protected]>
mmartinv added a commit to mmartinv/bootc-image-builder that referenced this issue Nov 11, 2024
According to the anaconda team we should be using the `anaconda-install-img-deps`
metapackage to install all the boot.iso image dependencies.
Relates: fedora-iot/iot-distro#66

Signed-off-by: Miguel Martín <[email protected]>
@mmartinv mmartinv reopened this Nov 11, 2024
@mmartinv
Copy link

@pcdubs I am a bit confused, how is Fedora-IoT-42 anaconda ISO generated? I don't see fedora-42 nor fedora-rawhide in the list of osbuild supported images

@achilleas-k
Copy link

I don't see fedora-42 nor fedora-rawhide in the list of osbuild supported images

If you define a repository configuration in osbuild-composer as fedora-42.json, it will enable building F42 images using the Fedora definitions (with the version range checks in the code). If there's any special conditions needed for F42 (package list changes, for example), they need to be added in the pkg/distro/fedora/ package in osbuild/images.

github-merge-queue bot pushed a commit to osbuild/images that referenced this issue Nov 11, 2024
According to the anaconda team we should be using the `anaconda-install-img-deps`
metapackage to install all the boot.iso image dependencies.

Relates: fedora-iot/iot-distro#66
Signed-off-by: Miguel Martín <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working jira osbuild-related When the issue involves osbuild
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants