Simple init system in bash for critical operations that must run before the actual init system.
- 
Clone the repository
 - 
Rename the
abcdfile to/usr/sbin/initor wherever your init file is located and make it executable. - 
Create a file
/usr/share/abcd/abcd.nextInit.confwith the following content:/lib/systemd/systemdin case of systemd, or update the path to your init system of choice.
 - 
Create the directory
/usr/share/abcd/abc.dand put your hooks in there. They will be executed in alphabetical order, so it is better to prefix them with numbers, e.g.000-prepare.sh,100-mount.sh,200-network.sh, etc. Remember to set them as executable and to include the shebang line, for example:#!/bin/bash echo "Mounting filesystems"
 - 
Reboot
 
All the messages are logged to dmesg, so you can check them with dmesg | grep abcd
from a chroot environment.