Description
Since version 2605.5.0 NFS shares are not mounted after reboots.
Impact
NFS share is not mounted after reboot and upgrade.
Environment
flatcar-install -d /dev/sda -i ignition.json -o vmware_raw
NFS share: https://docs.flatcar-linux.org/os/mounting-storage/#mounting-nfs-exports
steps to reproduce
cat /etc/systemd/system/mnt-nfs.mount
[Unit]
Before=remote-fs.target
[Mount]
What=<ip_of_nfs_server>:/nfs
Where=/mnt/nfs
Type=nfs
[Install]
WantedBy=remote-fs.target
ls -l /etc/systemd/system/remote-fs.target.wants/
total 4
lrwxrwxrwx. 1 root root 33 Sep 22 11:29 mnt-nfs.mount -> /etc/systemd/system/mnt-nfs.mount
systemctl status mnt-nfs.mount
● mnt-nfs.mount - /mnt/nfs
Loaded: loaded (/etc/systemd/system/mnt-nfs.mount; enabled; vendor preset: disabled)
Active: active (mounted) since Tue 2020-09-22 11:50:06 UTC; 31min ago
Where: /mnt/nfs
What: :/nfs
Tasks: 0 (limit: 28807)
Memory: 356.0K
CGroup: /system.slice/mnt-nfs.mount
reboot
systemctl status mnt-nfs.mount
● mnt-nfs.mount - /mnt/nfs
Loaded: loaded (/etc/systemd/system/mnt-nfs.mount; enabled; vendor preset: disabled)
Active: inactive (dead)
Where: /mnt/nfs
What: :/nfs
sudo systemctl start mnt-nfs.mount
systemctl status mnt-nfs.mount
● mnt-nfs.mount - /mnt/nfs
Loaded: loaded (/etc/systemd/system/mnt-nfs.mount; enabled; vendor preset: disabled)
Active: active (mounted) since Tue 2020-09-22 12:38:00 UTC; 6s ago
Where: /mnt/nfs
What: :/nfs
Tasks: 0 (limit: 28807)
Memory: 344.0K
CGroup: /system.slice/mnt-nfs.mount
Expected behavior
NFS share is mounted after reboot and upgrade.
Description
Since version 2605.5.0 NFS shares are not mounted after reboots.
Impact
NFS share is not mounted after reboot and upgrade.
Environment
flatcar-install -d /dev/sda -i ignition.json -o vmware_rawNFS share: https://docs.flatcar-linux.org/os/mounting-storage/#mounting-nfs-exports
steps to reproduce
cat /etc/systemd/system/mnt-nfs.mount
ls -l /etc/systemd/system/remote-fs.target.wants/
systemctl status mnt-nfs.mount
● mnt-nfs.mount - /mnt/nfs Loaded: loaded (/etc/systemd/system/mnt-nfs.mount; enabled; vendor preset: disabled) Active: active (mounted) since Tue 2020-09-22 11:50:06 UTC; 31min ago Where: /mnt/nfs What: :/nfs Tasks: 0 (limit: 28807) Memory: 356.0K CGroup: /system.slice/mnt-nfs.mountsystemctl status mnt-nfs.mount
● mnt-nfs.mount - /mnt/nfs Loaded: loaded (/etc/systemd/system/mnt-nfs.mount; enabled; vendor preset: disabled) Active: inactive (dead) Where: /mnt/nfs What: :/nfssystemctl status mnt-nfs.mount
● mnt-nfs.mount - /mnt/nfs Loaded: loaded (/etc/systemd/system/mnt-nfs.mount; enabled; vendor preset: disabled) Active: active (mounted) since Tue 2020-09-22 12:38:00 UTC; 6s ago Where: /mnt/nfs What: :/nfs Tasks: 0 (limit: 28807) Memory: 344.0K CGroup: /system.slice/mnt-nfs.mountExpected behavior
NFS share is mounted after reboot and upgrade.