Skip to content

Commit 04922d1

Browse files
committed
Makefile: Override owner of files in cpio archive
In the typical scenario where the bootrr cpio archive is concatenated onto some ramdisk, attributes of this cpio archive will overwrite those previously extracted. When used in combination with a ramdisk with systemd, this results in many services failing to start, because the namespaced services does not have permission to open e.g. / Fix this my overriding the owner and group. Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 48ac2b0 commit 04922d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ install: $(all-install)
3737
CPIO := $(PWD)/$(CPIONAME).cpio
3838

3939
$(CPIO): $(all-install)
40-
@cd $(DESTDIR) && find ./$(prefix) | cpio -o -H newc > $(CPIO)
40+
@cd $(DESTDIR) && find ./$(prefix) | cpio -o -H newc -R +0:+0 > $(CPIO)
4141

4242
%.cpio.gz: %.cpio
4343
@gzip < $< > $@

0 commit comments

Comments
 (0)