@mhdave :
I have tried:
- creating the bootable medium using Balena etcher
- Creating the bootable medium using Fedora media writer (on another fedora laptop)
- this does the ISO download and checksum check
- Check the bootable contents from the live CD grub menu
- Using F34 and F35 both KDE, which I have both used on other laptops and have had no issues with
- F34 on this laptop just hangs on the “installing bootloader” step. It hangs for over 24 hours
- F35 throws an error saying it failed to write the bootloader and that this could be a kernel or firmware bug
- It threw this error 2 times during the installation process
- reinstalling
shim-* grub2-efi-* grub2-common
from chroot, fixed the booting issue
- Installing a 32bit debian based system ( I think it’s a Lubuntu, but don’t really remember)
- This worked with no issues. System was running normally.
- Disabling UEFI (use legacy BIOS)
- Got UEFI errors from
grub2-mkconfig
- Disabling Secure Boot
- Got Secure Boot errors from
grub2-mkconfig
I’ve installed, reinstalled, chroot
ed and debugged this for the past 3-4 days.
Found many conflicting Fedora documentation pages that contradict each-other:
- This says one thing: Bootloading with GRUB2 :: Fedora Docs, and this GRUB 2 - Fedora Project Wiki contradicts it
- With regards to, but not limited to running
grub2-install
- All documentation talks about a rescue mode for fixing grub, but no Fedora LiveCD, not even the Workstation DVD has a grub entry for rescue. Rescue only exists in the installed system grub entries, which in my case does nothing different. AFAIK that rescue mode just boots an older kernel, which is not the case needed here.
- regenerating the grub config without mounting the
efi
partition, the /boot
partition, separately the 2 default created BTRFS subvolumes and bind mounting /dev/
/proc
/sys
and /run
, fails.
The documentation is a mess here, and I’d love to fix it, but I’m not confident that I’m right with this. It’s just a “this worked for me” situation at this point.
The current issue at hand is that the login does not work. Anything with the graphical session has no connection to this, since I can’t even login in the TTY.
The only lead I have now is the log message fetched while in chroot from /var/log/messages
:
Apr 3 16:16:57 afrodita systemd[1]: Created slice User Slice of UID 1000.
Apr 3 16:16:57 afrodita systemd[1]: Starting User Runtime Directory /run/user/1000...
Apr 3 16:16:57 afrodita systemd-logind[723]: New session 5 of user alessandro.
Apr 3 16:16:57 afrodita systemd[1]: Finished User Runtime Directory /run/user/1000.
Apr 3 16:16:57 afrodita audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 msg='unit=user-runtime-dir@1000 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Apr 3 16:16:57 afrodita systemd[1]: Starting User Manager for UID 1000...
Apr 3 16:16:57 afrodita audit[934]: USER_ACCT pid=934 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 msg='op=PAM:accounting grantors=pam_unix,pam_localuser acct="alessandro" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Apr 3 16:16:57 afrodita audit[934]: CRED_ACQ pid=934 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 msg='op=PAM:setcred grantors=? acct="alessandro" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Apr 3 16:16:57 afrodita audit[934]: USER_ROLE_CHANGE pid=934 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 msg='pam: default-context=unconfined_u:unconfined_r:unconfined_t:s0 selected-context=unconfined_u:unconfined_r:unconfined_t:s0 exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Apr 3 16:16:57 afrodita audit[934]: USER_START pid=934 uid=0 auid=1000 ses=6 subj=system_u:system_r:kernel_t:s0 msg='op=PAM:session_open grantors=pam_selinux,pam_selinux,pam_loginuid,pam_keyinit,pam_limits,pam_systemd,pam_unix acct="alessandro" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Apr 3 16:16:57 afrodita audit[934]: AVC avc: denied { transition } for pid=934 comm="(systemd)" path="/usr/lib/systemd/systemd" dev="sda3" ino=208359 scontext=system_u:system_r:kernel_t:s0 tcontext=unconfined_u:unconfined_r:unconfined_t:s0 tclass=process permissive=0
Apr 3 16:16:57 afrodita systemd[934]: user@1000.service: Failed to execute /usr/lib/systemd/systemd: Permission denied
Apr 3 16:16:57 afrodita audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 msg='unit=user@1000 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Apr 3 16:16:57 afrodita audit[927]: USER_START pid=927 uid=0 auid=1000 ses=5 subj=system_u:system_r:kernel_t:s0 msg='op=PAM:session_open grantors=pam_selinux,pam_loginuid,pam_selinux,pam_namespace,pam_keyinit,pam_keyinit,pam_limits,pam_systemd,pam_unix,pam_umask,pam_lastlog acct="alessandro" exe="/usr/bin/login" hostname=afrodita addr=? terminal=/dev/tty3 res=success'
Apr 3 16:16:57 afrodita audit[927]: CRED_REFR pid=927 uid=0 auid=1000 ses=5 subj=system_u:system_r:kernel_t:s0 msg='op=PAM:setcred grantors=pam_localuser,pam_unix acct="alessandro" exe="/usr/bin/login" hostname=afrodita addr=? terminal=/dev/tty3 res=success'
Apr 3 16:16:57 afrodita audit[927]: USER_LOGIN pid=927 uid=0 auid=1000 ses=5 subj=system_u:system_r:kernel_t:s0 msg='op=login id=1000 exe="/usr/bin/login" hostname=afrodita addr=? terminal=tty3 res=success'
Apr 3 16:16:57 afrodita audit[937]: AVC avc: denied { transition } for pid=937 comm="login" path="/usr/bin/bash" dev="sda3" ino=2472 scontext=system_u:system_r:kernel_t:s0 tcontext=unconfined_u:unconfined_r:unconfined_t:s0 tclass=process permissive=0
Apr 3 16:16:57 afrodita audit[927]: CRED_DISP pid=927 uid=0 auid=1000 ses=5 subj=system_u:system_r:kernel_t:s0 msg='op=PAM:setcred grantors=pam_localuser,pam_unix acct="alessandro" exe="/usr/bin/login" hostname=afrodita addr=? terminal=/dev/tty3 res=success'
Apr 3 16:16:57 afrodita audit[927]: USER_END pid=927 uid=0 auid=1000 ses=5 subj=system_u:system_r:kernel_t:s0 msg='op=PAM:session_close grantors=pam_selinux,pam_loginuid,pam_selinux,pam_namespace,pam_keyinit,pam_keyinit,pam_limits,pam_systemd,pam_unix,pam_umask,pam_lastlog acct="alessandro" exe="/usr/bin/login" hostname=afrodita addr=? terminal=/dev/tty3 res=success'
Apr 3 16:16:57 afrodita audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 msg='unit=getty@tty3 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Apr 3 16:16:57 afrodita audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 msg='unit=getty@tty3 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Apr 3 16:16:57 afrodita audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 msg='unit=getty@tty3 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Apr 3 16:16:57 afrodita audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 msg='unit=getty@tty3 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Apr 3 16:16:57 afrodita audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 msg='unit=user-runtime-dir@1000 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Apr 3 16:16:57 afrodita systemd[934]: user@1000.service: Failed at step EXEC spawning /usr/lib/systemd/systemd: Permission denied
Apr 3 16:16:57 afrodita systemd[1]: user@1000.service: Main process exited, code=exited, status=203/EXEC
Apr 3 16:16:57 afrodita systemd[1]: user@1000.service: Failed with result 'exit-code'.
Apr 3 16:16:57 afrodita systemd[1]: Failed to start User Manager for UID 1000.
Apr 3 16:16:57 afrodita systemd[1]: Started Session 5 of User alessandro.
Apr 3 16:16:57 afrodita systemd[1]: getty@tty3.service: Deactivated successfully.
Apr 3 16:16:57 afrodita systemd[1]: session-5.scope: Deactivated successfully.
Apr 3 16:16:57 afrodita systemd[1]: getty@tty3.service: Scheduled restart job, restart counter is at 1.
Apr 3 16:16:57 afrodita systemd-logind[723]: Session 5 logged out. Waiting for processes to exit.
Apr 3 16:16:57 afrodita systemd[1]: Stopped Getty on tty3.
Apr 3 16:16:57 afrodita systemd[1]: Started Getty on tty3.
Apr 3 16:16:57 afrodita systemd[1]: Stopping User Runtime Directory /run/user/1000...
Apr 3 16:16:57 afrodita systemd-logind[723]: Removed session 5.
Apr 3 16:16:57 afrodita systemd[1]: run-user-1000.mount: Deactivated successfully.
Apr 3 16:16:57 afrodita systemd[1]: user-runtime-dir@1000.service: Deactivated successfully.
Apr 3 16:16:57 afrodita systemd[1]: Stopped User Runtime Directory /run/user/1000.
Apr 3 16:16:57 afrodita systemd[1]: Removed slice User Slice of UID 1000.