User Tools

Site Tools


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

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

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.1442286996.txt.gz · Last modified: 2015/09/15 05:16 by 91.89.129.106