Commit Graph

34 Commits

Author SHA1 Message Date
xaki23
b5170f87d0
update WireGuard from 20191212 to 20191219 2019-12-19 15:14:17 +01:00
xaki23
9f28598dd9
update WireGuard from 20191127 to 20191212 2019-12-13 15:19:36 +01:00
Marek Marczykowski-Górecki
1554c07dc3
Add BR: python3-devel for pathfix.py script 2019-12-08 12:39:06 +01:00
Marek Marczykowski-Górecki
f841402153
Merge remote-tracking branch 'origin/pr/128'
* origin/pr/128:
  update WireGuard from 20191012 to 20191127
2019-12-05 23:41:03 +01:00
Marek Marczykowski-Górecki
8aca753f93
(re-)sign all the modules after processing debuginfo
Extracting debuginfo strips away modules signatures (which would be
invalid anyway, as the module file is modified). Include the code for
signing modules again, taken from Fedora's kernel.spec.

Fixes QubesOS/qubes-issues#5497
2019-12-05 23:13:29 +01:00
xaki23
a5e7326872
update WireGuard from 20191012 to 20191127 2019-12-02 09:47:44 +01:00
Frédéric Pierret (fepitre)
fb9b485ccf
spec: mangle /usr/bin/python shebangs to /usr/bin/python3
- From Fedora spec file
- Only for dom0 >= Fedora 31
2019-11-24 11:18:15 +01:00
xaki23
cddf334f05
update WireGuard from 20190913 to 20191012 2019-11-05 09:29:07 +01:00
Marek Marczykowski-Górecki
17b7186716
Make makefile and spec compatible with rc versions
There are a couple of changes needed:
1. Package version cannot contain '-' (5.4-rc5-1.pvops.qubes is an
   invalid rpm version). Follow Fedora upstream idea of moving 'rc' tag
   into package release field, as 0.rcXX.(original rel). This way, such
   package will be 'older' than the final release (with just release
   number there - 1 in most cases). The alternative idea is using
   '~rcXX' in the package version, but ~ couldn't be part of a kernel
   version reported by the kernel itself and also qubes-dom0-update
   refuses ~ in a package filename.
2. Adjust kernel version to match the above - specifically clear
   EXTRAVERSION (-rcXX suffix), as it will be added back as package
   release (CONFIG_LOCALVERSION).
3. rc tarballs are available only as a git-generated .tar.gz (not
   .tar.xz) and there are no matching detached signatures. While it
   would be possible to download a signed tag via git, scripting that
   would be overly complex as for the task rarely used. Leave this
   verification as a manual step and require sha512 checksum to be
   committed into repository.
   To build an archive matching upstream one, out of a signed tag, use
   command like this:
   git archive --prefix=linux-5.4-rc5/ --output=../linux-5.4-rc5.tar.gz v5.4-rc5

While at it, remove obsolete BUILD_FLAVOR variable.
2019-10-30 17:48:44 +01:00
xaki23
383118a889
change WireGuard version from 20190702 to 20190913 2019-09-24 21:58:07 +02:00
Marek Marczykowski-Górecki
1d50db3f47
rpm: set default kernel version based on package flavor
If default kernel was from kernel-latest, update default kernel property
on kernel-latest update (only). Same for other kernel package flavor.

Suggested by @hexagonrecursion
Fixes QubesOS/qubes-issues#5309
2019-09-15 19:35:35 +02:00
Frédéric Pierret (fepitre)
d9f5315ada Drop AFTER_LINK patch 2019-07-27 23:33:44 +02:00
Frédéric Pierret (fepitre)
9ec407116a
Update WireGuard to 0.0.20190702 2019-07-27 14:34:03 +02:00
Marek Marczykowski-Górecki
e3a342006f
Disable GCC plugins for out of tree kernel modules
kernel modules built in VM often use different gcc version, which makes
provided gcc plugins incompatible. Since rebuilding those plugins may
not be straight forward (extra gcc headers needed, possibly kernel
config changes needed if gcc version differs significantly), disable
them for out of tree modules.

Fixes QubesOS/qubes-issues#2844
2019-06-06 01:43:20 +02:00
xaki23
790685154f
build wireguard module (after gpg check) 2019-05-30 01:19:48 +02:00
Marek Marczykowski-Górecki
c4c75cb41c
Fix setting default kernel for VM
(cherry picked from commit 02beadc381)
2019-05-15 22:00:28 +02:00
Marek Marczykowski-Górecki
a5a4ae6735
Support a build without u2mfn module
In R4.1 u2mfn module isn't needed anymore.

QubesOS/qubes-issues#4280
2019-04-07 22:58:05 +02:00
Marek Marczykowski-Górecki
1fe8359f05
rpm: one more typo fix 2019-03-17 19:57:43 +01:00
Marek Marczykowski-Górecki
50b7baa8be
rpm: typo fix 2019-03-16 00:06:26 +01:00
Marek Marczykowski-Górecki
fd14ac930c
rpm: build modules.img at package build time only on new system
Older mkfs.ext3 doesn't have -d option.
This in practice revert eb4c9ed "Build modules.img at module build time"
on older systems.
2019-03-16 00:04:36 +01:00
Marek Marczykowski-Górecki
c2a2c69375
Merge remote-tracking branch 'origin/pr/27'
* origin/pr/27:
  plymouth: ignore serial console hvc0 in UEFI
  Ensure the rebuild of grub.cfg with plymouth.ignore-serial-consoles
  plymouth-ignore-serial-consoles: adjusting the method from marmarek suggestion
  plymouth: ignore serial console hvc0
  Update to kernel-4.20.14

Fixes QubesOS/qubes-issues#3849
2019-03-15 16:31:21 +01:00
Frédéric Pierret (fepitre)
61b9336d70
plymouth: ignore serial console hvc0 in UEFI 2019-03-15 14:41:17 +01:00
Frédéric Pierret (fepitre)
a44160b1bb
Ensure the rebuild of grub.cfg with plymouth.ignore-serial-consoles 2019-03-15 11:13:34 +01:00
Frédéric Pierret (fepitre)
e69b02bec8
plymouth-ignore-serial-consoles: adjusting the method from marmarek suggestion
af674124d6
2019-03-10 14:24:38 +01:00
Frédéric Pierret (fepitre)
af674124d6
plymouth: ignore serial console hvc0
It fixes splash screen issue QubesOS/qubes-issues#3849
2019-03-09 18:40:30 +01:00
Marek Marczykowski-Górecki
9cfa9a92af
Include default-kernelopts-common.txt with kernel-specific default options
Default kernel options like root= or plymouth.enable are specific to the
kernel package (and initrd bundled with it). Start migrating away from
built-in defaults in core-admin by adding a file in kernel package
containing those options.

Also, if new enough initramfs is included, add xen_scrub_pages=0 which
will speed up the domain start.

QubesOS/qubes-issues#4839
QubesOS/qubes-issues#4736
2019-02-27 02:57:40 +01:00
Marek Marczykowski-Górecki
43235dd862
Improve reproducibility of initramfs
Use SOURCE_DATE_EPOCH variable
2019-02-27 02:57:40 +01:00
Marek Marczykowski-Górecki
eb4c9ed392
Build modules.img at module build time
This will make package installation a little faster, more reproducible
(mkfs.ext3 -d is easier to make/replace with reproducible tool than
kernel driver), and also make disk space estimation more accurate.
2019-02-27 02:57:40 +01:00
Frédéric Pierret (fepitre)
c168934b2f
Update to kernel-4.20.3 and config from Fedora's config 4.19.15-300 2019-01-20 14:00:06 +01:00
Frédéric Pierret (fepitre)
1d6df3590a
Update to kernel-4.19.15: new LTS kernel 2019-01-13 22:51:36 +01:00
Marek Marczykowski-Górecki
f1c70a59b1
rpm: fix 'else if' syntax
%elif doesn't work on fc23
2018-12-27 03:00:14 +01:00
Frédéric Pierret (fepitre)
9364d55427 Fix gcc dependency and add gcc-c++ for building GCC hardened plugins 2018-12-24 00:21:08 +01:00
Frédéric Pierret (fepitre)
63a357e7ce
Handle undefined name_suffix 2018-12-22 15:54:59 +01:00
Frédéric Pierret
f71aebfe7f
spec.in: handle src.rpm and mock build 2018-11-18 23:45:41 +01:00