clean up
This commit is contained in:
parent
814dcf4cd7
commit
bda2932d56
6
generate
6
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 <<EOF > "$tmpdir/config"
|
||||
|
Loading…
Reference in New Issue
Block a user