Compare commits

...

13 Commits

Author SHA1 Message Date
Nasir Hossain Nishad
1d6ffa54e2
Merge pull request #6 from nishad-prime/feature
Some checks failed
Test / build (push) Has been cancelled
alpha 0.1.4
2024-02-18 01:46:58 +06:00
Nasir Hossain
e422feb62e fix: echo the intro message inside the cttyhack sh
Doing it this way is better as the clear command is executed after the
error message "can't access tty" is printed.
2024-02-18 00:21:05 +06:00
Nasir Hossain
5654b853ee fix: remove reduntant semicolons 2024-02-18 00:20:36 +06:00
Nasir Hossain Nishad
6c1e8ee6e3
Merge pull request #5 from nishad-prime/feature
beta 0.1.3
2024-02-17 06:00:03 +06:00
Nasir Hossain
488a3479cf fix: make the init script executable 2024-02-17 05:47:07 +06:00
Nasir Hossain Nishad
7e45665af4
Merge pull request #4 from nishad-prime/feature
alpha 0.1.3
2024-02-17 03:54:31 +06:00
Nasir Hossain
ea328d2047 Merge branch 'feature' of github.com:nishad-prime/egos into feature 2024-02-17 03:39:12 +06:00
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
Nasir Hossain
c7b81bc904 fix: remove unwanted renaming from iso to img 2024-02-17 03:30:23 +06:00
Nasir Hossain Nishad
a8f23411a1
Merge pull request #3 from nishad-prime/feature
alpha 0.1.2
2024-02-17 02:39:19 +06:00
Nasir Hossain Nishad
5ba88859cb
Merge branch 'master' into feature 2024-02-17 02:27:00 +06:00
Nasir Hossain
b6debbaf4a fix: correct trigger event of github actions 2024-02-17 02:07:13 +06:00
Nasir Hossain
c84b6a7484 fix: correct mounting proc to /dev 2024-02-17 01:53:06 +06:00
4 changed files with 43 additions and 43 deletions

View File

@ -1,9 +1,11 @@
name: Build name: Build
on: on:
pull_request: pull_request:
branches: types: [closed]
- master branches:
- master
jobs: jobs:
build: build:
@ -35,5 +37,5 @@ jobs:
with: with:
upload_url: ${{ steps.create_release.outputs.upload_url }} upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./egos.iso asset_path: ./egos.iso
asset_name: egos-v${{ github.run_number }}.img asset_name: egos-v${{ github.run_number }}.iso
asset_content_type: application/octet-stream asset_content_type: application/octet-stream

View File

@ -1,15 +1,13 @@
name: Test name: Test
on: on:
push:
branches:
- feature
pull_request: pull_request:
types: branches:
- opened - master
- reopened types: [opened, synchronize]
branches: push:
- master branches:
- feature
jobs: jobs:
build: build:

View File

@ -54,6 +54,7 @@ cd ..
cd initramfs cd initramfs
rm linuxrc # We'll be using a init sciprt instead rm linuxrc # We'll be using a init sciprt instead
cp ../scripts/init.sh init cp ../scripts/init.sh init
sudo chmod 755 init
find . | cpio -H newc -o > ../iso/boot/initramfs.cpio find . | cpio -H newc -o > ../iso/boot/initramfs.cpio
cd .. cd ..
@ -64,9 +65,9 @@ cp config/grub.cfg iso/boot/grub/grub.cfg
grub-mkrescue -o egos.iso iso grub-mkrescue -o egos.iso iso
# The image is ready to be used # The image is ready to be used
echo " ___ ___ ___ "; echo " ___ ___ ___ "
echo " | __|__ _ / _ \/ __|"; echo " | __|__ _ / _ \/ __|"
echo " | _|/ _\` | (_) \__ \\"; echo " | _|/ _\` | (_) \__ \\"
echo " |___\__, |\___/|___/"; echo " |___\__, |\___/|___/"
echo " |___/ "; echo " |___/ "
echo "Is Built Successfully!"; echo "Is Built Successfully!"

View File

@ -1,33 +1,32 @@
#!/bin/sh #!/bin/sh
set -e
# Disable Kernel Messages # Disable Kernel Messages
dmesg -n 1 dmesg -n 1
# Mount the file system
mount -t devtmpfs none /dev
mount -t proc none /dev
mount -t sysfs none /sys
clear clear
# Print the welcome message # Mount the file system
echo "Welcome to the Linux Kernel" mount -t devtmpfs udev /dev
echo "" mount -t proc proc /proc
echo "" mount -t sysfs sysfs /sys
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 # Start shell with proper tty and power off support
exec cttyhack sh exec cttyhack sh -c '\
clear\
echo "Welcome to the Linux Kernel"\
echo ""\
echo ""\
echo " ___ ___ ___ "\
echo " | __|__ _ / _ \/ __|"\
echo " | _|/ _\` | (_) \__ \\"\
echo " |___\__, |\___/|___/"\
echo " |___/ "\
echo "Less is more easy. - EgOS"\
echo ""\
echo ""\
echo "Kernel Version: $(uname -r)"\
echo "Kernel Build Date: $(uname -v)"\
echo "Kernel Architecture: $(uname -m)"\
echo "Kernel Compiler: $(uname -o)"\
'