diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2018-03-29 04:08:02 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2018-03-29 04:08:02 +0000 |
commit | d034140299dd7fbe13e7ce9633ab18bd818c1c1b (patch) | |
tree | 289b38030bdb4a274a123b95e2b5cab53b2f23d7 /sub/initramfs/Makefile | |
parent | 2a4c22df58a22bb765145b7c7e75b53645a96f3c (diff) | |
download | lh-bootstrap-d034140299dd7fbe13e7ce9633ab18bd818c1c1b.tar.xz |
Change initramfs to accommodate new mdevd
Diffstat (limited to 'sub/initramfs/Makefile')
-rw-r--r-- | sub/initramfs/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sub/initramfs/Makefile b/sub/initramfs/Makefile index f175735..debab53 100644 --- a/sub/initramfs/Makefile +++ b/sub/initramfs/Makefile @@ -1,11 +1,17 @@ # The initramfs -INITRAMFS_SKARNET_LIST := cd execlineb export if redirfd s6-echo s6-mount mdevd-coldplug mdevd +INITRAMFS_SKARNET_LIST := background cd execlineb export fdclose fdmove forstdin if importas piperw pipeline redirfd s6-echo s6-mount mdevd-coldplug mdevd -$(OUTPUT)/tmp/.lh_initramfs_installed: $(OUTPUT)/tmp/.lh_layout_copied $(OUTPUT)/build-host/.lh_skarnet_installed +$(OUTPUT)/tmp/.lh_initramfs_installed: $(OUTPUT)/tmp/.lh_layout_copied $(OUTPUT)/build-host/.lh_skarnet_installed $(OUTPUT)/initramfs/bin/kill for i in $(INITRAMFS_SKARNET_LIST) ; do cp -f -L $(OUTPUT)/rootfs/command/$$i $(OUTPUT)/initramfs/command/$$i ; done exec setuidgid $(NORMALUSER) touch $@ +$(OUTPUT)/initramfs/bin/kill: $(OUTPUT)/tmp/kill + exec cp -f $< $@ + +$(OUTPUT)/tmp/kill: $(OUTPUT)/build-host/.lh_skarnet_installed sub/initramfs/kill.c $(OUTPUT)/build-host/bin/muslgcc + exec setuidgid $(NORMALUSER) $(OUTPUT)/build-host/bin/muslgcc -O2 -pipe -s -static -fomit-frame-pointer -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -Wa,--noexecstack -fno-stack-protector -ffunction-sections -fdata-sections -Wl,--sort-section=alignment -Wl,--sort-common -Wl,--gc-sections -o $@ -I$(OUTPUT)/rootfs/package/prog/skalibs/include -L$(OUTPUT)/rootfs/package/prog/skalibs/library sub/initramfs/kill.c -lskarnet + $(OUTPUT)/initramfs.img.gz: $(OUTPUT)/tmp/.lh_initramfs_installed cd $(OUTPUT)/initramfs && find . | cpio -o --format=newc > ../initramfs.img && cd .. && rm -f $@ && gzip -9 initramfs.img |