diff options
author | Alex Xu (Hello71) <alex_y_xu@yahoo.ca> | 2020-11-13 20:54:21 -0500 |
---|---|---|
committer | Alex Xu (Hello71) <alex_y_xu@yahoo.ca> | 2020-11-13 20:56:27 -0500 |
commit | 6084e986f8affc7045c6aa2043acb6cc86fea920 (patch) | |
tree | 7c9216970fbb8f86c1f075b4c58e7907ece83fef | |
parent | b57ad7f28b669c80faf2568fefc20cc8ca1083e2 (diff) | |
download | minitramfs-6084e986f8affc7045c6aa2043acb6cc86fea920.tar.xz minitramfs-6084e986f8affc7045c6aa2043acb6cc86fea920.zip |
use install -bS instead of rolling our own, drop POSIX claim
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | README | 2 |
2 files changed, 1 insertions, 5 deletions
@@ -25,9 +25,7 @@ modules.dep: modules modules.dep.ver /lib/modules/$(KERNVER)/modules.dep awk '!/^#/ { print $$1 }' modules | xargs modinfo -F filename -k $(KERNVER) | sed -e 's:^/lib/modules/$(KERNVER)/:^:' | grep -f - /lib/modules/$(KERNVER)/modules.dep > $@ install: initramfs.img - install -m644 initramfs.img /boot/initramfs.img.new - if [ -e /boot/initramfs.img ]; then mv /boot/initramfs.img /boot/initramfs.img.old; fi - mv /boot/initramfs.img.new /boot/initramfs.img + install -bS.old -m644 initramfs.img /boot/initramfs.img clean: rm -f initramfs.img initramfs.d gen_init_cpio modules.dep @@ -14,13 +14,11 @@ Features: - udev/mdev-free module loading - minimal runtime overhead - minimal code: 80 SLOC total (init + make + Makefile + unlock) -- pure POSIX shell + POSIX Makefile Drawbacks: - uses existing system tools - requires exact module list -- pure POSIX shell + POSIX Makefile Usage: |