Read-only File System Fails to Boot

Latest response

With RHEL 8.4, "Server with GUI" base environment, read-only file system fails to boot. Read-only file system boots up successful with "Minimal Install" base environment. Read-only mode was setup as described here: How to mount / in read-only mode by default (Stateless Linux)?. Boot stops as shown in os_does_not_boot.jpeg.

/etc/sysconfig/readonly-root and /etc/fstab were modified as shown below.

[root@vpx3-1220 ~]# cat /etc/sysconfig/readonly-root
# Set to 'yes' to mount the system filesystems read-only.
# NOTE: It's necessary to append 'ro' to mount options of '/' mount point in
#       /etc/fstab as well, otherwise the READONLY option will not work.
READONLY=yes
# Set to 'yes' to mount various temporary state as either tmpfs
# or on the block device labelled RW_LABEL. Implied by READONLY
TEMPORARY_STATE=no
# Place to put a tmpfs for temporary scratch writable space
RW_MOUNT=/var/lib/stateless/writable
# Label on local filesystem which can be used for temporary scratch space
RW_LABEL=stateless-rw
# Options to use for temporary mount
RW_OPTIONS=
# Label for partition with persistent data
STATE_LABEL=stateless-state
# Where to mount to the persistent data
STATE_MOUNT=/var/lib/stateless/state
# Options to use for persistent mount
STATE_OPTIONS=
# NFS server to use for persistent data?
CLIENTSTATE=
# Use slave bind-mounts
SLAVE_MOUNTS=yes

[root@vpx3-1220 ~]# cat /etc/fstab

#
# /etc/fstab
# Created by anaconda on Sat Dec  2 18:32:52 2023
#
# Accessible filesystems, by reference, are maintained under '/dev/disk/'.
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
#
# After editing this file, run 'systemctl daemon-reload' to update systemd
# units generated from this file.
#
/dev/mapper/rhel-root   /                       ext4    ro        1 1
UUID=58e50fc6-fd92-41b5-b813-1d6a959c1f6e /boot                   ext4    ro        1 2
UUID=521F-1E55          /boot/efi               vfat    umask=0077,shortname=winnt,ro 0 2
/dev/mapper/rhel-swap   none                    swap    noauto        0 0

Responses