Thanks for the posting this, I'm waiting for Raptor Lake to finally upgrade from Broadwell, so I'm also planning to explore this.
Ideally, we shouldn't need to set this, and having system specific setting (AllowedCPUs property) is far from optimal, as it means admins will have to set a different setting when deploying to systems with different CPUs.
Anyway, I would set the user slice on efficiency cores, and then make sure that apps are associated with app slice.
This way, if I'm not wrong, you won't need to figure out how to deal with desktop environment processes, they will be assigned to the user slice.
For example, Flatpak already assigns its apps to the app slice.
Your desktop environment's launcher should also do this. If it doesn't, then I suggest filing a bug report.
All my apps are Flatpaks except the launcher and terminal, so I'm already pretty much covered, and the latter two I just assign to the app slice.
Getting environment variables from systemd generators, so they only needed to be set for the systemd user session (environment.d, custom generators), and they cover this way also systemd user services, systemd-run and flatpak-spawn.
Also, bash-complete-alias is pretty neat, though I'm making limited use of it these days, and prefer wrappers, and symlinks.
It's flexible, powerful, rich in features, and there's nothing that comes close to it. The alternatives are too limited, and can't get the job done.
For example, with sd-boot:
You can't globally append kernel parameters to multiple boot entries
You can't bundle/hardcode loader config with the bootloader's EFI binary
Auto-detection and creation of boot entries is minimal, not flexible, and only support unified binaries
Auto-detection of system/rootfs path must be hardcoded in the loader config or cmdlline in the unified image.
With a GRUB script, I can get all these done and more.
What OP wants is impossible with Flatpak. Flatpak does not give the option to bind mount a specific path on a different path in the sandbox. Flatpak does not expose this bwrap feature.
Initrd shouldn't matter for getting TTY working, and it might be embedded in the kernel, though it would be unusual for a general purpose distro to do that (in contrast to something like OpenWRT or LibreELEC).
Kernel and device-tree file should be enough.
You do want initrd to get a basic single user environment to work in.
Sorry, I don't have qemu on my system ATM to give you a more relevant example, but maybe the following could help. This is how I booted my last ARMv7 VM.
Graphics is too much to expect. Try using -append option to add the kernel option console=ttyAMA0 and also set -serial stdio and -display none, and hopefully this would give you TTY access.
Wow! I just noticed that Arch Linux ARM dropped ARMv5 and ARMv6 support.
ARMv5 removal is really an end of an era, though with their limited RAM, I don't think these devices can even boot compressed kernels anymore.
The official Python Docker image support arm32v6, so that's an option.
If you're booting an ARMv6 VM, then maybe use a more generic machine than the raspi1ap. I haven't booted an ARM VM for a while, and I didn't need to use this really at the time, so I don't remember much.
What I can recommend is to use qemu --help option to list machines, match this to available device-tree configs in the distro image/tarball you're using.
The vexpress machines should be a good choice if you have one that is matching the architecture.
Use qemu's -dtb option to specify the specific device-tree (compiled) config for the selected machine.
It has not been said, but this seems to be a full AUR mirror, including deleted/archived packages, so don't use available branches to generate the package list.
Because you don't push pre-built binary releases to users if you don't have to.
If a trusted user will decide to adopt the package, then it will be built from source, as it should.
Re-packaging binary releases is done only when there's no other choice.
Maintaining a Chromium based browser is PITA, I wouldn't want to do this.
Vivaldi sourced for the Arch Linux package as a binary release, so maintenance is quite minimal.
Brave, on the other hand, is complied from source, and that's not fun to maintain and build, even with ccache turned on and debug symbols disabled.
Install and run org.freedesktop.Platform.VaInfo//21.08, it should tell you if something is wrong with Flatpak or it just this app.
We're using the 21.08 branch because it's on the same runtime version as the Spotify app.
I suspect this is just this app, it's probably using an outdated CEF release. And no, this is not an Electron app.
If you can't get into an emergency shell when initrd fails to switch root (not an uncommon systemd annoyance), then it's possible to explicitly instruct the initrd to enter a debug shell using the kernel parameter break see mkinitcpio.8 man page.
Yea how do i dare to ask questions and try to understand and learn things.
The first thing you need to understand is how to use and debug the initrd. You have there an emergency shell, so nothing is stopping you in trying to mount the rootfs manually, read the journal log, list storage devices in /dev/ and find out it something is missing there, etc.
If you can't get into an emergency shell when initrd fails to switch root (not an uncommon systemd annoyance), then it's possible to explicitly instruct the initrd to enter a debug shell using the kernel parameter break see mkinitcpio.8 man page.
Why are you building a kernel if you don't understand the boot process?
The problem here is pretty clear, the initrd can't find the rootfs filesystem, so it's not being mounted to the switch_root target.
Possible reasons why this is happening:
You don't have the filesystem type module in your initramfs image. Filesystems like btrfs, ext4, etc, are not built-in, so you need to have the module in the initramfs image.
You don't have the storage module for your hardware, or modules used by it, or maybe you need to load it early (in the kernel cmdline or with the initrd).
Your kernel might be building a driver as a module while Arch Linux kernel builds it as built-in, so you're not aware that you need to explicitly load it or load it early. For example, the ahci and libahci storage related drivers were previously compiled as modules, but nowadays are built-in, and when I was switching between linux and linux-lts, I didn't understand why my machine is failing to boot.
I hope this points you in the right direction, I can't help much more, as I don't use mkinitcpio, and never tried to understand it. I prefer dracut.
You want to look for something that supports driverless printing and scanning.
Driverless printing is easy, probably anything with network connectivity from recent years should do, but to be on the safe side, look for AirPrint compatibility.
Driverless scanning is harder, maybe look at the list in the sane-airscan repo.
Do you need color printing? Color laser AIO are not very compact.
Flatbed scanner? ADF? Dual-sided ADF? I'm not sure that there are AIO with dual-sided ADF scanner.
If you only care about scanning from ADF, then maybe consider getting a dedicated network ADF scanner.
These can do dual-sided scanning, upload to an SMB share or cloud services, and automatically generate a PDF with OCR.
This way, you can have a more compact printer instead of AIO color laser that can be quite large, not have to deal with scanner drivers if driverless scanning is not supported.
I have Brother ADS-1700W in my wish list, though I have multiple AIO already that I need to get rid of first.
No, but I'm following some of its methodology.
I have A/B system update set up, and the switch is atomic, just a file rename, though I will switch to use an EFI var instead.
OS is immutable, which is a pre-condition to measured boot, and I plan to look into this, though waiting first to see the fs-verity support in ostree being improved, and I actually need to start using ostree.
I wouldn't know where to put on disk the top level of the root filesystem, as the stateless part of the system is just /usr, so it's easier for me to let the initrd generate the top level in tmpfs, and then bind mount /usr, and the stateful subvolume /var.
This should work without any extra configuration when Gnome 41 will be released and xdg-desktop-portal-gtk will be updated.
Currently, you need to set XDG_CURRENT_DESKTOP as Sway in your environment and xdg-desktop-portal.service's environment. You can read here about this issue.
It goes without saying that xdg-desktop-portal-wlr should be installed in your system.
But this just for the screencopy type of buffer copy, which is a bit wasteful. The zero-copy dmabuf is being figure out right now.
Kernel regression. It was fixed in the following major release.
Thanks for the posting this, I'm waiting for Raptor Lake to finally upgrade from Broadwell, so I'm also planning to explore this.
Ideally, we shouldn't need to set this, and having system specific setting (
AllowedCPUsproperty) is far from optimal, as it means admins will have to set a different setting when deploying to systems with different CPUs.Anyway, I would set the user slice on efficiency cores, and then make sure that apps are associated with app slice.
This way, if I'm not wrong, you won't need to figure out how to deal with desktop environment processes, they will be assigned to the user slice. For example, Flatpak already assigns its apps to the app slice.
Your desktop environment's launcher should also do this. If it doesn't, then I suggest filing a bug report.
All my apps are Flatpaks except the launcher and terminal, so I'm already pretty much covered, and the latter two I just assign to the app slice.
Getting environment variables from systemd generators, so they only needed to be set for the systemd user session (environment.d, custom generators), and they cover this way also systemd user services, systemd-run and flatpak-spawn.
Also, bash-complete-alias is pretty neat, though I'm making limited use of it these days, and prefer wrappers, and symlinks.
You can do this with fakechroot. I think I've seen a couple of packages do this, but the only one I can reference ATM is mplabx.
https://wiki.archlinux.org/title/Chromium#Force_a_password_store
It's flexible, powerful, rich in features, and there's nothing that comes close to it. The alternatives are too limited, and can't get the job done.
For example, with sd-boot:
With a GRUB script, I can get all these done and more.
What OP wants is impossible with Flatpak. Flatpak does not give the option to bind mount a specific path on a different path in the sandbox. Flatpak does not expose this bwrap feature.
I think that a wrapper running the app in a user mount namespace should get the job done.
To run manually:
See
man:unshare(1)for more details.Initrd shouldn't matter for getting TTY working, and it might be embedded in the kernel, though it would be unusual for a general purpose distro to do that (in contrast to something like OpenWRT or LibreELEC).
Kernel and device-tree file should be enough.
You do want initrd to get a basic single user environment to work in.
Sorry, I don't have qemu on my system ATM to give you a more relevant example, but maybe the following could help. This is how I booted my last ARMv7 VM.
You don't actually need a rootfs, as just having an initramfs is enough to look around the boot system.
Graphics is too much to expect. Try using
-appendoption to add the kernel optionconsole=ttyAMA0and also set-serial stdioand-display none, and hopefully this would give you TTY access.Wow! I just noticed that Arch Linux ARM dropped ARMv5 and ARMv6 support.
ARMv5 removal is really an end of an era, though with their limited RAM, I don't think these devices can even boot compressed kernels anymore.
The official Python Docker image support arm32v6, so that's an option.
If you're booting an ARMv6 VM, then maybe use a more generic machine than the raspi1ap. I haven't booted an ARM VM for a while, and I didn't need to use this really at the time, so I don't remember much.
What I can recommend is to use qemu
--helpoption to list machines, match this to available device-tree configs in the distro image/tarball you're using.The vexpress machines should be a good choice if you have one that is matching the architecture.
Use qemu's
-dtboption to specify the specific device-tree (compiled) config for the selected machine.And have a look at this guide.
It has not been said, but this seems to be a full AUR mirror, including deleted/archived packages, so don't use available branches to generate the package list.
Because you don't push pre-built binary releases to users if you don't have to.
If a trusted user will decide to adopt the package, then it will be built from source, as it should.
Re-packaging binary releases is done only when there's no other choice.
Maintaining a Chromium based browser is PITA, I wouldn't want to do this.
Vivaldi sourced for the Arch Linux package as a binary release, so maintenance is quite minimal.
Brave, on the other hand, is complied from source, and that's not fun to maintain and build, even with ccache turned on and debug symbols disabled.
Install and run
org.freedesktop.Platform.VaInfo//21.08, it should tell you if something is wrong with Flatpak or it just this app.We're using the
21.08branch because it's on the same runtime version as the Spotify app.I suspect this is just this app, it's probably using an outdated CEF release. And no, this is not an Electron app.
The first thing you need to understand is how to use and debug the initrd. You have there an emergency shell, so nothing is stopping you in trying to mount the rootfs manually, read the journal log, list storage devices in
/dev/and find out it something is missing there, etc.If you can't get into an emergency shell when initrd fails to switch root (not an uncommon systemd annoyance), then it's possible to explicitly instruct the initrd to enter a debug shell using the kernel parameter
breaksee mkinitcpio.8 man page.Why are you building a kernel if you don't understand the boot process?
The problem here is pretty clear, the initrd can't find the rootfs filesystem, so it's not being mounted to the switch_root target.
Possible reasons why this is happening:
I hope this points you in the right direction, I can't help much more, as I don't use mkinitcpio, and never tried to understand it. I prefer dracut.
You should never run GUI apps as root.
You want to look for something that supports driverless printing and scanning.
Driverless printing is easy, probably anything with network connectivity from recent years should do, but to be on the safe side, look for AirPrint compatibility.
Driverless scanning is harder, maybe look at the list in the sane-airscan repo.
Do you need color printing? Color laser AIO are not very compact.
Flatbed scanner? ADF? Dual-sided ADF? I'm not sure that there are AIO with dual-sided ADF scanner.
If you only care about scanning from ADF, then maybe consider getting a dedicated network ADF scanner.
These can do dual-sided scanning, upload to an SMB share or cloud services, and automatically generate a PDF with OCR.
This way, you can have a more compact printer instead of AIO color laser that can be quite large, not have to deal with scanner drivers if driverless scanning is not supported.
I have
Brother ADS-1700Win my wish list, though I have multiple AIO already that I need to get rid of first.No, but I'm following some of its methodology.
I have A/B system update set up, and the switch is atomic, just a file rename, though I will switch to use an EFI var instead.
OS is immutable, which is a pre-condition to measured boot, and I plan to look into this, though waiting first to see the fs-verity support in ostree being improved, and I actually need to start using ostree.
I wouldn't know where to put on disk the top level of the root filesystem, as the stateless part of the system is just
/usr, so it's easier for me to let the initrd generate the top level in tmpfs, and then bind mount/usr, and the stateful subvolume/var.read-only tmpfs.
No idea, I don't use lxd much, but did you follow this?
If this doesn't get you enough debug info, then you can run with
strace -ff, and look for a failing system call next to the error message.This should work without any extra configuration when Gnome 41 will be released and
xdg-desktop-portal-gtkwill be updated.Currently, you need to set
XDG_CURRENT_DESKTOPasSwayin your environment andxdg-desktop-portal.service's environment. You can read here about this issue.It goes without saying that
xdg-desktop-portal-wlrshould be installed in your system.But this just for the
screencopytype of buffer copy, which is a bit wasteful. The zero-copydmabufis being figure out right now.