kernel:stali
This is an old revision of the document!
Stali
First we wanna have an ssh connection to copy and paste the commands from this guide onto the machine more easily:
vim /etc/ssh/sshd_config --- PermitRootLogin yes
Now give yourself a personal IP Address:
ip addr add 192.168.1.10/24 dev eth0 ip link set eth0 up rc-service sshd start
Now change to the terminal of the computer you are reading this guide and type/copy in:
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.