basic (INSECURE!) init system

This commit is contained in:
aheirman 2021-04-17 10:52:02 +00:00
parent 9a3667b66b
commit d4a927cb22
6 changed files with 52 additions and 2 deletions

View file

@ -16,7 +16,7 @@ echo "PARTITION_START=${PARTITION_START}"
#create room for a partition
ls -al iglunix.img -h
dd if=/dev/zero bs=1 count=0 seek=2G of=iglunix.img
dd if=/dev/zero bs=1 count=0 seek=20G of=iglunix.img
ls -al iglunix.img -h
echo "n
@ -68,6 +68,11 @@ cp /etc/vconsole.conf ${ROOT}/etc/vconsole.conf
#TODO: this is a systemd file,
# use udev/kbd
echo "Copying init.d files& inittab"
mkdir ${ROOT}/etc/init.d/
cp -r /iglunix/init/init.d ${ROOT}/etc/
cp /iglunix/init/inittab ${ROOT}/etc/
echo "Unmounting & closing loopback"
umount ${ROOT}