emacs-bug-tracker
[Top][All Lists]
Advanced

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

bug#37977: closed (Mount options ignored for root file system)


From: GNU bug Tracking System
Subject: bug#37977: closed (Mount options ignored for root file system)
Date: Mon, 18 Nov 2019 10:33:02 +0000

Your message dated Mon, 18 Nov 2019 11:32:16 +0100
with message-id <address@hidden>
and subject line Re: bug#37977: Mount options ignored for root file system
has caused the debbugs.gnu.org bug report #37977,
regarding Mount options ignored for root file system
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden.)


-- 
37977: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=37977
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: Mount options ignored for root file system Date: Tue, 29 Oct 2019 11:22:39 +0100 User-agent: mu4e 1.2.0; emacs 26.3
The filesystem options declared for the root file system are apparently
ignored. This happens for a btrfs root filesystem on a LUKS volume.


Exerpt from '/etc/config.scm":

--8<---------------cut here---------------start------------->8---
(mapped-devices
  (list (mapped-device
          (source
            (uuid "ee90b2aa-97e8-4ae5-ac72-9bf9058cc949"))
          (target "cryptroot")
          (type luks-device-mapping))
        (mapped-device
          (source
            (uuid "ec9cd327-0370-4e20-baa4-254d03b1901e"))
          (target "cryptguillaume")
          (type luks-device-mapping))))
(file-systems
  (cons* (file-system
           (mount-point "/")
           (device "/dev/mapper/cryptroot")
           (type "btrfs")
           (options "autodefrag,compress=lzo")
           (dependencies mapped-devices))
         (file-system
           (mount-point "/home/guillaume")
           (device "/dev/mapper/cryptguillaume")
           (type "btrfs")
           (options "autodefrag,compress=lzo")
           (dependencies mapped-devices))
         %base-file-systems))
--8<---------------cut here---------------end--------------->8---


Exerpt from '/etc/fstab':

--8<---------------cut here---------------start------------->8---
/dev/mapper/cryptroot / btrfs autodefrag,compress=lzo   
/dev/mapper/cryptguillaume /home/guillaume btrfs autodefrag,compress=lzo
--8<---------------cut here---------------end--------------->8---


Exerpt from '/etc/mtab':

--8<---------------cut here---------------start------------->8---
/dev/mapper/cryptroot / btrfs
  rw,relatime,ssd,space_cache,subvolid=5,subvol=/
  0 0

/dev/mapper/cryptguillaume /home/guillaume btrfs
  rw,relatime,compress=lzo,ssd,space_cache,autodefrag,subvolid=5,subvol=/
  0 0

/dev/mapper/cryptroot /gnu/store btrfs
  ro,relatime,ssd,space_cache,subvolid=5,subvol=/gnu/store
  0 0
--8<---------------cut here---------------end--------------->8---

Here we see that the options 'autodefrag' and 'compress=lzo' have
disappeared on the root filesystem. Maybe it has something to do with
the new '/gnu/store' subvolume that appeared?



--- End Message ---
--- Begin Message --- Subject: Re: bug#37977: Mount options ignored for root file system Date: Mon, 18 Nov 2019 11:32:16 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
Hello Guillaume,

Guillaume Le Vaillant <address@hidden> skribis:

> The attached patch adds an 'options' parameter to
> 'mount-root-file-system' and makes 'boot-system' use it with the
> content of the 'options' field of the <file-system> object for "/".
> 
> It's not exactly the solution you described (adding a keyword argument
> to 'boot-system'), but I think it should work. What do you think?

It looks great to me.

> From 3597f0fda6f6a13bf1fdab0fcde4f72ece688d93 Mon Sep 17 00:00:00 2001
> From: Guillaume Le Vaillant <address@hidden>
> Date: Sun, 17 Nov 2019 14:15:21 +0100
> Subject: [PATCH] linux-boot: Don't ignore options when mounting root file
>  system.
>
> * gnu/build/linux-boot.scm (mount-root-file-system): Add the 'options'
>   keyword argument and use it when mounting the root file system.
>   (boot-system): Pass the root file system options to
>   'mount-root-file-system'.

Applied, thanks!

Ludo’.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]