Bug#1033630: debian-installer: should fstab swap entries use "sw" as option?
- To: 1033630@bugs.debian.org
- Cc: David <bouncingcats@gmail.com>
- Subject: Bug#1033630: debian-installer: should fstab swap entries use "sw" as option?
- From: Christoph Anton Mitterer <calestyo@scientia.org>
- Date: Thu, 06 Apr 2023 00:52:08 +0200
- Message-id: <[🔎] 02737f7f219727df503b3217bbdde84bdb596491.camel@scientia.org>
- Reply-to: Christoph Anton Mitterer <calestyo@scientia.org>, 1033630@bugs.debian.org
- In-reply-to: <b1fe257b84d29be939e579efd260f7d2e6202469.camel@scientia.org>
- References: <168004975512.37363.12273216500034164210.reportbug@heisenberg.scientia.org> <CAMPXz=orBHUPM7d6V7LDD7m2xFLe_NV77RZVXF24Jyej-OaavA@mail.gmail.com> <f703ec893e1692eb7b1bf5b6e505fa27dd35b932.camel@scientia.org> <CAMPXz=oYpTv+jeALG2uRHRC0P0heOGamsNV6yOuDM2Pk+HHGgQ@mail.gmail.com> <ff49f66da453a306880d046ff8c5cc496caf3093.camel@scientia.org> <CAMPXz=oqit5=_rA_i0q6zZ-STKWPvoD5M2G1=t1gyVoa5-19kw@mail.gmail.com> <fd7f9b4d70ba610433177923cfc2e963bec23776.camel@scientia.org> <CAMPXz=r71nFzrhdNeHz_9vwtOFZg4SF9CMbYORfjZmWne9KtYQ@mail.gmail.com> <168004975512.37363.12273216500034164210.reportbug@heisenberg.scientia.org> <011532780d8feadd95762b05b9dfd8c068a76f46.camel@scientia.org> <20230329134630.i4aujqd3rhelsnsk@mraw.org> <b1fe257b84d29be939e579efd260f7d2e6202469.camel@scientia.org> <168004975512.37363.12273216500034164210.reportbug@heisenberg.scientia.org>
Hey.
Just for the records and those who stumble over this and are interested
in the outcome.
upstream clarified fstab syntax in:
https://github.com/util-linux/util-linux/commit/43a6b183d8945cc91307f21adc8070254eb925b5
- whether the 4th field is mandatory is now in kind of a limbo... the
manpage says it's not for mount(8)/swapon(8) but implies that it
might be needed for other parsers
- it's further clarified what "defaults" actually means and that the
previously given "rw, suid, dev, exec, auto, nouser, and async" is
just the typical meaning for many filesystems.
So my conclusion from that would be that the cosmetically proper swap
entry would be any of:
<swap-device/file> none swap defaults 0 0
<swap-device/file> none swap defaults
<swap-device/file> none swap
(from which I'd think the first one is the one that most people will
likely find familiar)
unlike Debian's:
<swap-device/file> none swap sw 0 0
which works of course but uses the undocumented/legacy? "sw" option.
Since the bug was already rejected I think it's pointless to provide a
PR that switches from "sw" to "defaults".
Cheers,
Chris.
Reply to: