chimera-linux / chimera-linux.github.io

The website
Other
27 stars 24 forks source link

Add systemdboot to TL;DR #33

Open Drsheppard01 opened 3 months ago

Drsheppard01 commented 3 months ago

Can you explain how to install Chimera Linux using systemd-boot step-by-step (add to TL;DR section)

Drsheppard01 commented 19 hours ago

XFS, separated /home, systemd-boot instead grub, linux-stable

#!/bin/sh

doas wipefs -a /dev/nvme0n1
doas sfdisk /dev/nvme0n1 <<EOF
label: gpt
name=esp, size=1G, type="EFI System"
name=root, size=30G
name=home
EOF
doas mkfs.vfat /dev/nvme0n1p1
doas mkfs.xfs -f /dev/nvme0n1p2
doas mkfs.xfs -f /dev/nvme0n1p3
doas mkdir /media/root
doas mount /dev/nvme0n1p2 /media/root
doas mkdir -p /media/root/boot
doas mkdir -p /media/root/home
doas mount /dev/nvme0n1p1 /media/root/boot
doas mount /dev/nvme0n1p3 /media/root/home
doas chmod 755 /media/root
doas chimera-bootstrap -l /media/root
doas chimera-chroot /media/root
apk update
apk upgrade --available
apk fix
apk add linux-stable systemd-boot
genfstab -t PARTLABEL / > /etc/fstab
passwd root
useradd myuser
passwd myuser
usermod -a -G wheel myuser
echo hoxton > /etc/hostname
ln -sf ../usr/share/zoneinfo/Europe/Moscow /etc/localtime
dinitctl -o enable gdm
dinitctl -o enable chrony
dinitctl -o enable networkmanager
update-initramfs -c -k all
bootctl install --esp-path=/boot
gen-systemd-boot
exit
reboot