20 KiB
Cleaning up after ALG
Package cleanup
The very first thing done was to export ALG's packages - before I installed anything of my own (except dcli and yay because I needed them to do said export). Then, I differ them against my Blend's /system.yaml (see: ./packages-raw and ../system-packages-GuzioPadV4/sytem-raw - TL;DR: I removed all YAML stuff and sorted both alphabetically, thus letting me do a normal diff in VSCode). The following list of packages to remove was the result:
alg-app-store alg-fastfetch-config alg-hooks alg-logo alg-qogir-theme alg-set-once alg-welcome alg-xfce-settings amd-ucode bcachefs-tools blueman bluez-utils broadcom-wl clonezilla darkhttpd ddrescue dhcpcd diffutils dmraid edk2-shell ethtool exo file-roller firefox firefox-dark-reader fsarchiver galculator garcon gpm grml-zsh-config gvfs iwd jfsutils lftp lightdm lightdm-gtk-greeter lsb-release lsscsi lvm2 mousepad mugshot network-manager-applet nmap nvme-cli openconnect openvpn pacman-contrib parole partclone pavucontrol pulseaudio pulseaudio-alsa pulseaudio-bluetooth qemu-guest-agent reflector ristretto rp-pppoe sdparm sg3_utils system-config-printer systemd-resolvconf tela-circle-icon testdisk thunar thunar-archive-plugin thunar-media-tags-plugin thunar-volman ttf-ms-fonts ttf-roboto tumbler vim virtualbox-guest-utils vlc vpnc wireless_tools xdg-user-dirs xdotool xf86-video-intel xf86-video-vesa xfburn xfce4-appfinder xfce4-artwork xfce4-battery-plugin xfce4-clipman-plugin xfce4-cpufreq-plugin xfce4-cpugraph-plugin xfce4-dict xfce4-diskperf-plugin xfce4-eyes-plugin xfce4-fsguard-plugin xfce4-genmon-plugin xfce4-mailwatch-plugin xfce4-mount-plugin xfce4-mpc-plugin xfce4-netload-plugin xfce4-notes-plugin xfce4-notifyd xfce4-panel xfce4-places-plugin xfce4-power-manager xfce4-pulseaudio-plugin xfce4-screensaver xfce4-screenshooter xfce4-sensors-plugin xfce4-session xfce4-settings xfce4-smartbookmark-plugin xfce4-systemload-plugin xfce4-taskmanager xfce4-terminal xfce4-time-out-plugin xfce4-timer-plugin xfce4-verve-plugin xfce4-wavelan-plugin xfce4-weather-plugin xfce4-whiskermenu-plugin xfce4-xkb-plugin xfconf xfdesktop xfwm4 xfwm4-themes xorg-bdftopcf xorg-docs xorg-font-util xorg-fonts-100dpi xorg-fonts-75dpi xorg-fonts-encodings xorg-iceauth xorg-mkfontscale xorg-server xorg-server-common xorg-server-devel xorg-server-xephyr xorg-server-xnest xorg-server-xvfb xorg-sessreg xorg-setxkbmap xorg-smproxy xorg-x11perf xorg-xauth xorg-xbacklight xorg-xcmsdb xorg-xcursorgen xorg-xdpyinfo xorg-xdriinfo xorg-xev xorg-xgamma xorg-xhost xorg-xinput xorg-xkbcomp xorg-xkbevd xorg-xkbutils xorg-xkill xorg-xlsatoms xorg-xlsclients xorg-xmodmap xorg-xpr xorg-xprop xorg-xrandr xorg-xrdb xorg-xrefresh xorg-xset xorg-xsetroot xorg-xvinfo xorg-xwayland xorg-xwd xorg-xwininfo xorg-xwud yay-bin yay-bin-debug zsh
Unfortunatley, that led to some dependency issues. As such, the list has gone through 3 extra iterations, until no depencencies were broken:
alg-app-store alg-fastfetch-config alg-hooks alg-logo alg-qogir-theme alg-set-once alg-welcome alg-xfce-settings amd-ucode bcachefs-tools blueman broadcom-wl clonezilla darkhttpd ddrescue dhcpcd dmraid edk2-shell ethtool exo file-roller firefox firefox-dark-reader fsarchiver galculator garcon grml-zsh-config iwd jfsutils lftp lightdm lightdm-gtk-greeter lsb-release lsscsi lvm2 mousepad mugshot network-manager-applet nmap nvme-cli openconnect openvpn pacman-contrib parole partclone pavucontrol pulseaudio-alsa pulseaudio-bluetooth qemu-guest-agent reflector ristretto rp-pppoe sdparm sg3_utils system-config-printer systemd-resolvconf tela-circle-icon testdisk thunar thunar-archive-plugin thunar-media-tags-plugin thunar-volman ttf-ms-fonts ttf-roboto tumbler vim virtualbox-guest-utils vlc vpnc wireless_tools xdg-user-dirs xdotool xf86-video-intel xf86-video-vesa xfburn xfce4-appfinder xfce4-artwork xfce4-battery-plugin xfce4-clipman-plugin xfce4-cpufreq-plugin xfce4-cpugraph-plugin xfce4-dict xfce4-diskperf-plugin xfce4-eyes-plugin xfce4-fsguard-plugin xfce4-genmon-plugin xfce4-mailwatch-plugin xfce4-mount-plugin xfce4-mpc-plugin xfce4-netload-plugin xfce4-notes-plugin xfce4-notifyd xfce4-panel xfce4-places-plugin xfce4-power-manager xfce4-pulseaudio-plugin xfce4-screensaver xfce4-screenshooter xfce4-sensors-plugin xfce4-session xfce4-settings xfce4-smartbookmark-plugin xfce4-systemload-plugin xfce4-taskmanager xfce4-terminal xfce4-time-out-plugin xfce4-timer-plugin xfce4-verve-plugin xfce4-wavelan-plugin xfce4-weather-plugin xfce4-whiskermenu-plugin xfce4-xkb-plugin xfconf xfdesktop xfwm4 xfwm4-themes xorg-bdftopcf xorg-docs xorg-font-util xorg-fonts-100dpi xorg-fonts-75dpi xorg-iceauth xorg-mkfontscale xorg-server-common xorg-server-devel xorg-server-xephyr xorg-server-xnest xorg-server-xvfb xorg-sessreg xorg-setxkbmap xorg-smproxy xorg-x11perf xorg-xbacklight xorg-xcmsdb xorg-xcursorgen xorg-xdpyinfo xorg-xdriinfo xorg-xev xorg-xgamma xorg-xhost xorg-xinput xorg-xkbevd xorg-xkbutils xorg-xkill xorg-xlsatoms xorg-xlsclients xorg-xpr xorg-xrandr xorg-xrefresh xorg-xset xorg-xsetroot xorg-xvinfo xorg-xwd xorg-xwininfo xorg-xwud yay-bin yay-bin-debug zsh libxfce4ui
alg-app-store alg-fastfetch-config alg-hooks alg-logo alg-qogir-theme alg-set-once alg-welcome alg-xfce-settings amd-ucode bcachefs-tools blueman broadcom-wl clonezilla darkhttpd ddrescue dhcpcd dmraid edk2-shell ethtool exo file-roller firefox firefox-dark-reader fsarchiver galculator garcon grml-zsh-config iwd jfsutils lftp lightdm lightdm-gtk-greeter lsb-release lsscsi lvm2 mousepad mugshot network-manager-applet nmap nvme-cli openconnect openvpn pacman-contrib parole partclone pavucontrol pulseaudio-alsa pulseaudio-bluetooth qemu-guest-agent reflector ristretto rp-pppoe sdparm sg3_utils system-config-printer systemd-resolvconf tela-circle-icon testdisk thunar thunar-archive-plugin thunar-media-tags-plugin thunar-volman ttf-ms-fonts ttf-roboto tumbler vim virtualbox-guest-utils vlc vpnc wireless_tools xdg-user-dirs xdotool xf86-video-intel xf86-video-vesa xfburn xfce4-appfinder xfce4-artwork xfce4-battery-plugin xfce4-clipman-plugin xfce4-cpufreq-plugin xfce4-cpugraph-plugin xfce4-dict xfce4-diskperf-plugin xfce4-eyes-plugin xfce4-fsguard-plugin xfce4-genmon-plugin xfce4-mailwatch-plugin xfce4-mount-plugin xfce4-mpc-plugin xfce4-netload-plugin xfce4-notes-plugin xfce4-notifyd xfce4-panel xfce4-places-plugin xfce4-power-manager xfce4-pulseaudio-plugin xfce4-screensaver xfce4-screenshooter xfce4-sensors-plugin xfce4-session xfce4-settings xfce4-smartbookmark-plugin xfce4-systemload-plugin xfce4-taskmanager xfce4-terminal xfce4-time-out-plugin xfce4-timer-plugin xfce4-verve-plugin xfce4-wavelan-plugin xfce4-weather-plugin xfce4-whiskermenu-plugin xfce4-xkb-plugin xfconf xfdesktop xfwm4 xfwm4-themes xorg-bdftopcf xorg-docs xorg-font-util xorg-fonts-100dpi xorg-fonts-75dpi xorg-iceauth xorg-mkfontscale xorg-server-devel xorg-server-xephyr xorg-server-xnest xorg-server-xvfb xorg-sessreg xorg-setxkbmap xorg-smproxy xorg-x11perf xorg-xbacklight xorg-xcmsdb xorg-xcursorgen xorg-xdpyinfo xorg-xdriinfo xorg-xev xorg-xgamma xorg-xhost xorg-xinput xorg-xkbevd xorg-xkbutils xorg-xkill xorg-xlsatoms xorg-xlsclients xorg-xpr xorg-xrandr xorg-xrefresh xorg-xset xorg-xsetroot xorg-xvinfo xorg-xwd xorg-xwininfo xorg-xwud yay-bin yay-bin-debug zsh libxfce4ui
alg-app-store alg-fastfetch-config alg-hooks alg-logo alg-qogir-theme alg-set-once alg-welcome alg-xfce-settings amd-ucode bcachefs-tools blueman broadcom-wl clonezilla darkhttpd ddrescue dhcpcd dmraid edk2-shell ethtool exo file-roller firefox firefox-dark-reader fsarchiver galculator garcon grml-zsh-config iwd jfsutils lftp lightdm lightdm-gtk-greeter lsb-release lsscsi lvm2 mousepad mugshot network-manager-applet nmap nvme-cli openconnect openvpn pacman-contrib parole partclone pavucontrol pulseaudio-alsa pulseaudio-bluetooth qemu-guest-agent reflector ristretto rp-pppoe sdparm sg3_utils system-config-printer systemd-resolvconf tela-circle-icon testdisk thunar thunar-archive-plugin thunar-media-tags-plugin thunar-volman ttf-ms-fonts ttf-roboto tumbler vim virtualbox-guest-utils vlc vpnc wireless_tools xdg-user-dirs xdotool xf86-video-intel xf86-video-vesa xfburn xfce4-appfinder xfce4-artwork xfce4-battery-plugin xfce4-clipman-plugin xfce4-cpufreq-plugin xfce4-cpugraph-plugin xfce4-dict xfce4-diskperf-plugin xfce4-eyes-plugin xfce4-fsguard-plugin xfce4-genmon-plugin xfce4-mailwatch-plugin xfce4-mount-plugin xfce4-mpc-plugin xfce4-netload-plugin xfce4-notes-plugin xfce4-notifyd xfce4-panel xfce4-places-plugin xfce4-power-manager xfce4-pulseaudio-plugin xfce4-screensaver xfce4-screenshooter xfce4-sensors-plugin xfce4-session xfce4-settings xfce4-smartbookmark-plugin xfce4-systemload-plugin xfce4-taskmanager xfce4-terminal xfce4-time-out-plugin xfce4-timer-plugin xfce4-verve-plugin xfce4-wavelan-plugin xfce4-weather-plugin xfce4-whiskermenu-plugin xfce4-xkb-plugin xfconf xfdesktop xfwm4 xfwm4-themes xorg-bdftopcf xorg-docs xorg-font-util xorg-fonts-100dpi xorg-fonts-75dpi xorg-iceauth xorg-mkfontscale xorg-server-devel xorg-server-xephyr xorg-server-xnest xorg-server-xvfb xorg-sessreg xorg-smproxy xorg-x11perf xorg-xbacklight xorg-xcmsdb xorg-xcursorgen xorg-xdpyinfo xorg-xdriinfo xorg-xev xorg-xgamma xorg-xhost xorg-xinput xorg-xkbevd xorg-xkbutils xorg-xkill xorg-xlsatoms xorg-xlsclients xorg-xpr xorg-xrandr xorg-xrefresh xorg-xset xorg-xsetroot xorg-xvinfo xorg-xwd xorg-xwininfo xorg-xwud yay-bin yay-bin-debug zsh libxfce4ui
The final iteration doesn't break dependencies, but it accidentially nuked yay. As such, the proper list SHOULD, IN THEORY (untested) be:
alg-app-store alg-fastfetch-config alg-hooks alg-logo alg-qogir-theme alg-set-once alg-welcome alg-xfce-settings amd-ucode bcachefs-tools blueman broadcom-wl clonezilla darkhttpd ddrescue dhcpcd dmraid edk2-shell ethtool exo file-roller firefox firefox-dark-reader fsarchiver galculator garcon grml-zsh-config iwd jfsutils lftp lightdm lightdm-gtk-greeter lsb-release lsscsi lvm2 mousepad mugshot network-manager-applet nmap nvme-cli openconnect openvpn pacman-contrib parole partclone pavucontrol pulseaudio-alsa pulseaudio-bluetooth qemu-guest-agent reflector ristretto rp-pppoe sdparm sg3_utils system-config-printer systemd-resolvconf tela-circle-icon testdisk thunar thunar-archive-plugin thunar-media-tags-plugin thunar-volman ttf-ms-fonts ttf-roboto tumbler vim virtualbox-guest-utils vlc vpnc wireless_tools xdg-user-dirs xdotool xf86-video-intel xf86-video-vesa xfburn xfce4-appfinder xfce4-artwork xfce4-battery-plugin xfce4-clipman-plugin xfce4-cpufreq-plugin xfce4-cpugraph-plugin xfce4-dict xfce4-diskperf-plugin xfce4-eyes-plugin xfce4-fsguard-plugin xfce4-genmon-plugin xfce4-mailwatch-plugin xfce4-mount-plugin xfce4-mpc-plugin xfce4-netload-plugin xfce4-notes-plugin xfce4-notifyd xfce4-panel xfce4-places-plugin xfce4-power-manager xfce4-pulseaudio-plugin xfce4-screensaver xfce4-screenshooter xfce4-sensors-plugin xfce4-session xfce4-settings xfce4-smartbookmark-plugin xfce4-systemload-plugin xfce4-taskmanager xfce4-terminal xfce4-time-out-plugin xfce4-timer-plugin xfce4-verve-plugin xfce4-wavelan-plugin xfce4-weather-plugin xfce4-whiskermenu-plugin xfce4-xkb-plugin xfconf xfdesktop xfwm4 xfwm4-themes xorg-bdftopcf xorg-docs xorg-font-util xorg-fonts-100dpi xorg-fonts-75dpi xorg-iceauth xorg-mkfontscale xorg-server-devel xorg-server-xephyr xorg-server-xnest xorg-server-xvfb xorg-sessreg xorg-smproxy xorg-x11perf xorg-xbacklight xorg-xcmsdb xorg-xcursorgen xorg-xdpyinfo xorg-xdriinfo xorg-xev xorg-xgamma xorg-xhost xorg-xinput xorg-xkbevd xorg-xkbutils xorg-xkill xorg-xlsatoms xorg-xlsclients xorg-xpr xorg-xrandr xorg-xrefresh xorg-xset xorg-xsetroot xorg-xvinfo xorg-xwd xorg-xwininfo xorg-xwud zsh libxfce4ui
This leads to the following command
sudo pacman -R alg-app-store alg-fastfetch-config alg-hooks alg-logo alg-qogir-theme alg-set-once alg-welcome alg-xfce-settings amd-ucode bcachefs-tools blueman broadcom-wl clonezilla darkhttpd ddrescue dhcpcd dmraid edk2-shell ethtool exo file-roller firefox firefox-dark-reader fsarchiver galculator garcon grml-zsh-config iwd jfsutils lftp lightdm lightdm-gtk-greeter lsb-release lsscsi lvm2 mousepad mugshot network-manager-applet nmap nvme-cli openconnect openvpn pacman-contrib parole partclone pavucontrol pulseaudio-alsa pulseaudio-bluetooth qemu-guest-agent reflector ristretto rp-pppoe sdparm sg3_utils system-config-printer systemd-resolvconf tela-circle-icon testdisk thunar thunar-archive-plugin thunar-media-tags-plugin thunar-volman ttf-ms-fonts ttf-roboto tumbler vim virtualbox-guest-utils vlc vpnc wireless_tools xdg-user-dirs xdotool xf86-video-intel xf86-video-vesa xfburn xfce4-appfinder xfce4-artwork xfce4-battery-plugin xfce4-clipman-plugin xfce4-cpufreq-plugin xfce4-cpugraph-plugin xfce4-dict xfce4-diskperf-plugin xfce4-eyes-plugin xfce4-fsguard-plugin xfce4-genmon-plugin xfce4-mailwatch-plugin xfce4-mount-plugin xfce4-mpc-plugin xfce4-netload-plugin xfce4-notes-plugin xfce4-notifyd xfce4-panel xfce4-places-plugin xfce4-power-manager xfce4-pulseaudio-plugin xfce4-screensaver xfce4-screenshooter xfce4-sensors-plugin xfce4-session xfce4-settings xfce4-smartbookmark-plugin xfce4-systemload-plugin xfce4-taskmanager xfce4-terminal xfce4-time-out-plugin xfce4-timer-plugin xfce4-verve-plugin xfce4-wavelan-plugin xfce4-weather-plugin xfce4-whiskermenu-plugin xfce4-xkb-plugin xfconf xfdesktop xfwm4 xfwm4-themes xorg-bdftopcf xorg-docs xorg-font-util xorg-fonts-100dpi xorg-fonts-75dpi xorg-iceauth xorg-mkfontscale xorg-server-devel xorg-server-xephyr xorg-server-xnest xorg-server-xvfb xorg-sessreg xorg-smproxy xorg-x11perf xorg-xbacklight xorg-xcmsdb xorg-xcursorgen xorg-xdpyinfo xorg-xdriinfo xorg-xev xorg-xgamma xorg-xhost xorg-xinput xorg-xkbevd xorg-xkbutils xorg-xkill xorg-xlsatoms xorg-xlsclients xorg-xpr xorg-xrandr xorg-xrefresh xorg-xset xorg-xsetroot xorg-xvinfo xorg-xwd xorg-xwininfo xorg-xwud zsh libxfce4ui
# Note, that this isn't the command I actually ran. Instead, I nuked yay on accident, and I also split the "remove ALG" and "remove everything else" steps:
sudo pacman -R alg-app-store alg-fastfetch-config alg-hooks alg-logo alg-qogir-theme alg-set-once alg-welcome alg-xfce-settings
sudo pacman -R amd-ucode bcachefs-tools blueman broadcom-wl clonezilla darkhttpd ddrescue dhcpcd dmraid edk2-shell ethtool exo file-roller firefox firefox-dark-reader fsarchiver galculator garcon grml-zsh-config iwd jfsutils lftp lightdm lightdm-gtk-greeter lsb-release lsscsi lvm2 mousepad mugshot network-manager-applet nmap nvme-cli openconnect openvpn pacman-contrib parole partclone pavucontrol pulseaudio-alsa pulseaudio-bluetooth qemu-guest-agent reflector ristretto rp-pppoe sdparm sg3_utils system-config-printer systemd-resolvconf tela-circle-icon testdisk thunar thunar-archive-plugin thunar-media-tags-plugin thunar-volman ttf-ms-fonts ttf-roboto tumbler vim virtualbox-guest-utils vlc vpnc wireless_tools xdg-user-dirs xdotool xf86-video-intel xf86-video-vesa xfburn xfce4-appfinder xfce4-artwork xfce4-battery-plugin xfce4-clipman-plugin xfce4-cpufreq-plugin xfce4-cpugraph-plugin xfce4-dict xfce4-diskperf-plugin xfce4-eyes-plugin xfce4-fsguard-plugin xfce4-genmon-plugin xfce4-mailwatch-plugin xfce4-mount-plugin xfce4-mpc-plugin xfce4-netload-plugin xfce4-notes-plugin xfce4-notifyd xfce4-panel xfce4-places-plugin xfce4-power-manager xfce4-pulseaudio-plugin xfce4-screensaver xfce4-screenshooter xfce4-sensors-plugin xfce4-session xfce4-settings xfce4-smartbookmark-plugin xfce4-systemload-plugin xfce4-taskmanager xfce4-terminal xfce4-time-out-plugin xfce4-timer-plugin xfce4-verve-plugin xfce4-wavelan-plugin xfce4-weather-plugin xfce4-whiskermenu-plugin xfce4-xkb-plugin xfconf xfdesktop xfwm4 xfwm4-themes xorg-bdftopcf xorg-docs xorg-font-util xorg-fonts-100dpi xorg-fonts-75dpi xorg-iceauth xorg-mkfontscale xorg-server-devel xorg-server-xephyr xorg-server-xnest xorg-server-xvfb xorg-sessreg xorg-smproxy xorg-x11perf xorg-xbacklight xorg-xcmsdb xorg-xcursorgen xorg-xdpyinfo xorg-xdriinfo xorg-xev xorg-xgamma xorg-xhost xorg-xinput xorg-xkbevd xorg-xkbutils xorg-xkill xorg-xlsatoms xorg-xlsclients xorg-xpr xorg-xrandr xorg-xrefresh xorg-xset xorg-xsetroot xorg-xvinfo xorg-xwd xorg-xwininfo xorg-xwud yay-bin yay-bin-debug zsh libxfce4ui
...The only problem is that this leaves our skipped dependencies still present on the system, as manually installed, leading to the following dcli merge output:
=== Unmanaged Packages ===
These are packages you installed manually:
• bluez-utils
• diffutils
• gpm
• gvfs
• pulseaudio
• xorg-fonts-encodings
• xorg-server
• xorg-server-common
• xorg-setxkbmap
• xorg-xauth
• xorg-xkbcomp
• xorg-xmodmap
• xorg-xprop
• xorg-xrdb
• xorg-xwayland
• org.freedesktop.LinuxAudio.Plugins.TAP [flatpak]
• org.freedesktop.LinuxAudio.Plugins.swh [flatpak]
• org.freedesktop.Platform [flatpak]
• org.freedesktop.Platform.GL.default [flatpak]
• org.freedesktop.Platform.GL.default [flatpak]
• org.freedesktop.Platform.VAAPI.Intel [flatpak]
• org.freedesktop.Platform.codecs-extra [flatpak]
• org.freedesktop.Sdk [flatpak]
• org.gnome.Platform [flatpak]
• org.gnome.Platform [flatpak]
• org.gtk.Gtk3theme.Breeze-Dark [flatpak]
• org.kde.Platform [flatpak]
• org.kde.Platform [flatpak]
(Ignore the Flatpaks - it's intentional: DCli doesn't support Flatpak dependencies, and I don't want to explictly add Runtimes to my package list because they can change often.) This can be mitigated with the following command:
sudo pacman -D --asdeps bluez-utils diffutils gpm gvfs pulseaudio xorg-fonts-encodings xorg-server xorg-server-common xorg-setxkbmap xorg-xauth xorg-xkbcomp xorg-xmodmap xorg-xprop xorg-xrdb xorg-xwayland
After all of this, run sudo pacman -Rns $(pacman -Qdtq) a couple of times (unil it can't find packages anymore), to remove all orphans that came as the result of this debacle, and then do dcli sync to re-add anything that may have gotten wrongfully removed!
Service cleanup
dcli merge --services gives the following list:
=== Unmanaged Services ===
These services are currently enabled but not in your dcli config:
• choose-mirror
• hv_kvp_daemon
• hv_vss_daemon
• livecd-alsa-unmuter
• livecd-talk
• ModemManager
• pacman-init
• sshd
• systemd-networkd-wait-online
• systemd-time-wait-sync
The simplest thing to do is to run:
systemctl disable choose-mirror.service hv_kvp_daemon.service hv_vss_daemon.service livecd-alsa-unmuter.service livecd-talk.service ModemManager.service pacman-init.service sshd.service systemd-networkd-wait-online.service systemd-time-wait-sync.service
Defaults cleanup
Nothing was needed. Yaayy!
Fixing pacman-keyring
For some absolutley braindead reason, ALG devs looked at this forum post, saw that making /etc/pacman.d/gnupg/ immutable-on-disk can lead to problems and thought „My golly, well wouldn't it be a splendid idea if we do that, too?” - and proceeded to ship a broken /etc/pacman.d/gnupg/ (more specifically, the permissions are broken) that you can't perma-fix yourself (because even if you run pacman-keyring --init to fix the perms, any channges done to that file will not be persisted on disk and will vanish after a reboot). To make a fix that will actually last the following must be done:
sudo rm -v /etc/systemd/system/etc-pacman.d-gnupg.mount #To remove the pesky SystemD config file, that tells your OS to re-mount /etc/pacman.d/gnupg/ as a TempFS (which is what makes it immutable-on-disk)
sudo pacman-keyring --init #To fix the broken default permissions.
sudo pacman-keyring --populate #To install valid Arch keys. May no be necessary, but a) I think --init wipes the DB (I'm not sure, tho), and b) after all this mess, I don't trust ALG devs anymore, that they'll be competent enough to ship a valid keyring themselves.