From TW's fstab man page: [quote] The second field (fs_file). This field describes the mount point (target) for the filesystem. For swap partitions, this field should be specified as `none'. [/quote]
Why does YaST-installer create fstabs that put swap in second field instead of putting none there when a swap partition has been selected for mounting?
On Saturday 2023-01-14 04:25, Felix Miata wrote:
From TW's fstab man page:
[quote] The second field (fs_file). This field describes the mount point (target) for the filesystem. For swap partitions, this field should be specified as `none'. [/quote]
Why does YaST-installer create fstabs that put swap in second field instead of putting none there when a swap partition has been selected for mounting?
If we take "SHOULD" as per RFC2119...:
Targets do not make sense with swaps, since the target is "the system". systemd-fstab-generator looks at the fstype field to see if something should be used as swap. In the days of sysvinit, swaps were often launched with `/bin/swapon -a`, and this program, at the time, also looked at the fstype field (nowadays, it scans devices for a swap signature).