all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* btrfs mount options not used
@ 2019-06-20 19:44 Jack Hill
  2019-06-20 19:54 ` Jack Hill
  0 siblings, 1 reply; 2+ messages in thread
From: Jack Hill @ 2019-06-20 19:44 UTC (permalink / raw)
  To: help-guix

Hi Guix,

I'm trying to mount my btrfs root filesystem with the compress=lzo option. 
Following Section 8.3 or the manual (System Configuration → File Systems, 
I added (options "compress=lzo") to my file system definition. However, 
when I reconfigure and reboot, it does not appear that the file system is 
mounted with this option. When I mount the filesystem manually with `mount 
-o compress=lzo …` it works correctly. Full operating system config below. 
What am I missing?

Best,
Jack

from /proc/mounts:
```
/dev/nvme0n1p2 / btrfs rw,relatime,ssd,space_cache,subvolid=5,subvol=/ 0 0
/dev/nvme0n1p1 /boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 0
```

config.scm:
```
;; This is an operating system configuration template
;; for a "desktop" setup with GNOME and Xfce where the
;; root partition is encrypted with LUKS.

(use-modules (gnu)
 	     (gnu system nss)
 	     (gnu services ssh)
 	     (gnu services xorg)
 	     (guix-at-duke services endpoint-management))
(use-service-modules desktop)
(use-package-modules certs fonts gnome linux security-token)

(operating-system
  (host-name "lib-its13")
  (timezone "America/New_York")
  (locale "en_US.utf8")

  ;; Use the UEFI variant of GRUB with the EFI System
  ;; Partition mounted on /boot/efi.
  (bootloader (bootloader-configuration
 	      (bootloader grub-efi-bootloader)
 	      (target "/boot/efi")))

  (file-systems (cons* (file-system
 		       (device (file-system-label "lib-its13_nvme_btrfs"))
 		       (mount-point "/")
 		       (type "btrfs")
 		       (flags '(no-atime))
 		       (options "compress=lzo"))
 		      (file-system
 		       (device (file-system-label "EFI"))
 		       (mount-point "/boot/efi")
 		       (type "vfat"))
                       %base-file-systems))

  (swap-devices (list "/root/swap"))

  (users (cons (user-account
 	       (name "install")
 	       (comment "installation user")
 	       (group "users")
 	       (supplementary-groups '("wheel" "netdev"
 				       "audio" "video"))
 	       (home-directory "/home/install"))
 	      %base-user-accounts))

  ;; This is where we specify system-wide packages.
  (packages (cons* nss-certs         ;for HTTPS access
 		  btrfs-progs
 		  gvfs              ;for user mounts
 		  font-google-noto  ;(full) unicode font
 		  %base-packages))

  ;; Add GNOME and/or Xfce---we can choose at the log-in
  ;; screen with F1.  Use the "desktop" services, which
  ;; include the X11 log-in service, networking with
  ;; NetworkManager, and more.
  (services (cons* (service openssh-service-type (openssh-configuration))
 		  (service gnome-desktop-service-type)
 		  (service planisphere-report-service-type)
 		  (simple-service 'custom-udev-rules udev-service-type (list libu2f-host))
 		  %desktop-services))

  ;; Allow resolution of '.local' host names with mDNS.
  (name-service-switch %mdns-host-lookup-nss))
```

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: btrfs mount options not used
  2019-06-20 19:44 btrfs mount options not used Jack Hill
@ 2019-06-20 19:54 ` Jack Hill
  0 siblings, 0 replies; 2+ messages in thread
From: Jack Hill @ 2019-06-20 19:54 UTC (permalink / raw)
  To: help-guix

On Thu, 20 Jun 2019, Jack Hill wrote:

> Hi Guix,
>
> I'm trying to mount my btrfs root filesystem with the compress=lzo option. 
> Following Section 8.3 or the manual (System Configuration → File Systems, I 
> added (options "compress=lzo") to my file system definition. However, when I 
> reconfigure and reboot, it does not appear that the file system is mounted 
> with this option. When I mount the filesystem manually with `mount -o 
> compress=lzo …` it works correctly. Full operating system config below. What 
> am I missing?
>
> Best,
> Jack
>
> from /proc/mounts:
> ```
> /dev/nvme0n1p2 / btrfs rw,relatime,ssd,space_cache,subvolid=5,subvol=/ 0 0
> /dev/nvme0n1p1 /boot/efi vfat 
> rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 
> 0 0
> ```

I forgot to mention: the gerated /etc/fstab looks correct


```
LABEL=lib-its13_nvme_btrfs	/	btrfs	compress=lzo 
LABEL=EFI	/boot/efi	vfat	defaults 
```

So that made me think that maybe the initramfs was the source of the 
problem, but that too looks correct. /gnu/store/<hash>-init in the 
initramfs looks fine as well:

```
(begin (use-modules (gnu build linux-boot)
 		    (gnu system file-systems)
 		    (guix build utils)
 		    (guix build bournish)
 		    (srfi srfi-26)
 		    ((gnu build file-systems) #:select (find-partition-by-luks-uuid))
 		    (rnrs bytevectors))
        (with-output-to-port (%make-void-port "w")
 	 (lambda ()
 	   (set-path-environment-variable "PATH"
 					  (quote ("bin" "sbin"))
 					  (quote ("/gnu/store/cxka7q519j6x26dqd2dv47vccbj7vmwd-btrfs-progs-static-5.1")))))
        (boot-system #:mounts (map spec->file-system
 				  (quote (((file-system-label "lib-its13_nvme_btrfs") "/"
 					   "btrfs"
 					   (no-atime)
 					   "compress=lzo"
 					   #t))))#:pre-mount
 					   (lambda ()
 					     (and))
 					   #:linux-modules (quote ("ahci" "usb-storage" "uas" "usbhid" "hid-generic"
 								   "hid-apple" "dm-crypt" "xts" "serpent_generic"
 								   "wp512" "nls_iso8859-1" "pata_acpi" "pata_atiixp"
 								   "isci" "virtio_pci" "virtio_balloon" "virtio_blk"
 								   "virtio_net" "virtio_console" "virtio-rng"
 								   "btrfs"))#:linux-module-directory
 								   (quote "/gnu/store/2ayjrg59m7kkjsbjp3akqz4sr467dd8j-linux-modules")
 								   #:keymap-file #f#:qemu-guest-networking? #f#:volatile-root? (quote #f)#:on-error
 								   (quote debug)))
```

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-06-20 19:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-20 19:44 btrfs mount options not used Jack Hill
2019-06-20 19:54 ` Jack Hill

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.