From bf61cef1114e41d7eb3c7783e62d1ed8deee6068 Mon Sep 17 00:00:00 2001 From: sam Date: Mon, 4 Mar 2024 20:24:34 +1300 Subject: [PATCH] add rule to make necessary initramfs dirs --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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..."