Skip to main content
Topic: Openrc ignores 'noauto' entry from fstab (Read 377 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Openrc ignores 'noauto' entry from fstab

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?

Re: Openrc ignores 'noauto' entry from fstab

Reply #1
IIRC btrfs subvolumes cannot be mounted with different mount options.

 

Re: Openrc ignores 'noauto' entry from fstab

Reply #2
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?