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
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
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 && \
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 && \
- /sbin/ldconfig -r $(WORK)/mnt && \
- cd $(WORK)/mnt && \
- find . | cpio -o -H newc > $(WORK)/initramfs.cpio && \
- cd $(WORK) && \
- gzip -v initramfs.cpio && \
- cp $(WORK)/initramfs{.cpio.gz,} && \
- touch $(WORK)/initramfs
+ ln -s bin/busybox $(WORK)/mnt/init
+ /sbin/ldconfig -r $(WORK)/mnt
+ cd $(WORK)/mnt && find . | cpio -o -H newc > $(WORK)/initramfs.cpio
+ touch $(WORK)/initramfs.cpio