X-Git-Url: http://gitweb/?a=blobdiff_plain;f=Makefile;h=82462b8a6bc22014488514a95bfa9c998749a3f1;hb=bb58a5ac38c5b80f90a67a96bcad85d13355e7df;hp=2cbc2bfa0d5ebf87a92d150e4524edad947ae813;hpb=1897554b5a2d34521662308e3555f8bb57d70938;p=initramfs.git diff --git a/Makefile b/Makefile index 2cbc2bf..82462b8 100644 --- a/Makefile +++ b/Makefile @@ -102,7 +102,7 @@ gen_init_cpio-distclean: gen_init_cpio-clean $(WORK)/mnt: mkdir -p $(WORK)/mnt -$(WORK)/initramfs.cpio.gz: check-root busybox dialog $(WORK)/mnt gen_init_cpio $(TOPDIR)/filesystem +$(WORK)/initramfs.cpio: check-root busybox dialog $(WORK)/mnt gen_init_cpio $(TOPDIR)/filesystem install -d -m 0755 $(WORK)/mnt/{mnt,media,etc,dev,sys,proc,lib,usr,var/{log,lock,run},tmp} mknod $(WORK)/mnt/dev/console c 5 1 && chmod 666 $(WORK)/mnt/dev/console mknod $(WORK)/mnt/dev/null c 1 3 && chmod 666 $(WORK)/mnt/dev/null @@ -123,12 +123,12 @@ $(WORK)/initramfs.cpio.gz: check-root busybox dialog $(WORK)/mnt gen_init_cpio $ install -v -m 0400 $(TOPDIR)/filesystem/shadow $(WORK)/mnt/etc install -v -m 0755 $(TOPDIR)/filesystem/rc $(WORK)/mnt/etc && \ install -v -m 0755 $(TOPDIR)/filesystem/{setup,setup-chroot,crux} $(WORK)/mnt/usr/bin && \ + ln -s bin/busybox $(WORK)/mnt/init /sbin/ldconfig -r $(WORK)/mnt - cd $(WORK)/mnt && find . | cpio -o -H newc > $(WORK)/initramfs.cpio && \ - cd $(WORK) && gzip -v initramfs.cpio - touch $(WORK)/initramfs.cpio.gz + cd $(WORK)/mnt && find . | cpio -o -H newc > $(WORK)/initramfs.cpio + touch $(WORK)/initramfs.cpio -initramfs: $(WORK)/initramfs.cpio.gz +initramfs: $(WORK)/initramfs.cpio initramfs-clean: rm -rf $(WORK)/initramfs* $(WORK)/mnt