[opensuse-factory] man fstab -> swap
![](https://seccdn.libravatar.org/avatar/a836ff90f492078f494adcf0c6059fc6.jpg?s=120&d=mm&r=g)
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? -- Evolution as taught in public schools is, like religion, based on faith, not based on science. Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata
![](https://seccdn.libravatar.org/avatar/5b748275c3dbb1ceee18ed554486547d.jpg?s=120&d=mm&r=g)
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).
participants (2)
-
Felix Miata
-
Jan Engelhardt