You are not logged in.

#1 2023-11-23 13:27:23

ke
Member
Registered: 2023-11-13
Posts: 12

[SOLVED] GPT automounting

I am completely relying on systemd-gpt-auto-generator (https://wiki.archlinux.org/title/System … tomounting) for mounting my partitions, and therefore do not need /etc/fstab. When I delete it and reboot I see an empty /etc/fstab that was created automatically. Is there any way to prevent this behaviour?

Regards

Last edited by ke (2023-11-25 10:35:45)

Offline

#2 2023-11-24 09:57:32

nl6720
The Evil Wiki Admin
Registered: 2016-07-02
Posts: 579

Re: [SOLVED] GPT automounting

It is created by systemd-tmpfiles-setup.service following the instructions of /usr/lib/tmpfiles.d/arch.conf. If /etc/fstab is missing, it creates the file by copying /usr/share/factory/etc/fstab.

There's no harm in having an empty /etc/fstab, but if it really bothers you, then you can add usr/share/factory/etc/fstab to NoExtract in /etc/pacman.conf and delete the file afterwards.

Last edited by nl6720 (2023-11-24 09:57:43)

Offline

#3 2023-11-25 10:35:14

ke
Member
Registered: 2023-11-13
Posts: 12

Re: [SOLVED] GPT automounting

It works! Thank you for the excellent answer! Marking the thread [SOLVED].

Offline

Board footer

Powered by FluxBB