Created
July 19, 2024 20:58
-
-
Save lebarsfa/12ede3e8c90e4494338584cb17a6b4be to your computer and use it in GitHub Desktop.
Rebuilding and customizing OneFileLinux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Rebuilding and customizing OneFileLinux (see https://github.com/zhovner/OneFileLinux/) | |
# The virtual machine provided by the author does not seem always available. This is an attempt to rebuild the OneFileLinux v0.3.2 without it. | |
# I chose Ubuntu 18.04 since its kernel version is close to the one used in OneFileLinux. | |
# Prerequisites might be at least: | |
sudo apt-get install git build-essential libelf-dev | |
git clone https://github.com/zhovner/OneFileLinux | |
cd OneFileLinux | |
# Error in build.sh if this is not done... | |
mkdir -p alpine-minirootfs/dev | |
# Error in build.sh if this is not done... | |
sudo mknod -m 600 alpine-minirootfs/dev/console c 5 1 | |
# Th first time, it may give the error about System.map not found as in https://github.com/zhovner/OneFileLinux/issues/10 . We can comment the line "depmod -b ../$ROOTFS -F System.map $KERNELVERSION" in build.sh to make it succeed first, than uncomment it and run the script again... | |
./build.sh | |
# The script will should succeed and create OneFileLinux.efi, but when testing it on a computer various errors may appear. Maybe the information from https://github.com/zhovner/OneFileLinux/tree/master/FoxBuild should be followed also or instead... | |
# Instructions in https://github.com/zhovner/OneFileLinux/issues/14 might be useful, especially updated versions might be available at https://github.com/foxpdll/OneFileLinux/releases ... | |
# Also https://github.com/zhovner/OneFileLinux/compare/master...ankris812:OneFileLinux:master... | |
# https://github.com/n30f0x/OneFileLinux may provide a Dockerfile to build OneFileLinux, with an update kernel... | |
# https://github.com/zhovner/OneFileLinux/compare/master...coolcoder613eb:OneFileLinux:master seems updated with a newer kernel and Alpine Linux base version... | |
# Customizations | |
# Should edit /etc/inittab to launch commands at startup...? | |
# To get e.g. scripts from the boot USB drive: | |
#mount /dev/usbdisk /media/usb | |
# Ethernet network: | |
#ifconfig eth0 up | |
#udhcpc -i eth0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment