2020-08-12 11:30:38 +02:00
|
|
|
commit 5c3b4221dafdc4b701495d85a5a563bd428fe5ec
|
2020-08-10 11:28:19 +02:00
|
|
|
Author: Ignaz Forster <iforster@suse.com>
|
2020-08-12 11:30:38 +02:00
|
|
|
Date: Mon Aug 10 23:47:43 2020 +0200
|
2020-08-10 16:49:47 +02:00
|
|
|
References: (gh#coreos/ignition#1069)
|
|
|
|
Upstream: Submitted
|
2020-08-10 11:28:19 +02:00
|
|
|
|
|
|
|
Install Dracut modules with correct permissions
|
|
|
|
|
|
|
|
diff --git a/Makefile b/Makefile
|
2020-08-12 11:30:38 +02:00
|
|
|
index 932b9c7f..fac2218d 100644
|
2020-08-10 11:28:19 +02:00
|
|
|
--- a/Makefile
|
|
|
|
+++ b/Makefile
|
2020-08-12 11:30:38 +02:00
|
|
|
@@ -18,9 +18,10 @@ all:
|
2020-08-10 11:28:19 +02:00
|
|
|
install: all
|
2020-08-12 11:30:38 +02:00
|
|
|
for x in dracut/*; do \
|
|
|
|
bn=$$(basename $$x); \
|
2020-08-10 11:28:19 +02:00
|
|
|
- install -D -t $(DESTDIR)/usr/lib/dracut/modules.d/$${bn} $$x/*; \
|
2020-08-12 11:30:38 +02:00
|
|
|
+ install -m 0644 -D -t $(DESTDIR)/usr/lib/dracut/modules.d/$${bn} $$x/*; \
|
2020-08-10 11:28:19 +02:00
|
|
|
done
|
|
|
|
- install -D -t $(DESTDIR)/usr/lib/systemd/system systemd/*
|
2020-08-12 11:30:38 +02:00
|
|
|
+ chmod a+x $(DESTDIR)/usr/lib/dracut/modules.d/*/*.sh $(DESTDIR)/usr/lib/dracut/modules.d/*/*-generator
|
2020-08-10 11:28:19 +02:00
|
|
|
+ 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
|
|
|
|
|