Bug 1853409 - gdm fails to start on read-only filesystem
Summary: gdm fails to start on read-only filesystem
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: gdm
Version: 33
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ray Strode [halfline]
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-07-02 15:07 UTC by Zbigniew Jędrzejewski-Szmek
Modified: 2021-11-30 16:17 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-11-30 16:17:30 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Zbigniew Jędrzejewski-Szmek 2020-07-02 15:07:48 UTC
Description of problem:
gdm fails to start when / is read-only.
It is obviously a problem when trying to recover from a file system issue.

$ touch /var/tmp/foo
touch: cannot touch '/var/tmp/foo': Read-only file system
$ sudo systemctl start gdm
...

I see two failures:
first gdm tries to create /var/log/gdm/greeter.log. Please, please,
just log to the journal. This will actually allow users to see this log
and "magically" solve this issue at the same time.

second gdm tries to open /var/lib/gdm/. This is similar to the case where
a user tries to log in and their directory is read-only: we should continue
with the limitation that state cannot be saved permanently. That is totally
OK, much better than refusing to start. One could argue that in case of the
greeter, no private state is needed between boots anyway.

Version-Release number of selected component (if applicable):
gdm-3.37.1-2.fc33.x86_64

How reproducible:
Deterministic

Steps to Reproduce:
1. Make /var/log read-only, either by not remounting the filesystems rw, or by using udev.blockdev-read-only with systemd-246+
2. Try to start gdm

Comment 1 Davide Cavalca 2020-07-02 21:41:02 UTC
Related upstream bug: https://gitlab.gnome.org/GNOME/gdm/-/issues/284

Comment 2 Ben Cotton 2020-08-11 13:45:15 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 33 development cycle.
Changing version to 33.

Comment 3 Ben Cotton 2021-11-04 17:37:54 UTC
This message is a reminder that Fedora 33 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 33 on 2021-11-30.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '33'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 33 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 4 Ben Cotton 2021-11-30 16:17:30 UTC
Fedora 33 changed to end-of-life (EOL) status on 2021-11-30. Fedora 33 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.