๐ fstab mount only on boot but not when mount point is accessed
๐ก Newskategorie: Linux Tipps
๐ Quelle: reddit.com
Iโm building some AMI with packer and Ansible, and I have one task where Iโm setting up mount but with state=present. I want that entry at that moment in fstab, but not to mount it.
Issue is that some of next Ansible tasks starting some service which is accessing that mount point, and at that moment automount starts the mount. I donโt want that, I want that service at that point to use local directory.
But once AMI is built, and new EC2 from it, during the boot I want that drive mounted.
I tried to figure out from man mount, fstab and automount and did not find a solution. If I add โnoautoโ in fstab then it will not be mounted even during the boot.
I will reorder my Ansible tasks, but Iโm curious is there a way to use fstab and mount nfs only during the boot, but not when that path is accessed by some service?
[link] [comments] ...