[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/10: gnu: linux-boot: Ensure volatile root is mounted read-only.
From: |
guix-commits |
Subject: |
02/10: gnu: linux-boot: Ensure volatile root is mounted read-only. |
Date: |
Fri, 14 Feb 2020 10:55:36 -0500 (EST) |
apteryx pushed a commit to branch allow-booting-from-btrfs-subvolume
in repository guix.
commit 97d8a635eba34c7cf0708e99bf77ef9bad1344bf
Author: Maxim Cournoyer <address@hidden>
AuthorDate: Tue Feb 11 12:57:29 2020 -0500
gnu: linux-boot: Ensure volatile root is mounted read-only.
* gnu/build/linux-boot.scm (mount-root-file-system): Ensure MS_RDONLY is
present among the root file system flags when VOLATILE-ROOT? is #t.
---
gnu/build/linux-boot.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gnu/build/linux-boot.scm b/gnu/build/linux-boot.scm
index 3d40a7d..4fb711b 100644
--- a/gnu/build/linux-boot.scm
+++ b/gnu/build/linux-boot.scm
@@ -362,12 +362,12 @@ the last argument of `mknod'."
"Mount the root file system of type TYPE at device ROOT. If VOLATILE-ROOT? is
true, mount ROOT read-only and make it an overlay with a writable tmpfs using
the kernel built-in overlayfs. FLAGS and OPTIONS indicates the options to use
-to mount ROOT."
+to mount ROOT, and behave the same as for the `mount' procedure."
(if volatile-root?
(begin
(mkdir-p "/real-root")
- (mount root "/real-root" type MS_RDONLY options)
+ (mount root "/real-root" type (logior MS_RDONLY flags) options)
(mkdir-p "/rw-root")
(mount "none" "/rw-root" "tmpfs")
- branch allow-booting-from-btrfs-subvolume created (now 6162b56), guix-commits, 2020/02/14
- 01/10: gnu: tests: Reduce the time required to run the system tests., guix-commits, 2020/02/14
- 02/10: gnu: linux-boot: Ensure volatile root is mounted read-only.,
guix-commits <=
- 03/10: file-systems: Add a 'file-system-device->string' procedure., guix-commits, 2020/02/14
- 06/10: gnu: linux-boot: Honor the "--root-options" kernel argument., guix-commits, 2020/02/14
- 09/10: scripts: system: Do not validate network file systems., guix-commits, 2020/02/14
- 07/10: gnu: linux-boot: Filter out file system independent options., guix-commits, 2020/02/14
- 04/10: gnu: linux-boot: Refactor boot-system., guix-commits, 2020/02/14
- 05/10: file-systems: Represent the file system options as an alist., guix-commits, 2020/02/14
- 10/10: gnu: Add fbset., guix-commits, 2020/02/14
- 08/10: bootloader: grub: Allow booting from a Btrfs subvolume., guix-commits, 2020/02/14