Skip to content
@kissllm

kissllm

KISS Linux based on LLVM and Musl

KISS Linux based on LLVM and Musl

A line of code is worth a thousand words. Below is some pseudocode and comments guide.

How to use:

1. Prepare a number of partitions, mount it to a mount point.

For instance,

/         (mount /dev/nvme1n1p3 /mnt/kiss)          [ext4]
/boot     (mount /dev/nvme1n1p2 /mnt/kiss/boot)     [ext4]
/boot/efi (mount /dev/nvme1n1p1 /mnt/kiss/boot/efi) [fat32]

2. Dump KISS image to it.

Currently, you might want to download it from here. Please notice that the "core" versions are not enough for bootstrapping.

curl -fLO https://github.com/glasnostlinux/glasnost/releases/download/2021.10-01/glasnost-chroot-x86_64-2021.10-01.tar.xz
tar --numeric-owner --overwrite -xJf ./glasnost-chroot-x86_64-2021.10-01.tar.xz --directory /mnt/kiss --strip-components=1 2>&1

3. "chroot" to it.

An example partition mount "load-kiss" and a chroot script "root"

doas load-kiss
doas root /mnt/kiss /bin/ash

4. Install a kernel

Manual kernel configuration might be needed.

cd /var/db/kiss
git clone --recursive https://github.com/kissllm/glasnost.git
cd glasnost
git submodule update --remote --init --recursive
kISS_PATH=/var/db/kiss/glasnost/system kiss p linux

5. Generate boot loaders

Substitude partition parametes to actual values. One of the following methods[1] might be more convenient for you:

doas efibootmgr -c -d /dev/nvme1n1 -L "KISS Linux (EFI Stub)" -l "\EFI\efistub\vmlinuz.efi" 'root=/dev/nvme1n1p3 ro resume=/dev/nvme1n1p2 tsc=unstable'
doas grub-install --target=x86_64-efi --efi-directory=/boot/efi --boot-directory=/boot --bootloader-id=kiss /dev/nvme1n1

6. Generate /etc/fstab, time zone, etc.

doas /mnt/local/bin/fstab -U -P / >> /etc/fstab

"fstab" is an ash script, you can run it outside chroot

doas /mnt/local/bin/fstab -U -P /mnt/kiss >> /mnt/kiss/etc/fstab

Manually comment out some optional items.

7. Boot into it.

Quit chroot

sync && exit
doas reboot

8. Further discussion / development

llvm-musl on Telegram

llvm-musl on Matrix

KISS Linux on Telegram

KISS Linux on Reddit

Pinned Loading

  1. lm lm Public

    Minimalist llvm and musl toolchain can build the entire system

    Shell 3

  2. linux-stable linux-stable Public

    KISS_PATH=/var/db/kiss/lm/system kiss b linux

    C 1

  3. linux-firmware linux-firmware Public

    KISS_PATH=/var/db/kiss/lm/system kiss b linux-firmware

    C

  4. kiss kiss Public

    KISS_PATH=/var/db/kiss/lm/core kiss b kiss

    Shell 1

  5. dotconfig dotconfig Public

    Lua 1

Repositories

Showing 10 of 11 repositories
  • kissllm/dotconfig’s past year of commit activity
    Lua 1 0 0 0 Updated Jul 9, 2024
  • lm Public

    Minimalist llvm and musl toolchain can build the entire system

    kissllm/lm’s past year of commit activity
    Shell 3 0 0 0 Updated Mar 21, 2024
  • kiss Public

    KISS_PATH=/var/db/kiss/lm/core kiss b kiss

    kissllm/kiss’s past year of commit activity
    Shell 1 MIT 0 0 0 Updated Mar 19, 2024
  • abuild Public
    kissllm/abuild’s past year of commit activity
    0 0 0 0 Updated May 24, 2023
  • linux-stable Public

    KISS_PATH=/var/db/kiss/lm/system kiss b linux

    kissllm/linux-stable’s past year of commit activity
    C 1 0 0 0 Updated Feb 26, 2023
  • .github Public
    kissllm/.github’s past year of commit activity
    0 0 0 0 Updated Jan 19, 2023
  • fakeroot Public Forked from mackyle/fakeroot

    tool for simulating superuser privileges (llvm musl)

    kissllm/fakeroot’s past year of commit activity
    C 0 GPL-3.0 22 0 0 Updated Aug 25, 2022
  • fakeroot-ng Public Forked from abligh/fakeroot-ng

    fakeroot-ng 0.18 that builds on llvm musl

    kissllm/fakeroot-ng’s past year of commit activity
    Roff 0 GPL-2.0 4 0 0 Updated Aug 25, 2022
  • mesa Public
    kissllm/mesa’s past year of commit activity
    C 0 0 0 0 Updated Aug 4, 2022
  • efivar Public Forked from rhboot/efivar

    Tools and libraries to work with EFI variables [llvm musl]. How to use: KISS_PATH=/var/db/kiss/lm/extra kiss b efivar

    kissllm/efivar’s past year of commit activity
    C 1 LGPL-2.1 104 0 0 Updated Jul 18, 2022

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…