From bda2932d56e976317e68866b7df943ba04308a8c Mon Sep 17 00:00:00 2001 From: illiliti Date: Tue, 7 Jan 2020 17:05:34 +0300 Subject: [PATCH] clean up --- generate | 6 +++--- init | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/generate b/generate index eb74b68..d1300c8 100755 --- a/generate +++ b/generate @@ -22,7 +22,7 @@ kernel="$(uname -r)" moddir="/lib/modules" # structure -for d in bin dev etc usr/lib usr/bin mnt/root proc root sys; do +for d in dev etc usr/lib usr/bin mnt/root proc root sys; do mkdir -p "$tmpdir/$d" done @@ -65,11 +65,11 @@ done # install files cp ./init "$tmpdir/init" && chmod +x "$tmpdir/init" -cp ./busybox "$tmpdir/bin/busybox" && chmod +x "$tmpdir/bin/busybox" +cp ./busybox "$tmpdir/usr/bin/busybox" && chmod +x "$tmpdir/usr/bin/busybox" # strip binaries and libraries # uncomment this if your initramfs are huge -#find "$tmpdir" -type f -executable -exec strip -s "{}" ";" +find "$tmpdir" -type f -executable -exec strip -s "{}" ";" # initialize config cat < "$tmpdir/config" diff --git a/init b/init index b848602..9376155 100644 --- a/init +++ b/init @@ -1,10 +1,10 @@ -#!/bin/busybox sh +#!/usr/bin/busybox sh # debugging set -x # install busybox -/bin/busybox --install -s /bin +/usr/bin/busybox --install -s /usr/bin panic() { echo "bruh moment :(" && sh; }