this post was submitted on 30 Apr 2025
185 points (98.4% liked)

Linux

53840 readers
1340 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS
 

Posting this since quite a bit has changed since I last posted about this on !technology@lemmy.world.

Here's a rough breakdown of the current status:

  • shared Ventoy components: build and seem to work, needs more testing
    • grub / menu - builds
    • EDK II apps / UEFI chainloader and more - builds
    • iPXE / BIOS chainloader - builds, with fixes for newer toolchains
    • ISO9660 and UDF drivers - TODO
  • Ventoy CPIO / Linux ramdisk: builds; I deemed musl xzcat unneeded, so I skipped it; needs more testing
  • wimboot / Windows chainloader (?) - stalled, I lack the necessary knowledge to work on it
  • geom-ventoy / FreeBSD disk mapping kernel module - is being worked on, slowly; not ready for testing
  • anything else is a TODO

This should be enough to boot Linux with just what's built manually, but I haven't tried that yet.

Secure Boot is just done by using a pre-built bypass package. I'll deal with that later.

Having more people testing this would be nice. :)

Cheers

you are viewing a single comment's thread
view the rest of the comments
[–] fnrir@lemmy.blahaj.zone 3 points 3 days ago (1 children)

On Linux installation is done through a series of scripts and vtoycli. I haven't worked on that yet, but there's build scripts there that should do the trick, but since they build it for multiple architectures, you'll have to run just the stuff for your arch (probably x86_64).

sth like:

cd vtoycli/fat_io_lib/release
gcc -specs "/usr/local/musl/lib/musl-gcc.specs" -O2 -D_FILE_OFFSET_BITS=64 fat*.c -c
ar -rc libfat_io_64.a *.o
cd ../..
gcc -specs "/usr/local/musl/lib/musl-gcc.specs" -Os -static -D_FILE_OFFSET_BITS=64 -Ifat_io_lib/include fat_io_lib/lib/libfat_io_64.a *.c -o vtoycli_64
# Optional
strip --strip-all vtoycli_64
[–] balsoft@lemmy.ml 3 points 3 days ago (1 children)

Do I have to build all other parts myself before then? (I'm trying to package it for Nix so that other people can also build it more easily)

[–] fnrir@lemmy.blahaj.zone 2 points 3 days ago (1 children)

Pretty much. I do have some releases, but considering Nix's philosophy you probably should. Ventoy-CPIO should build fine, if the right toolchains and dietlibc are in PATH. Ventoy-boot relies on overlay mounts though, so it might not build within Nix.

[–] balsoft@lemmy.ml 3 points 3 days ago

Thanks! I will try and report the results back to you.