project:kernel-autobuild:new-kernel-release
This is an old revision of the document!
New Kernel Release HOWTO
What to do if kernel-autobuild has to be prepared for a new kernel release.
REL=3.13 mkdir /var/lib/kernel-autobuild/${REL} VG=$( vgs --noheadings | awk '{print $1}' ) lvcreate ${VG} -n kernbuild${REL//./} -L 100G mkfs -t ext4 /dev/${VG}/kernbuild${REL//./} vo -o /etc/fstab echo /dev/${VG}/kernbuild${REL//./} /var/lib/kernel-autobuild/${REL} ext4 noatime,nodiratime 0 0 > /etc/fstab vo -i /etc/fstab mount /var/lib/kernel-autobuild/${REL} mkdir /var/lib/kernel-autobuild/${REL}/00-resources # prepare config template CFGFILE=/etc/kernel-autobuild.xml C=$( xmlstarlet sel -t -v 'count(/applicationconfig/application[@name="kernel-autobuild"]/templates/template)' $CFGFILE ) N=$( xmlstarlet ed \ -a '/applicationconfig/application[@name="kernel-autobuild"]/templates/template['$C']' -t elem -n template -v "" \ -a '/applicationconfig/application[@name="kernel-autobuild"]/templates/template['$((C+1))']' -t attr -n name -v "$REL" \ -s '/applicationconfig/application[@name="kernel-autobuild"]/templates/template['$((C+1))']' -t elem -n opt -v "" \ -a '/applicationconfig/application[@name="kernel-autobuild"]/templates/template['$((C+1))']/opt' -t attr -n name -v "--kernel-base-version" \ -a '/applicationconfig/application[@name="kernel-autobuild"]/templates/template['$((C+1))']/opt' -t attr -n v -v "$REL" \ $CFGFILE ) vo -o $CFGFILE echo "$N" > $CFGFILE rcsdiff -Bb $CFGFILE vo -i $CFGFILE cd /var/lib/kernel-autobuild/${REL} script -c "kernel-autobuild --kernel-base-version ${REL} --identify-sources" 1st
which results in
KSRCURL http://www.kernel.org/pub/linux/kernel/v3.x/linux-3.13.1.tar.xz PURL http://vserver.13thfloor.at/Experimental/patch-3.13.1-vs2.3.6.10.diff LASTCONFIG /boot/config-3.10.11-vs2.3.6.6+lihas1
- if KSRCURL is not set: major error - either your system can't reach kernel.org or the format of the web page has changed
- if PURL is not set: either your system can't reach linux-vserver.org or the format of the web page has changed
- if LASTCONFIG is not set: you have to provide one by yourself, e.g. copying one into /var/lib/kernel-autobuild/${REL}/00-resources and using –config /path/config
so:
script -c "kernel-autobuild --kernel-base-version ${REL} " typescript3131
/!\ But … the new kernel fails here /!\
kvm start fails:
[ 0.463523] List of all partitions: [ 0.464843] No filesystem could mount root, tried: [ 0.466592] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
prequel:
Generating grub.cfg ... Found linux image: /boot/vmlinuz-2.6.32-5-amd64 Found initrd image: /boot/initrd.img-2.6.32-5-amd64 done Selecting previously deselected package linux-firmware-image-3.13.1-vs2.3.6.10+lihas1. Selecting previously deselected package linux-headers-3.13.1-vs2.3.6.10+lihas1. Selecting previously deselected package linux-image-3.13.1-vs2.3.6.10+lihas1-dbg. Selecting previously deselected package linux-image-3.13.1-vs2.3.6.10+lihas1. ... Generating grub.cfg ... Found linux image: /boot/vmlinuz-3.13.1-vs2.3.6.10+lihas1 Found linux image: /boot/vmlinuz-2.6.32-5-amd64 Found initrd image: /boot/initrd.img-2.6.32-5-amd64 done ... ## initrd is missing ## ... [ 0.000000] Linux version 3.13.1-vs2.3.6.10+lihas1 (root@wiese) (gcc version 4.7.2 (Debian 4.7.2-5) ) #1 SMP Mon Feb 3 17:24:22 CET 2014 [ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-3.13.1-vs2.3.6.10+lihas1 root=/dev/sda1 ro console=tty0 console=ttyS0 ... [ 0.463523] List of all partitions: [ 0.464843] No filesystem could mount root, tried: [ 0.466592] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
TODO: fix these errors
TODO: run vserver's testme
project/kernel-autobuild/new-kernel-release.1450373697.txt.gz · Last modified: 2015/12/17 18:34 by 91.89.129.106