I wouldn't know if or where this would be documented.
Anyway, the initramfs is just like your normal root filesystem, albeit way more minimalistic.
The mkinitcpio hook has two files: the install file and the runtime hook file. The install file copies files from your root filesystem into the compressed initramfs image. The situation with the runtime hook file is more complicated.
If you use the base hook, the /init file is a shell script that will (among other things) execute all the runtime hooks in order.
If you use the systemd hook, then /init will be a symlink to systemd. This means that the runtime hooks will not have any effect on startup. If you want to do anything useful in this mode, you have to install and enable the correct systemd units. Installing a unit means copying the unit file in the install hook. Enabling it means creating the correct symlink in the install hook.
Back to your example: the runtime hook starts dbus and bluetoothd and ensures they are killed before switching to the real root. To do the equivalent with systemd, you have to add and enable the appropriate unit files for dbus and bluetoothd. For more details, you can consult the extensive systemd documentation.
I'd suggest adjusting the hook to work with systemd. L
The install part is probably mostly reusable. The hook itself is not needed with systemd, instead you need to enable the dbus and bluetooth units. Should be fairly easy.
So, the base+udev hook is basically like the old pre-systemd init scripts. When encrypt is called, it will poll the encrypted device and unlock it as soon as it exists. Since this is just a single device, it probably works fine and for the simplest case is likely reliable.
The problems start when this device depends on more than just a hard drive partition. Things like LVM layered on encryption layered on LVM are incredibly hard to get right.
The systemd method is event-based, just like your actual system and thus allows you to model more complex situations.
I'm going to do one-word quotes as well, just so the context is always as as clear in your reply.
purist
Nice way to jump to conclusions.
everything
Not everything. The systemd core daemon. Don't put words in my mouth.
And as to why: systemd is a critical piece of the system, it must run with full privileges and it has had its share of critical bugs due to memory safety issues.
Linux
And that is a bad thing. You need to learn a specific language dialect instead of the language as everyone else uses it.
manpower
Sure, that's why nobody has done it yet.
standard
Rust has a one language that everyone agrees upon. That is not written in a standards document (which nobody would read anyway), but still everyone agrees on the language. C has a standard, and yet projects tend to write "my C". Don't claim that this is a good thing.
ABI
This does not apply to systemd. Please don't try to use off-topic arguments to try to discredit what I said.
ambitions
Rust is not a person, it's a language. And the only ambition of the Rust community is to create an efficient, safe and developer-friendly language. If you think that ambition is too high, then you might as well sit in a cave and hit rocks together, because creating tools is also too much ambition.
And next time you try to argue something: 1) don't try to put words in their mouth that they didn't say, 2) don't use off-topic arguments to strengthen your point, 3) actually quote what you are referring to.
The linked comment completely neglects the feature-creep in the larger systemd project. I stand by what I said about systemd (the daemon) itself.
One common criticism is about logind: most desktops now depend on logind, and logind depends on systemd. There is no independent implementation of logind that is init system agnostic. There are many daemons in the systemd project whose use case I consider questionable and which should be separate from systemd.
Another criticism is that systemd is not written in standard C, but uses gcc-specific extensions. In particular, it heavily relies on RAII-style cleanup. That in itself is a good thing, but instead of using non-standard C, it would have been appropriate to use a subset of C++. Today, systemd should be rewritten entirely in Rust, using async and probably a custom lightweight async executor. It's a perfect fit for the style in which systemd is designed internally.
You all are doing this way too hard. Since you are likely using UEFI, all it takes is to simply extract the contents of the ISO to the USB drive and it's bootable.
You can now route your microphone from your microphone to a sink using loopback, combine that sink with a null sink and then capture from the monitor of the combined sink.
So rather than try to maintain a likely unused set of code, I'll just
aggressively remove it, and see if anybody even notices.
Funny that I did not notice. I guess if there would be much interest in the text console, we would see userspace fb console implementations that are actually maintained.
The default for mkinitcpio is still some basic shell script with very basic startup logic. Switching this to systemd is something I recommend, since it is more flexible and robust. And faster. However, speed is irrelevant when you have to type a passphrase.
I seem to be the only one that runs Arch on a Pi 3A+. The A version is much smaller, has only 1 USB port and lacks Ethernet. Since the 3 has WiFi, it is still pretty useful.
I use it with a USB DAC and librespot to play music.
Some DEs like you to run NetworkManager instead of systemd-networkd, or they will complain they can't manage the network for you. I don't know about KDE.
That's because networkd is mainly useful for static network setups. For anything dynamic, like wifi with automatic fallback to LAN, use NetworkManager. You still need to run networkd (with no configuration) so that timesyncd knows when you are connected.
First of all, let me get the most important point out of the way: Attacks through physical access is the only thing that hard drive encryption protects against. So, if you don't worry about physical access, then you don't need to encryption the hard drive.
unencrypted /boot leaves open the possibility that they can tamper with your boot image / kernel. I think this would allow much more than key logging.
At some point, the kernel and initrd need to be decrypted so the code can be executed. This means that some piece of software needs to supply the decryption key. In the case of encrypted /boot, that is usually the boot loader. So, the keylogger attack is still possible, you just need to compromise a different piece of software.
Since encryption is a tool to ensure secrecy, and the kernel/initrd contain no secrets, encrypting /boot is simply unnecessary.
If you want to protect against evil maid attacks, you can:
Use secure boot to verify the integrity of your boot loader, kernel and initrd. Manipulating the hardware to circumvent this protection is extremely hard and expensive (I once read an article by a scientist or engineer who extracted the private key from an outdates TPM. It took him tens of TPMs that he broke in the process and cost insane amounts of money. So even if someone can afford it, it is very likely to fail).
Keep the kernel and initrd separate from the computer (on a flash drive that you keep with you at all times).
Keep in mind that if someone wants to break your encryption, there is a more likely attack scenario: https://xkcd.com/538/
I wouldn't know if or where this would be documented.
Anyway, the initramfs is just like your normal root filesystem, albeit way more minimalistic.
The mkinitcpio hook has two files: the install file and the runtime hook file. The install file copies files from your root filesystem into the compressed initramfs image. The situation with the runtime hook file is more complicated.
If you use the base hook, the /init file is a shell script that will (among other things) execute all the runtime hooks in order.
If you use the systemd hook, then /init will be a symlink to systemd. This means that the runtime hooks will not have any effect on startup. If you want to do anything useful in this mode, you have to install and enable the correct systemd units. Installing a unit means copying the unit file in the install hook. Enabling it means creating the correct symlink in the install hook.
Back to your example: the runtime hook starts dbus and bluetoothd and ensures they are killed before switching to the real root. To do the equivalent with systemd, you have to add and enable the appropriate unit files for dbus and bluetoothd. For more details, you can consult the extensive systemd documentation.
I'd suggest adjusting the hook to work with systemd. L
The install part is probably mostly reusable. The hook itself is not needed with systemd, instead you need to enable the dbus and bluetooth units. Should be fairly easy.
So, the base+udev hook is basically like the old pre-systemd init scripts. When encrypt is called, it will poll the encrypted device and unlock it as soon as it exists. Since this is just a single device, it probably works fine and for the simplest case is likely reliable.
The problems start when this device depends on more than just a hard drive partition. Things like LVM layered on encryption layered on LVM are incredibly hard to get right.
The systemd method is event-based, just like your actual system and thus allows you to model more complex situations.
The systemd method is definitely faster and more reliable.
/use/include/net/route.his part of glibc. Make sure that the glibc package is complete withpacman -Qkk.This has nothing to do with linux-headers. The linux-headers package contains the headers for building modules for the default kernel.
I'm going to do one-word quotes as well, just so the context is always as as clear in your reply.
Nice way to jump to conclusions.
Not everything. The systemd core daemon. Don't put words in my mouth.
And as to why: systemd is a critical piece of the system, it must run with full privileges and it has had its share of critical bugs due to memory safety issues.
And that is a bad thing. You need to learn a specific language dialect instead of the language as everyone else uses it.
Sure, that's why nobody has done it yet.
Rust has a one language that everyone agrees upon. That is not written in a standards document (which nobody would read anyway), but still everyone agrees on the language. C has a standard, and yet projects tend to write "my C". Don't claim that this is a good thing.
This does not apply to systemd. Please don't try to use off-topic arguments to try to discredit what I said.
Rust is not a person, it's a language. And the only ambition of the Rust community is to create an efficient, safe and developer-friendly language. If you think that ambition is too high, then you might as well sit in a cave and hit rocks together, because creating tools is also too much ambition.
And next time you try to argue something: 1) don't try to put words in their mouth that they didn't say, 2) don't use off-topic arguments to strengthen your point, 3) actually quote what you are referring to.
The linked comment completely neglects the feature-creep in the larger systemd project. I stand by what I said about systemd (the daemon) itself.
One common criticism is about logind: most desktops now depend on logind, and logind depends on systemd. There is no independent implementation of logind that is init system agnostic. There are many daemons in the systemd project whose use case I consider questionable and which should be separate from systemd.
Another criticism is that systemd is not written in standard C, but uses gcc-specific extensions. In particular, it heavily relies on RAII-style cleanup. That in itself is a good thing, but instead of using non-standard C, it would have been appropriate to use a subset of C++. Today, systemd should be rewritten entirely in Rust, using async and probably a custom lightweight async executor. It's a perfect fit for the style in which systemd is designed internally.
You all are doing this way too hard. Since you are likely using UEFI, all it takes is to simply extract the contents of the ISO to the USB drive and it's bootable.
This is correct. Using xf86-video-intel has not been recommended for years
More links:
module-null-sink: Create a virtual sink to play your audio to. You can use a "Monitor of ..." device to capture from it.
module-loopback: Route audio from a source (microphone) to a sink.
module-combine-sink: Combine two sinks into one.
You can now route your microphone from your microphone to a sink using loopback, combine that sink with a null sink and then capture from the monitor of the combined sink.
Thanks.
Funny that I did not notice. I guess if there would be much interest in the text console, we would see userspace fb console implementations that are actually maintained.
Can we have some context about this? This is the first time I hear about fbcon bring dropped.
That is basically background noise. The other day I set up a new server at a hosting service and these started instantly.
As others have said already, disable password logins and you should be safe.
This is not a kernel message: https://git.archlinux.org/mkinitcpio.git/commit/init?id=049712038da250f1436373ae62e2d611f1edfb49
The corresponding kernel message would have been the dreaded "attempting to kill init" kernel panic.
OP's message is very Arch specific. I know because I wrote it.
That's an easy one, it doesn't do anything. Pacman is not transactional.
The contents of
/run/initramfsis generated only on shutdown, see https://git.archlinux.org/mkinitcpio.git/tree/systemd/mkinitcpio-generate-shutdown-ramfs.service.The default for mkinitcpio is still some basic shell script with very basic startup logic. Switching this to systemd is something I recommend, since it is more flexible and robust. And faster. However, speed is irrelevant when you have to type a passphrase.
I seem to be the only one that runs Arch on a Pi 3A+. The A version is much smaller, has only 1 USB port and lacks Ethernet. Since the 3 has WiFi, it is still pretty useful.
I use it with a USB DAC and librespot to play music.
You can get 1080p with a simple JavaScript hack, see https://github.com/vladikoff/netflix-1080p-firefox
They got that wrong, Sonicwall is the malware here.
That used to be the Gentoo wiki. In the early days, the Arch wiki was basically a collection of links to the Gentoo wiki.
That's because networkd is mainly useful for static network setups. For anything dynamic, like wifi with automatic fallback to LAN, use NetworkManager. You still need to run networkd (with no configuration) so that timesyncd knows when you are connected.
First of all, let me get the most important point out of the way: Attacks through physical access is the only thing that hard drive encryption protects against. So, if you don't worry about physical access, then you don't need to encryption the hard drive.
At some point, the kernel and initrd need to be decrypted so the code can be executed. This means that some piece of software needs to supply the decryption key. In the case of encrypted /boot, that is usually the boot loader. So, the keylogger attack is still possible, you just need to compromise a different piece of software.
Since encryption is a tool to ensure secrecy, and the kernel/initrd contain no secrets, encrypting /boot is simply unnecessary.
If you want to protect against evil maid attacks, you can:
Keep in mind that if someone wants to break your encryption, there is a more likely attack scenario: https://xkcd.com/538/