Artix Linux Forum

Init systems => OpenRC => Topic started by: Feasuro on 25 July 2023, 20:10:20

Title: Openrc ignores 'noauto' entry from fstab
Post by: Feasuro on 25 July 2023, 20:10:20
I have a few entries in /etc/fstab that should not be mounted at boot, unfortunately openrc init ignores noauto option. That's how my /etc/fstab looks:
Code: [Select]
/dev/mapper/data	/home/user/Backup      btrfs   noauto,user,nodiratime,lazytime,compress=lzo,subvol=@backup	0	2
/dev/mapper/data /home/user/Music      btrfs   nofail,user,nodiratime,lazytime,compress=lzo,subvol=@music 0 2
/dev/mapper/data /home/user/Videos       btrfs   nofail,user,nodiratime,lazytime,compress=lzo,subvol=@videos 0 2
All entries are mounted at boot, regardless of noauto option. Does anybody know how to enforce correct behavior?
Title: Re: Openrc ignores 'noauto' entry from fstab
Post by: VictorBrand on 25 July 2023, 20:24:28
IIRC btrfs subvolumes cannot be mounted with different mount options.
Title: Re: Openrc ignores 'noauto' entry from fstab
Post by: Feasuro on 12 October 2023, 23:36:53
noauto is not an option passed to mount, it is an option for fstab configuration.
Quote from: man fstab
noauto
           do not mount when mount -a is given (e.g., at boot time)
I don't think it has anything to do with btrfs.  noauto parameter controls whether the entry should be mounted or not at boot time, regardless of filesystem in use.
Openrc ignores some system configuration files and uses it's own.  (Like /etc/hostname)
So maybe I should configure it in /etc/conf.d/localmount?