kernel:stali
This is an old revision of the document!
Stali
First we wanna have an ssh connection to copy and paste the following commands in this guide:
Then activate ssh and remove change some settings:
vim /etc/ssh/sshd_config --- PermitRootLogin yes
Now give yourself an Ip
ip addr add 192.168.1.10/24 dev eth0 ip link set eth0 up rc-service sshd start
And from the device you are reading this guide:
ssh root@192.168.1.10 <- enter the live ISO pw
1.0
— Prepare a disk partition for stali, we recommend formatting it with ext4fs.
fdisk /dev/sda
o → neue MBR-Tabelle
n → neue Partition 1 → +100M → Typ 83 → a → Bootflag
n → neue Partition 2 → Rest → Typ 83
w → schreiben
Format disks
mkfs.ext4 /dev/sda1 mkfs.ext4 /dev/sda2
Mount the disk partition
; sudo su # mkdir /mnt/rootfs-x86_64 # mount /dev/sdX /mnt/rootfs-x86_64
Clone rootfs-x86_64
# cd /mnt # git clone http://git.sta.li/rootfs-x86_64
Setup the system
# cd /mnt/rootfs-x86_64/etc # # adjust rc.init/exit, etc.
Prepare chroot
# mount -t proc proc /mnt/rootfs-x86_64/proc # mount --rbind /sys /mnt/rootfs-x86_64/sys # mount --rbind /dev /mnt/rootfs-x86_64/dev # exit
2.0
Install necessary tools to build the kernel:
pacman -Sy wget make gcc binutils bc bison flex elfutils cpio perl tar xz zsh-completion cd /tmp/kernelbuild wget https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.6.3.tar.xz tar -xf linux-6.6.3.tar.xz cd linux-6.6.3 make x86_64_defconfig make -j$(nproc) make modules_install INSTALL_MOD_PATH=/mnt/rootfs make install INSTALL_PATH=/mnt/rootfs/boot
Sobald das durch ist, liegt der Kernel unter /mnt/rootfs/boot/vmlinuz-6.6.3. Danach kommt syslinux.
8.0
Read more: https://sta.li