#1 Enable grub2-mount
Opened 4 months ago by dcavalca. Modified 4 months ago
rpms/ dcavalca/grub2 grub2-mount  into  c8s

file modified
-1

@@ -343,7 +343,6 @@ 

  	--target=%{1}						\\\

  	--with-grubdir=%{name}					\\\

  	--program-transform-name=s,grub,%{name},		\\\

- 	--disable-grub-mount					\\\

  	--with-debug-timestamps					\\\

  	--enable-boot-time					\\\

  	--disable-werror || ( cat config.log ; exit 1 )		\

file modified
+3

@@ -39,6 +39,7 @@ 

  BuildRequires:	flex bison binutils python3-devel

  BuildRequires:	ncurses-devel xz-devel bzip2-devel

  BuildRequires:	freetype-devel libusb-devel

+ BuildRequires:	fuse-devel

  BuildRequires:	rpm-devel

  BuildRequires:	rpm-devel rpm-libs

  BuildRequires:	autoconf automake autogen device-mapper-devel

@@ -222,6 +223,7 @@ 

  # these have execstack, and break under selinux

  -b /usr/bin/grub2-script-check

  -b /usr/bin/grub2-mkrelpath

+ -b /usr/bin/grub2-mount

  -b /usr/bin/grub2-fstest

  -b /usr/sbin/grub2-bios-setup

  -b /usr/sbin/grub2-probe

@@ -376,6 +378,7 @@ 

  %{_sbindir}/%{name}-set*password

  %{_bindir}/%{name}-editenv

  %{_bindir}/%{name}-mkpasswd-pbkdf2

+ %{_bindir}/%{name}-mount

  

  %{_datadir}/man/man3/%{name}-get-kernel-settings*

  %{_datadir}/man/man8/%{name}-set-default*

This will enable CentOS Stream 8 users to read-only mount filesystems that grub can access that aren't supported by the kernel (e.g. btrfs). See https://pagure.io/fesco/issue/2617#comment-737129 for more context.

Metadata