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

F39 Simplified-Installer reports a failure, brings up emergency shell - then continues installation without issue #5

Closed
pcdubs opened this issue Oct 16, 2023 · 5 comments · Fixed by osbuild/images#967
Assignees
Labels
bug Something isn't working f39 Fedora 39 jira

Comments

@pcdubs
Copy link
Member

pcdubs commented Oct 16, 2023

Describe the bug

When using a Fedora 39 Simplified-Installer to install to a device, there is a failure and the system drops to a dracut emergency shell- then continues on and performs a successful installation:

To Reproduce
Please describe the steps needed to reproduce the bug:

  1. Create a Fedora simplified-installer
  2. Provision a device.

Expected behavior
No error, no dracut shell.

Screenshots

Screenshot from 2023-10-16 11-29-25

From the logs:

Oct 13 16:50:02 fedora dracut-mount[714]: Warning: Can't mount root filesystem
Oct 13 16:50:02 fedora systemd[1]: Starting dracut-emergency.service - Dracut Emergency Shell...

Additional context

After installation, using coreos.inst.skip_reboot to stop the system from rebooting :

Screenshot from 2023-10-16 11-30-23

@pcdubs pcdubs added bug Something isn't working f39 Fedora 39 jira labels Oct 16, 2023
@pcdubs pcdubs changed the title Simplified-Installer reports a failure, brings up emergency shell - then continues installation without issue F39 Simplified-Installer reports a failure, brings up emergency shell - then continues installation without issue Oct 17, 2023
@miabbott
Copy link
Member

@7flying have you encountered this recently in your tests?

Overall, we need someone to validate this problem is still occurring with F39 and F40

@7flying
Copy link
Member

7flying commented Feb 12, 2024

This (the error from the first screenshot) is still happening in my latest tests in Fedora 39.

@pcdubs
Copy link
Member Author

pcdubs commented Feb 20, 2024

Error from the first screenshot still happens in F40, but it does continue with the installation and successfully reboots into f40.

@mmartinv mmartinv self-assigned this Sep 30, 2024
@mmartinv
Copy link

This still happens in F41 and it looks like it's because the dracut-mount.service is activated by the presence of /lib/dracut/hooks/01-mount-overlayfs.sh file which is generated by the overlayfs dracut module. This file does not exist in RHEL simplified installer images and is present in F39 F40 and F41.

The overlayfs dracut module is required by livenet and dmsquash-live so removing them from the list of the dracut modules to be installed fixes the issue (I also added the overlayfs dracut module to the list of modules to be omitted just to make sure the module is not included but I think it's not actually needed).

I am not sure we need livnet and dmsquash-live for the coreos-installer but it looks like the configuration is shared by the anaconda and the coreos installers so removing them from the list is not going to be the final solution.

@achilleas-k
Copy link

achilleas-k commented Sep 30, 2024

I am not sure we need livnet and dmsquash-live for the coreos-installer but it looks like the configuration is shared by the anaconda and the coreos installers so removing them from the list is not going to be the final solution.

From my point of view, this is the core of it all. If we (you) don't care about the functionality these modules provide for the simplified-installer, then we should just remove them.

This might also be a good opportunity to review all the modules we include and trim some fat.

mmartinv added a commit to mmartinv/osbuild-images that referenced this issue Oct 2, 2024
Install only the minimal number of dracut modules required
by the coreos installer to avoid issues during the installation.

Resolves: fedora-iot/iot-distro#5

Signed-off-by: Miguel Martín <mmartinv@redhat.com>
mmartinv added a commit to mmartinv/osbuild-images that referenced this issue Oct 2, 2024
Install only the minimal number of dracut modules required
by the coreos installer to avoid issues during the installation.

Resolves: fedora-iot/iot-distro#5

Signed-off-by: Miguel Martín <mmartinv@redhat.com>
mmartinv added a commit to mmartinv/osbuild-images that referenced this issue Oct 3, 2024
Install only the minimal number of dracut modules required
by the coreos installer to avoid issues during the installation.

Resolves: fedora-iot/iot-distro#5

Signed-off-by: Miguel Martín <mmartinv@redhat.com>

coreos-installer: install only the required dracut modules

Install only the minimal number of dracut modules required
by the coreos installer to avoid issues during the installation.

Resolves: fedora-iot/iot-distro#5

Signed-off-by: Miguel Martín <mmartinv@redhat.com>
mmartinv added a commit to mmartinv/osbuild-images that referenced this issue Oct 4, 2024
Install only the minimal number of dracut modules required
by the coreos installer to avoid issues during the installation.

Resolves: fedora-iot/iot-distro#5

Signed-off-by: Miguel Martín <mmartinv@redhat.com>

coreos-installer: install only the required dracut modules

Install only the minimal number of dracut modules required
by the coreos installer to avoid issues during the installation.

Resolves: fedora-iot/iot-distro#5

Signed-off-by: Miguel Martín <mmartinv@redhat.com>
mmartinv added a commit to mmartinv/osbuild-images that referenced this issue Oct 4, 2024
Install only the minimal number of dracut modules required
by the coreos installer to avoid issues during the installation.

Resolves: fedora-iot/iot-distro#5

Signed-off-by: Miguel Martín <mmartinv@redhat.com>

coreos-installer: install only the required dracut modules

Install only the minimal number of dracut modules required
by the coreos installer to avoid issues during the installation.

Resolves: fedora-iot/iot-distro#5

Signed-off-by: Miguel Martín <mmartinv@redhat.com>
github-merge-queue bot pushed a commit to osbuild/images that referenced this issue Oct 4, 2024
Install only the minimal number of dracut modules required
by the coreos installer to avoid issues during the installation.

Resolves: fedora-iot/iot-distro#5

Signed-off-by: Miguel Martín <mmartinv@redhat.com>

coreos-installer: install only the required dracut modules

Install only the minimal number of dracut modules required
by the coreos installer to avoid issues during the installation.

Resolves: fedora-iot/iot-distro#5

Signed-off-by: Miguel Martín <mmartinv@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working f39 Fedora 39 jira
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants