aps/altools/mkinitramfs
Ohio2 06bba6f68f 0.1.0 BETA
0.1.0 is a complete rewrite @hippoz, @hippoz it is supposed to clean up
  aps. :trol:
2021-09-29 15:48:11 +02:00

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