From: Guillaume Le Vaillant <glv@posteo.net>
To: 37977@debbugs.gnu.org
Subject: bug#37977: Mount options ignored for root file system
Date: Thu, 07 Nov 2019 19:28:10 +0100 [thread overview]
Message-ID: <87eeyjils5.fsf@yamatai> (raw)
In-Reply-To: <87pnif6ec0.fsf@yamatai>
Guillaume Le Vaillant skribis:
> The filesystem options declared for the root file system are apparently
> ignored. This happens for a btrfs root filesystem on a LUKS volume.
This also happens on a basic btrfs root file system (without LUKS).
I tried adding "rootflags=defaults,autodefrag,compress=lzo" in kernel
arguments, but it didn't have any effect.
I then tried adding a one-shot service that remounts the root file
system, and it works, the options declared in '/etc/fstab' are taken
into consideration. This service just does 'mount -o remount /'.
--8<---------------cut here---------------start------------->8---
(define remount-rootfs-service-type
(shepherd-service-type
'remount-rootfs
(const
(shepherd-service
(documentation "Remount rootfs with correct options.")
(requirement '(udev))
(provision '(remount-rootfs))
(one-shot? #t)
(start #~(lambda _
(invoke (string-append #$util-linux "/bin/mount")
"-o" "remount" "/")))))))
(operating-system
...
(services
(cons* ...
(service remount-rootfs-service-type #f)
...)))
--8<---------------cut here---------------end--------------->8---
I saw that the 'start' function of 'root-file-system-service-type'
doesn't do anything. Is it on purpose? Or could we make it remount the
root filesystem?
next prev parent reply other threads:[~2019-11-07 18:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-29 10:22 bug#37977: Mount options ignored for root file system Guillaume Le Vaillant
2019-11-07 18:28 ` Guillaume Le Vaillant [this message]
2019-11-17 10:43 ` Ludovic Courtès
2019-11-17 14:17 ` Guillaume Le Vaillant
2019-11-18 10:32 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87eeyjils5.fsf@yamatai \
--to=glv@posteo.net \
--cc=37977@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.