[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1033630: debian-installer: should fstab swap entries use "sw" as option?



On Wed, 29 Mar 2023 at 01:56, Christoph Anton Mitterer
<calestyo@scientia.org> wrote:
> On Wed, 2023-03-29 at 01:41 +0000, David wrote:

> > Yes, for many years using Debian stable, my swap lines in
> > /etc/fstab look like this:
> > <device>  none  swap
>
> Hmm, I'm not sure whether strictly speaking it's allowed to skip the
> 4th field.
> The manpage explicitly documents so for the 5th and the 6th, but not
> for the 4th.
>
> So it's questionable if all possible tools which may parse fstab really
> deal with that gracefully.
> Plus users might be confused and expect 6 fields.

My thought process is as follows:
Field 4 is for mount options. This is just the same as providing
options to the 'mount' command issued at the command line.
And it is ok to use the 'mount' command without options.

Regarding omitting 'sw', I'm not seeing any problem.
This might be a good starting point to investigate whether
anything uses it:
  https://codesearch.debian.net/search?q=FSTAB_SW&literal=1


Reply to: