User avatar
Jeder neocat_floof_googly_woozy neocat_flag_agender 🔜 eth0 @jeder@miau.jeder.pl
2y
wait i don't have swap in the fstab and yet it got activated???? what kind of magic is this
⭐2
2
0
0
2

User avatar
Jeder neocat_floof_googly_woozy neocat_flag_agender 🔜 eth0 @jeder@miau.jeder.pl
2y
systemd activates swap partitions based on two different mechanisms. Both are executables in /usr/lib/systemd/system-generators. The generators are run on start-up and create native systemd units for mounts. The first, systemd-fstab-generator, reads the fstab to generate units, including a unit for swap. The second, systemd-gpt-auto-generator inspects the root disk to generate units. It operates on GPT disks only, and can identify swap partitions by their type GUID, see systemd#GPT partition automounting for more information.
Huh
⭐1
0
0
0
1
User avatar
Tóth Gábor Baltazár @tthbaltazar@chaos.social
2y
@jeder
systemd will scan the partition table and if it finds certain type uuids it will automatically mount it without config
1
0
0
0
User avatar
Jeder neocat_floof_googly_woozy neocat_flag_agender 🔜 eth0 @jeder@miau.jeder.pl
2y
@tthbaltazar damn thats nice
⭐1
1
0
0
1
User avatar
Tóth Gábor Baltazár @tthbaltazar@chaos.social
2y
@jeder
yeah, it was designed so you can just put disks and partitions together with a generic boot image and it will pick things up

I think it works better if you have a systemd based initramfs because then it can mount more stuff

man.archlinux.org/man/systemd-gpt-auto-generator.8
1
0
0
0
User avatar
keschi neocat_box therian Θ @kescher@catcatnya.com
2y
@tthbaltazar @jeder and somehow this fucks with my LUKS setup, therefore I put systemd.gpt_auto=no on my kernel cmdline
0
0
0
0