Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/pr/522'
Browse files Browse the repository at this point in the history
* origin/pr/522:
  Disable genfs on R4.0
  Test building for R4.0 too
  • Loading branch information
marmarek committed Jan 11, 2022
2 parents 3825161 + 5be99b7 commit 0cb1cf5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ include:
file: '/r4.1/gitlab-base.yml'
- project: 'QubesOS/qubes-continuous-integration'
file: '/r4.1/gitlab-dom0.yml'
- project: 'QubesOS/qubes-continuous-integration'
file: '/r4.0/gitlab-dom0.yml'

default:
tags:
Expand Down
15 changes: 14 additions & 1 deletion kernel.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@ BuildRequires: elfutils-libelf-devel
BuildRequires: bison
BuildRequires: flex
BuildRequires: e2fsprogs
%if 0%{?fedora} >= 32
# to make the filesystem
BuildRequires: e2fsprogs-devel
%endif

# gcc with support for BTI mitigation
%if 0%{?fedora} == 25
Expand Down Expand Up @@ -215,7 +217,9 @@ mv %_builddir/$(basename %{SOURCE6} .tar) %_builddir/macbook12-spi-driver
%build

set -e
%if 0%{?fedora} >= 32
make -C %{_sourcedir} -f genfs-makefile GENFS=%{_builddir}/genfs
%endif

cd %kernel_build_dir

Expand Down Expand Up @@ -506,14 +510,23 @@ cp -a %buildroot/%src_install_dir %buildroot%vm_install_dir/modules/%kernelrelea
# stubdomain
cp %buildroot%vm_install_dir/vmlinuz %buildroot%vm_install_dir/modules/
cp %buildroot%vm_install_dir/initramfs %buildroot%vm_install_dir/modules/
PATH=/usr/sbin:/sbin:$PATH mkfs.ext3 -F -Enum_backup_sb=0,hash_seed=dcee2318-92bd-47a5-a15d-e79d1412cdce,root_owner=0:0,no_copy_xattrs \

%if 0%{?fedora} >= 32
flags=,no_copy_xattrs,hash_seed=dcee2318-92bd-47a5-a15d-e79d1412cdce
%else
flags=
%endif

PATH=/usr/sbin:/sbin:$PATH mkfs.ext3 -F "-Enum_backup_sb=0,root_owner=0:0$flags" \
-d %buildroot%vm_install_dir/modules %buildroot%vm_install_dir/modules.img 512M

%if 0%{?fedora} >= 32
SOURCE_DATE_EPOCH=$SOURCE_DATE_EPOCH %{_builddir}/genfs %buildroot%vm_install_dir/modules.img %{VERSION}-%{RELEASE}.%{_arch} immutable=yes
e2fsck -pDfE optimize_extents -- %buildroot%vm_install_dir/modules.img
resize2fs -M -- %buildroot%vm_install_dir/modules.img
e2fsck -pDfE optimize_extents -- %buildroot%vm_install_dir/modules.img
SOURCE_DATE_EPOCH=$SOURCE_DATE_EPOCH %{_builddir}/genfs %buildroot%vm_install_dir/modules.img
%endif

rm -rf %buildroot%vm_install_dir/modules

Expand Down

0 comments on commit 0cb1cf5

Please sign in to comment.