Installation Guide
Prerequisites
- Basic Linux command-line skills
- An x86_64-v3 UEFI system (packages are built with
-march=x86-64-v3; legacy BIOS/MBR boot is not supported) - A target disk that will be completely erased
Installation
Run the built-in installer from the live environment:
sudo lanke_installThe installer walks you through the whole process:
- Select Disk — lists all available disks (from
lsblk); enter the target device name (e.g.sda) - Confirm Erase — requires an explicit
y, thenwipefsclears the old partition table - Automatic Partitioning (GPT, via
sfdisk):LANKE_BASE— 4 GiB, FAT32. The boot partition, holding the kernel, initramfs, GRUB andlive/rootfs.sfsLANKE_DATA— remaining space, ext4. Persistent storage
- Format and Copy — copies the entire system from the live medium onto
LANKE_BASE - Write GRUB Configuration — generates the boot entry (without live-specific kernel parameters)
Reboot afterwards, remove the boot medium, and start from the hard disk.
First login: user LankeOS, password LankeOS. Change it right after logging in.
root cannot log in directly — in live mode its password field is cleared (su accepts no password at all, a PAM safety mechanism), and on an installed system it holds a value set during development that is not published. Use sudo for root privileges, or run sudo passwd root first to set a password.
The installer does not run
grub-install; it reuses the GRUB EFI files already present on the live medium, becausegrub-installfails inside an OverlayFS environment. This is also why the boot partition needs 4 GiB:live/rootfs.sfs(~1.5 GiB) has to sit on the same partition as the kernel.
One hard constraint if you install manually
If you partition and copy things yourself instead of using the installer, remember this: live/rootfs.sfs must live on the partition labelled LANKE_BASE. initramfs locates the boot medium with findfs LABEL=LANKE_BASE and then looks for live/rootfs.sfs on that partition; if it is missing the system drops straight to a rescue shell. LANKE_DATA only serves as the OverlayFS persistence upper directory and does not hold rootfs.sfs.
Persistent Storage (Live USB)
To keep changes on a live USB without installing to a hard disk, create a partition labelled LANKE_DATA and format it as ext4 — initramfs will automatically mount it as the OverlayFS upper directory at boot:
mkfs.ext4 -L LANKE_DATA /dev/sda2Troubleshooting
Cannot enter graphical environment after boot
Check whether the graphics driver loaded:
# Look for DRM drivers in the kernel log
journalctl -b | grep -i "drm\|i915\|amdgpu\|nouveau"
# Check session type
loginctl show-session <SESSION_ID> -p TypeLankeOS uses open-source driver stacks for all three GPU vendors: iris for Intel, radeonsi for AMD, and nouveau/NVK for NVIDIA (including GSP firmware on Ada and newer), so no proprietary driver is needed.
Wi-Fi not connecting
Check if wpa_supplicant is running:
systemctl status wpa_supplicant
nmcli device wifi list
nmcli device wifi connect <SSID> password <password>Repository connection failure
Check network connectivity and mirror configuration:
lpkg --version
cat /etc/lpkg/mirror.conf
curl -I https://lankerepo.wtada233.top/x86_64/index.txt