06bba6f68f
0.1.0 is a complete rewrite @hippoz, @hippoz it is supposed to clean up aps. :trol:
13 lines
436 B
Bash
Executable file
13 lines
436 B
Bash
Executable file
#!/bin/sh
|
|
|
|
###############
|
|
# MKINITRAMFS #
|
|
###############
|
|
|
|
if [ ! -d /usr/src/initramfs ]; then
|
|
mkdir -p /usr/src/initramfs/{bin,dev,etc,lib,lib64,mnt/root,proc,root,sbin,sys}
|
|
cp --archive /dev/{null,console,tty,sd*} /usr/src/initramfs/dev/
|
|
cp --archive /bin/busybox /usr/src/initramfs/bin/busybox
|
|
fi
|
|
cd /usr/src/initramfs
|
|
find . -print0 | cpio --null --create --verbose --format=newc | gzip --best > /boot/initramfs.cpio.gz
|