Either use a systemd-nspawn or lxc (incus or lxd) system container or use the docker image. I used Matlab in an lxd for years and that stopped the random breakage I would see all the time on Arch
Easy access to third party software incorporated into your package manager.
Flexible in-house tools for low level items. Arch is probably the easiest distro to get started with UKIs.
Cons:
Defaults aren't always defaults. Arch takes a light touch approach for packaging but sometimes disables options.
Integration. A lot of work goes into making the default shipped software feel fully integrated. You have to do this manually on Arch.
State divergence. Arch, while rolling, has a ton of state accumulate and diverge. You can manage a lot of it by making sure to resolve .pacnew but it's still a bothersome situation for me.
Mixed:
Security defaults are lackluster and require you to do the configuration. This is good and bad. Good requires users to actually learn how these systems work for hardening your system. Bad most people don't do it.
Performance tuning. Same as security you have to do this yourself.
Arch-Install-Scripts are in repo on fedora. Includes pacman.
You also could just install a basic graphical environment on the arch iso. But if you simply want a gui for picking your wifi you will still have to do that from cmdline.
If you want to prepare ahead of time you can make your own arch iso. This actually isn't that hard and pretty cool idea for having a recovery disk on your system.
You use mokutil. Mokmanager is what actually manages the keys for shim. From the chroot you will need to export your signing key. you could do this from the live image as well, just make sure you keep a copy of the signing keys.
This is possible. But it's going to be a bit annoying.
For this to work, the keys on your motherboard need to include Microsoft 3rd party keys. If those are present, you will be able to boot Fedora's live USB. If those keys aren't on the system you are SoL.
Boot into Fedora. Choose live environment. Fedora packages both pacman and the arch install scripts.VInstall those with dnf. Pretty sure there is no password for sudo.
Go through a standard arch install using the wiki.
For the bootloader you will need to use shim with something. You will need to use shim-signed from the aur. Configure everything per the archwiki. Grub or refind can easily use shim. Refind also can easily generate signing keys for you.
You will need to create signing keys. Use openssl. From sbsigntools you can sign your kernel with sbsign. You could use sbctl instead. If using sbsign make sure to setup a pacman hook to sign after installing a kernel. Sbctl comes with hooks already.
With shim-signed and friends ready, use mokutil to get your signing key loaded to mokmanager.
When you reboot, mokmanager should pop up to enroll your key. And now you are hopefully into your new install.
If you want to stay within mkinitcpio, you can use a mkinitcpio hook to sign your UKI. Which is about the same amount of configuration that dracut needs for making a UKI and signing it.
Application support. Namely the lack of things like adobe products, ms office, and so on. My employer loves to use xfa PDFs which for the longest time were completely unusable on Linux. MS Office needs no explanation. But when we use access and there doesn't seem to be any good work around it means I always have to have a VM or physical install somewhere.
Random USB devices. A shockingly large amount of scientific equipment I've worked with connect over USB and have minimal to no Linux support. Wine doesn't work and instead I'm now back to a windows VM to do my job.
Smart Cards/2FA. Fedora is the first distro that actually had things set up to quickly get pkcs#11 tokens working with browsers and able to easily import my employers certs into the system trust. Then getting 2FA/digital signing has been absolute mess. Flatpak seems broken right now meaning any program I need to use my tokens with needs to be installed on the system is frustrating. And pdf signing is a mess compared to Adobe. Some critical apps on Linux lack 2fa support as well. Looking at you freerdp/remmina.
Gaming has rough edges. Gamer accessories as well. A recent machine I built has no ability to control the fan speed of the CPU fan because it's controlled by a proprietary software on windows. I didn't choose the part, but it's mind boggling that it's controlled by a USB header. At least it defaults to something that keeps the CPU cool under load.
A lot of this is gripes, but it's not the end of the world. It just means that for certain things I know I will break out a windows VM/box because it's faster to get the task done in a native environment.
Okay. /sys/class/tpm and /sys/class/tpmrm are both empty for me when using the default and lts kernel. That's with 6.4.11 and 6.1.46. So I'm guessing it's not initializing or that I have some sort of hardware issue.
If you are using the default kernel. Just install the Nvidia package.
Honestly it's pretty much plug and play especially if you use gnome or KDE. It also worked fine for a colleague using i3. I had it working fine with sway and an AMD card.
If you start hard coding configurations into your xorg.conf you'll have issues.
For computers Ive done this with:
Dell XPS 15 with a 7th Gen Intel chip
Lenovo X1 carbon with an 8th Gen Intel chip
Framework with the 11th gen Intel chip.
While a lot of stuff can be implemented at runtime the fact that most of the kernel's security features are disabled by default. While this means I can easily hibernate my laptop, I have to go through a lot of extra steps if I actually want to enable lockdown or other LSM. Module signing is also more awkward than it needs to be when using a stock kernel.
mkinitcpio is a pretty solid tool and it's part of the reason I reach for Arch on a lot of my computers. But it means I purposefully choose not to learn more about dracut. I don't feel the same about pacman for some reason. I maintain quite a few of my own mkinitcpio hooks, but it does feel niche at times.
Arch often goes for default from upstream. Sometimes downstream forks are what's actually mainline or have been patched to be more useful. This is most evident with grub where Ubuntus is patched to support chainloading while under secureboot while Arch doesn't have that support and you need to sign the font to avoid errors.
Ovmf-edk2 not having Microsoft signed secureboot firmware. Debian and Fedora has these.
Overall, I love Arch and more often than not will choose it over any other distro. There are small things that annoy me but not enough to not just use the distro. Most of the time it just works.
Take a look at ChimeraOS on how they handle it on github. They pretty much just took the SteamOS scripts and swapped out sddm for lightdm and kde for gnome. But there really are no tutorials on how it works besides reading scripts.
But basically how it works:
Login is set automatically with display manager to the gamescope session (ChimeraOS example Github/AUR).
On Login, some environment variables and what they call a Sentinel File is created in a certain location (I think /usr/lib/steamos/) check the script.
The switch to desktop then checks to see if the sentinel file exists. If it does, it changes the autologin from gamescope-session to the desktop session and then logouts.
The autologin then logs into the desktop session and resets the autologin file back to gamescope session. (This might not be automatically flipped back over)
Switch to gamescope is just log out and autologin back in.
Most of the work is being handled by the display manager. It works better with a login manager than supports drop in files, but I'm guessing with enough finagling you can get anything to work.
Arch is not split by versions unlike most of the other reported distros.
Ubuntu is split by versions and sometimes by flavors. Mint and debian are also split by versions. Also, flatpaks runtime is its own reported distro which obfuscates what people are using as well.
You can boot from the grub terminal. Set root device for grub,l oad kernel with your kernel command line (main thing is specifying your new root and rw). Then load your initramfs. Trigger boot and you will be in.
If that seems like too much, boot from a live iso and chroot in.
Yes you can enter setup mode by removing the keys. though from OPs question it seems that their firmware is bugged or they can't access it hence workaround.
You can also use mokutil's mmx64.efi to disable secureboot.
pacstrap is a fancy wrapper for chrooting into your new install location and running pacman.
Pacstrap vs install in chroot? It doesn't matter. Base is all that is needed for the chroot to be ready. Kernel and Firmware are only necessary if you intend to boot the hardware.
Headers? They are needed for dkms modules. Most common would be Nvidia-dkms, v4l2loopback. Out of tree modules. If you have no dkms packages, it's unnecessary to have installed.
The wiki is doing things in a very minimal unopinionated manner. I think the only real prescription is choosing Linux for the kernel and specifying ext4 for the file system. Otherwise it's just the bare minimum to get a booting system.
By default dwm and st want to install to /usr/local/bin/ if you git cloned from suckless. Did you change the Makefile?
For startx, did you actually make an xinitrc for your user? Or are you using sudo to use root's? Make sure you read the arch wiki page about starts. There are a few things you need to include to not break things.
Setup grub-btrfs with the overlay support to boot into a ro snapshot. Mount your btrfs root device. So whatever you named it in /dev/mapper/. There is a script in the aur for this and works fine (it's on the snapper wiki page). Personally, I've done this with boot on root using the LUKS2 supported grub.
There's really no reason for why you need to boot into a snapshot. You can instead boot any live environment. Ive done this method with rebuilding the monthly arch iso with encryption support, and snapper. Again, you mount the disk (in this case after unlocking if it's a separate partition) and do the same rollback.
For the allow-discard, make sure you are properly putting the necessary kernel cmdline in place. Again check the arch wiki for the syntax difference between sd-encrypt and encrypt.
This is the way.
Either use a systemd-nspawn or lxc (incus or lxd) system container or use the docker image. I used Matlab in an lxd for years and that stopped the random breakage I would see all the time on Arch
Pros:
Cons:
Mixed:
Arch-Install-Scripts are in repo on fedora. Includes pacman.
You also could just install a basic graphical environment on the arch iso. But if you simply want a gui for picking your wifi you will still have to do that from cmdline.
If you want to prepare ahead of time you can make your own arch iso. This actually isn't that hard and pretty cool idea for having a recovery disk on your system.
You use mokutil. Mokmanager is what actually manages the keys for shim. From the chroot you will need to export your signing key. you could do this from the live image as well, just make sure you keep a copy of the signing keys.
This is possible. But it's going to be a bit annoying.
For this to work, the keys on your motherboard need to include Microsoft 3rd party keys. If those are present, you will be able to boot Fedora's live USB. If those keys aren't on the system you are SoL.
Boot into Fedora. Choose live environment. Fedora packages both pacman and the arch install scripts.VInstall those with dnf. Pretty sure there is no password for sudo.
Go through a standard arch install using the wiki.
For the bootloader you will need to use shim with something. You will need to use shim-signed from the aur. Configure everything per the archwiki. Grub or refind can easily use shim. Refind also can easily generate signing keys for you.
You will need to create signing keys. Use openssl. From sbsigntools you can sign your kernel with sbsign. You could use sbctl instead. If using sbsign make sure to setup a pacman hook to sign after installing a kernel. Sbctl comes with hooks already.
With shim-signed and friends ready, use mokutil to get your signing key loaded to mokmanager.
When you reboot, mokmanager should pop up to enroll your key. And now you are hopefully into your new install.
Sbctl comes with pacman hook.
If you want to stay within mkinitcpio, you can use a mkinitcpio hook to sign your UKI. Which is about the same amount of configuration that dracut needs for making a UKI and signing it.
Application support. Namely the lack of things like adobe products, ms office, and so on. My employer loves to use xfa PDFs which for the longest time were completely unusable on Linux. MS Office needs no explanation. But when we use access and there doesn't seem to be any good work around it means I always have to have a VM or physical install somewhere.
Random USB devices. A shockingly large amount of scientific equipment I've worked with connect over USB and have minimal to no Linux support. Wine doesn't work and instead I'm now back to a windows VM to do my job.
Smart Cards/2FA. Fedora is the first distro that actually had things set up to quickly get pkcs#11 tokens working with browsers and able to easily import my employers certs into the system trust. Then getting 2FA/digital signing has been absolute mess. Flatpak seems broken right now meaning any program I need to use my tokens with needs to be installed on the system is frustrating. And pdf signing is a mess compared to Adobe. Some critical apps on Linux lack 2fa support as well. Looking at you freerdp/remmina.
Gaming has rough edges. Gamer accessories as well. A recent machine I built has no ability to control the fan speed of the CPU fan because it's controlled by a proprietary software on windows. I didn't choose the part, but it's mind boggling that it's controlled by a USB header. At least it defaults to something that keeps the CPU cool under load.
A lot of this is gripes, but it's not the end of the world. It just means that for certain things I know I will break out a windows VM/box because it's faster to get the task done in a native environment.
Check the execution policy for secure boot violations in your BIOS.
MSI has had very permissive settings in the past. See: https://us.msi.com/blog/statement-on-secure-boot
Hyprland has an exec-once command to run something once on startup.
You could also use a systemd service user unit with a one shot to execute once on login and that would be composite/wm agnostic.
I'm actually surprised at how many of these patches that were bugged were backported or whatever to 6.1.
Like how were these not caught in any build testing?
Instead of using a symbolic link, a bind mount would be my preference.
Generally I mount at /efi, and then bind mount to /boot/efi since some people expect it there.
Systemd is pushing to stop doing the /boot/efi and instead mount ESP as /boot or mount ESP at /efi and use XBOOTLOADER mounted at /boot.
I seem to be affected by this bug: https://bugzilla.kernel.org/show_bug.cgi?id=217804
I have the same error with tpm_crb failing and the TPM doesn't properly initialize. From last night I see the following in the journal.
Aug 18 20:17:46 m2home kernel: tpm_crb: probe of MSFT0101:00 failed with error 378So it looks like upstream is tracking this based on the most recent comment. Now I need to confirm if it's the same error on the LTS kernel.
Okay. /sys/class/tpm and /sys/class/tpmrm are both empty for me when using the default and lts kernel. That's with 6.4.11 and 6.1.46. So I'm guessing it's not initializing or that I have some sort of hardware issue.
Both were updated yesterday 2023-08-18.
Time to look through kernel bugzilla.
That's unfortunate. I would of hoped it would be narrower than all fTPM. Especially if the issues only affected ryzen/AMD implementation.
Guess I should source an actual TPM.
If you are using the default kernel. Just install the Nvidia package.
Honestly it's pretty much plug and play especially if you use gnome or KDE. It also worked fine for a colleague using i3. I had it working fine with sway and an AMD card.
If you start hard coding configurations into your xorg.conf you'll have issues.
For computers Ive done this with: Dell XPS 15 with a 7th Gen Intel chip Lenovo X1 carbon with an 8th Gen Intel chip Framework with the 11th gen Intel chip.
While a lot of stuff can be implemented at runtime the fact that most of the kernel's security features are disabled by default. While this means I can easily hibernate my laptop, I have to go through a lot of extra steps if I actually want to enable lockdown or other LSM. Module signing is also more awkward than it needs to be when using a stock kernel.
mkinitcpio is a pretty solid tool and it's part of the reason I reach for Arch on a lot of my computers. But it means I purposefully choose not to learn more about dracut. I don't feel the same about pacman for some reason. I maintain quite a few of my own mkinitcpio hooks, but it does feel niche at times.
Arch often goes for default from upstream. Sometimes downstream forks are what's actually mainline or have been patched to be more useful. This is most evident with grub where Ubuntus is patched to support chainloading while under secureboot while Arch doesn't have that support and you need to sign the font to avoid errors.
Ovmf-edk2 not having Microsoft signed secureboot firmware. Debian and Fedora has these.
Overall, I love Arch and more often than not will choose it over any other distro. There are small things that annoy me but not enough to not just use the distro. Most of the time it just works.
Take a look at ChimeraOS on how they handle it on github. They pretty much just took the SteamOS scripts and swapped out sddm for lightdm and kde for gnome. But there really are no tutorials on how it works besides reading scripts.
But basically how it works:
Most of the work is being handled by the display manager. It works better with a login manager than supports drop in files, but I'm guessing with enough finagling you can get anything to work.
Arch is not split by versions unlike most of the other reported distros.
Ubuntu is split by versions and sometimes by flavors. Mint and debian are also split by versions. Also, flatpaks runtime is its own reported distro which obfuscates what people are using as well.
You can boot from the grub terminal. Set root device for grub,l oad kernel with your kernel command line (main thing is specifying your new root and rw). Then load your initramfs. Trigger boot and you will be in.
If that seems like too much, boot from a live iso and chroot in.
That's not the kernel command line at all for the encrypt hook.
https://wiki.archlinux.org/title/Dm-crypt/Specialties#Discard/TRIM_support_for_solid_state_drives_(SSD)
Yes you can enter setup mode by removing the keys. though from OPs question it seems that their firmware is bugged or they can't access it hence workaround.
You can also use mokutil's mmx64.efi to disable secureboot.
That wasn't the question. It was how install arch Linux when secureboot is already enabled on the mobo.
But yes, sbctl is a great tool.
pacstrap is a fancy wrapper for chrooting into your new install location and running pacman.
Pacstrap vs install in chroot? It doesn't matter. Base is all that is needed for the chroot to be ready. Kernel and Firmware are only necessary if you intend to boot the hardware.
Headers? They are needed for dkms modules. Most common would be Nvidia-dkms, v4l2loopback. Out of tree modules. If you have no dkms packages, it's unnecessary to have installed.
The wiki is doing things in a very minimal unopinionated manner. I think the only real prescription is choosing Linux for the kernel and specifying ext4 for the file system. Otherwise it's just the bare minimum to get a booting system.
Recheck what you did.
By default dwm and st want to install to /usr/local/bin/ if you git cloned from suckless. Did you change the Makefile?
For startx, did you actually make an xinitrc for your user? Or are you using sudo to use root's? Make sure you read the arch wiki page about starts. There are a few things you need to include to not break things.
Options:
Setup grub-btrfs with the overlay support to boot into a ro snapshot. Mount your btrfs root device. So whatever you named it in /dev/mapper/. There is a script in the aur for this and works fine (it's on the snapper wiki page). Personally, I've done this with boot on root using the LUKS2 supported grub.
There's really no reason for why you need to boot into a snapshot. You can instead boot any live environment. Ive done this method with rebuilding the monthly arch iso with encryption support, and snapper. Again, you mount the disk (in this case after unlocking if it's a separate partition) and do the same rollback.
For the allow-discard, make sure you are properly putting the necessary kernel cmdline in place. Again check the arch wiki for the syntax difference between sd-encrypt and encrypt.