From 228b27ece1877465e947f74e6ad88be5993dee99 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 26 Dec 2023 13:11:20 +0300 Subject: [PATCH] fix --- FHS | 8 ++++++++ stages/0-download-src.sh | 4 ---- stages/3-micro-utils.sh | 3 +-- 3 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 FHS diff --git a/FHS b/FHS new file mode 100644 index 0000000..dbead3a --- /dev/null +++ b/FHS @@ -0,0 +1,8 @@ +/ - Root + * /init - init system + * /bin/ - binary files + * /etc/ - configs + * /lib/ - libraries + * /usr/ - users + * /mnt/ - mounted devices + * /kernel - Kernel diff --git a/stages/0-download-src.sh b/stages/0-download-src.sh index df6acc3..f8f9714 100755 --- a/stages/0-download-src.sh +++ b/stages/0-download-src.sh @@ -2,7 +2,6 @@ mu_repo="https://git.macaw.me/8nl/micro-utils" ml_repo="git://git.musl-libc.org/musl" cc_repo="git://repo.or.cz/tinycc.git" -sh_repo="" echo "* Download micro-utils sources..." git clone $mu_repo src @@ -12,6 +11,3 @@ git clone $ml_repo libc echo "* Download tcc sources..." git clone $cc_repo tcc - -echo "* Download sh sources..." -git clone $sh_repo sh diff --git a/stages/3-micro-utils.sh b/stages/3-micro-utils.sh index 987471c..d0719cd 100755 --- a/stages/3-micro-utils.sh +++ b/stages/3-micro-utils.sh @@ -3,12 +3,11 @@ echo " * Build micro-utils" echo " * Make rootfs " mkdir $RTFS/bin mkdir $RTFS/etc +mkdir $RTFS/mnt mkdir $RTFS/dev mkdir $RTFS/sys mkdir $RTFS/proc -mkdir $RTFS/media mkdir -p $RTFS/usr/root -mkdir $RTFS/boot cd src