diff --git a/Makefile b/Makefile index 3ec2ec0..775a89e 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,14 @@ MUSL_GCC := "${REALGCC:-gcc}" "$@" -specs "$(MUSL_DIR)/lib/musl-gcc.specs" .PHONY: all deps linux busybox clean -all: deps linux busybox +all: dirs deps linux busybox + +dirs: + mkdir -p initramfs/{etc,proc,sys,usr/{bin,lib},dev,tmp,mnt,root} + ln -sf usr/bin initramfs/bin + ln -sf usr/bin initramfs/sbin + ln -sf usr/lib initramfs/lib + ln -sf usr/lib initramfs/lib64 deps: @echo "Downloading dependencies..."