egos/scripts/init.sh
Nasir Hossain 932cfa81d7 fix: add set -e and try to mount differently
The init script of the initramfs is failing with exit code -13. No clue
what that is. Thus I'm trying to solve it at random and figure it out
afterwards. I have add the "set -e" to the init script to see if that
prints out anything. And I have also moved the clear command to run
after the "dmesg -n 1" to ensure that isn't causing the problem. If the
clear command works it's certain that the dmesg is causing the error.
2024-02-17 03:30:57 +06:00

35 lines
701 B
Bash

#!/bin/sh
set -e
# Disable Kernel Messages
dmesg -n 1
clear
# Mount the file system
mount -t devtmpfs udev /dev
mount -t proc proc /proc
mount -t sysfs sysfs /sys
# Print the welcome message
echo "Welcome to the Linux Kernel"
echo ""
echo ""
echo " ___ ___ ___ ";
echo " | __|__ _ / _ \/ __|";
echo " | _|/ _\` | (_) \__ \\";
echo " |___\__, |\___/|___/";
echo " |___/ ";
echo "Is Built Successfully!";
echo ""
echo ""
echo "Kernel Version: $(uname -r)"
echo "Kernel Build Date: $(uname -v)"
echo "Kernel Architecture: $(uname -m)"
echo "Kernel Compiler: $(uname -o)"
echo "Kernel Hostname: $(uname -n)"
# Start shell with proper tty and power off support
exec cttyhack sh