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"
|
moddir="/lib/modules"
|
||||||
|
|
||||||
# structure
|
# 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"
|
mkdir -p "$tmpdir/$d"
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -65,11 +65,11 @@ done
|
|||||||
|
|
||||||
# install files
|
# install files
|
||||||
cp ./init "$tmpdir/init" && chmod +x "$tmpdir/init"
|
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
|
# strip binaries and libraries
|
||||||
# uncomment this if your initramfs are huge
|
# 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
|
# initialize config
|
||||||
cat <<EOF > "$tmpdir/config"
|
cat <<EOF > "$tmpdir/config"
|
||||||
|
Loading…
Reference in New Issue
Block a user