Mailinglist Archive: opensuse-kernel (43 mails)

< Previous Next >
[opensuse-kernel] [PATCH] rpm/kernel-obs-build.spec.in: Strip date from initrd (boo#1047218)
without this patch, there were such diffs in build-compare:
+++ new//.build.initrd.kvm.cpio.extract.6630.6643/etc/shadow
@@ -1 +1 @@
-root:*:18110::::::
+root:*:23621::::::

---

If this patch is not good enough, there is also
https://github.com/shadow-maint/shadow/pull/146
part of Factory's shadow-4.7 but it seems that it is the build host's
shadow version used or SOURCE_DATE_EPOCH is not set in that context.
---
rpm/kernel-obs-build.spec.in | 1 +
1 file changed, 1 insertion(+)

diff --git a/rpm/kernel-obs-build.spec.in b/rpm/kernel-obs-build.spec.in
index 91ad608e44..262113fe1b 100644
--- a/rpm/kernel-obs-build.spec.in
+++ b/rpm/kernel-obs-build.spec.in
@@ -80,6 +80,7 @@ loaded during build when installing the kernel package.
%prep

%build
+sed -i 's/^root:\*:[1-9][0-9]*::::::/root:*:42::::::/' /etc/shadow # strip
date from dracut-generated initrd to make build reproducible (boo#1047218)
mkdir -p /usr/lib/dracut/modules.d/80obs
cat > /usr/lib/dracut/modules.d/80obs/module-setup.sh <<EOF
#!/bin/bash
--
2.16.4

--
To unsubscribe, e-mail: opensuse-kernel+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-kernel+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups