SHA256
1
0
forked from pool/ignition
ignition/0001-fix-install-permissions.patch
Ignaz Forster b875a04b84 Add upstream bug references and patch information
- 0001-fix-install-permissions.patch: Fix permissions of installed files
- 0003-fix-i386-build.patch: Fix build on 32 Bit x86 machines

OBS-URL: https://build.opensuse.org/package/show/devel:kubic:ignition/ignition?expand=0&rev=52
2020-08-10 14:49:47 +00:00

35 lines
1.2 KiB
Diff

commit 2ff83c70c46a22920aa9d5d0e58bbc71a62184ef
Author: Ignaz Forster <iforster@suse.com>
Date: Wed Jul 29 09:20:05 2020 +0200
References: (gh#coreos/ignition#1069)
Upstream: Submitted
Install Dracut modules with correct permissions
diff --git a/Makefile b/Makefile
index 29e52840..35b0deda 100644
--- a/Makefile
+++ b/Makefile
@@ -14,11 +14,17 @@ all:
.PHONY: install
install: all
- for x in dracut/*; do \
- bn=$$(basename $$x); \
- install -D -t $(DESTDIR)/usr/lib/dracut/modules.d/$${bn} $$x/*; \
+ for x in dracut/*/*.service dracut/*/*.target dracut/*/*.conf dracut/*/*.rules; do \
+ bn=$$(dirname $$x); \
+ bn=$$(basename $$bn); \
+ install -m 0644 -D -t $(DESTDIR)/usr/lib/dracut/modules.d/$${bn} $$x; \
done
- install -D -t $(DESTDIR)/usr/lib/systemd/system systemd/*
+ for x in dracut/*/*.sh dracut/*/*-generator; do \
+ bn=$$(dirname $$x); \
+ bn=$$(basename $$bn); \
+ install -m 0755 -D -t $(DESTDIR)/usr/lib/dracut/modules.d/$${bn} $$x; \
+ done
+ install -m 0644 -D -t $(DESTDIR)/usr/lib/systemd/system systemd/*
install -m 0755 -D -t $(DESTDIR)/usr/lib/dracut/modules.d/30ignition bin/$(GOARCH)/ignition
install -m 0755 -D -t $(DESTDIR)/usr/bin bin/$(GOARCH)/ignition-validate