This guide explains how to install ohLinux from a live environment. There is no official ISO, so any Linux live ISO can be used.
dd or a graphical tool.Use cfdisk (recommended) or fdisk.
Required partitions:
Replace X and Y with your partitions.
EFI:
mkfs.vfat -F 32 /dev/X
Root:
mkfs.ext4 /dev/Y
mount /dev/Y /mnt
mkdir -p /mnt/boot/efi mount /dev/X /mnt/boot/efi
cd /mnt
lynx "https://drive.usercontent.google.com/download?id=1OLuHfl-0w1JWnZfOJGBSRJbK-WsNYcPh&export=download&authuser=0"
xz -d rootfs.tar.xz tar -xpvf rootfs.tar
cat /etc/resolv.conf | tee /mnt/etc/resolv.conf
mkdir -pv /mnt/proc /mnt/sys /mnt/dev mount --bind /proc /mnt/proc mount --bind /sys /mnt/sys mount --bind /dev /mnt/dev chroot /mnt
Alternative:
arch-chroot /mnt
singularity install <package> singularity remove <package> singularity update singularity install <package> --patch
Configuration:
/var/singularity/make.conf
CFLAGS="-O2 -pipe" CC=clang MAKEFLAGS="-j$(nproc)"
tar xpvf /var/linux-7.0.tar.xz
make localmodconfig make localyesconfig
make -j$(nproc)
make modules_install
mount -t efivarfs efivarfs /sys/firmware/efi/efivars
Note: efibootmgr is already included.
mkdir -p /boot/efi/EFI/ohlinux cp -rv /usr/share/limine/BOOTX64.EFI /boot/efi/EFI/ohlinux
efibootmgr \ --create \ --disk /dev/sdX \ --part Y \ --label "ohLinux" \ --loader '\\EFI\\ohlinux\\BOOTX64.EFI' \ --unicode
cp -rv /var/linux-7.0/arch/x86/boot/bzImage /boot/efi/bzImage
Configuration file:
/boot/efi/EFI/ohlinux/limine.conf
timeout: 5
/ohLinux
protocol: linux
path: boot():/bzImage
cmdline: root=/dev/sdX rw
Enable services by symlinking into /init/services.
passwd
Installation complete.