diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,6 +1,6 @@ all: initramfs.img -initramfs.img: gen_init_cpio dropbear_ed25519_host_key +initramfs.img: gen_init_cpio dropbear_ed25519_host_key modules.sh ./make gen_init_cpio: gen_init_cpio.c @@ -9,6 +9,10 @@ gen_init_cpio: gen_init_cpio.c dropbear_ed25519_host_key: dropbearkey -t ed25519 -f $@ +modules.sh: modules + printf '%s\n' '#!/bin/sh' 'set -e' > $@ + xargs -a $< -L1 -r modprobe --show-depends >> $@ + install: initramfs.img rm -f /boot/initramfs.img.old /boot/initramfs.img.new cp initramfs.img /boot/initramfs.img.new || rm -f /boot/initramfs.img.new |