project:kernel-autobuild:new-kernel-release
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
project:kernel-autobuild:new-kernel-release [2015/09/15 03:16] – sImyhKAQbtuJp 146.185.234.48 | project:kernel-autobuild:new-kernel-release [2016/10/24 11:45] (current) – 37.209.107.175 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | http://sexygirlsonfreewebcams.tk/#8683 hot sluts on web cam, | + | ====== New Kernel Release HOWTO ====== |
+ | |||
+ | What to do if kernel-autobuild has to be prepared for a new kernel release. | ||
+ | |||
+ | ===== New template directory for meta package (2016-10-23 / 3.18) ===== | ||
+ | |||
+ | < | ||
+ | #cd / | ||
+ | cd ushare/ | ||
+ | |||
+ | cp -ax linux-image-3.14-vserver-amd64 linux-image-3.18-vserver-amd64 | ||
+ | cd linux-image-3.18-vserver-amd64 | ||
+ | vi Makefile | ||
+ | APPNAME=linux-image-3.18-vserver-amd64 | ||
+ | VERSION=3.18.1 | ||
+ | |||
+ | vi debian/ | ||
+ | The Debian Package linux-image-3.18 | ||
+ | |||
+ | vi debian/ | ||
+ | linux-image-3.18 for Debian | ||
+ | |||
+ | vi debian/ | ||
+ | linux-image-3.18-vserver-amd64 (3.18.1) unstable; urgency=low | ||
+ | |||
+ | vi debian/ | ||
+ | Source: linux-image-3.18-vserver-amd64 | ||
+ | Depends: linux-firmware-image (=3.18.9-vs2.3.6.6+lihas1-1), | ||
+ | Description: | ||
+ | |||
+ | </ | ||
+ | |||
+ | ===== New working directory (2016-04-19 / 3.13) ===== | ||
+ | |||
+ | < | ||
+ | REL=3.13 | ||
+ | |||
+ | mkdir / | ||
+ | VG=$( vgs --noheadings | awk ' | ||
+ | lvcreate ${VG} -n kernbuild${REL// | ||
+ | mkfs -t ext4 / | ||
+ | vo -o / | ||
+ | echo / | ||
+ | vo -i / | ||
+ | mount / | ||
+ | mkdir / | ||
+ | |||
+ | # prepare config template | ||
+ | CFGFILE=/ | ||
+ | C=$( | ||
+ | xmlstarlet sel -t -v ' | ||
+ | ) | ||
+ | N=$( | ||
+ | xmlstarlet ed \ | ||
+ | -a '/ | ||
+ | -a '/ | ||
+ | -s '/ | ||
+ | -a '/ | ||
+ | -a '/ | ||
+ | $CFGFILE | ||
+ | ) | ||
+ | vo -o $CFGFILE | ||
+ | echo " | ||
+ | rcsdiff -Bb $CFGFILE | ||
+ | vo -i $CFGFILE | ||
+ | |||
+ | cd / | ||
+ | script -c " | ||
+ | </ | ||
+ | |||
+ | which results in | ||
+ | < | ||
+ | KSRCURL | ||
+ | PURL | ||
+ | LASTCONFIG / | ||
+ | </ | ||
+ | |||
+ | * 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 / | ||
+ | |||
+ | so: | ||
+ | < | ||
+ | script -c " | ||
+ | </ | ||
+ | |||
+ | /!\ 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, | ||
+ | </ | ||
+ | addendum 2016-10-23: | ||
+ | * similar looking problem with 3.18. Then, no initrd was built during package installation because the dpkg hooks silently failed to do so. Fixed by using a debian 7 / wheezy test image | ||
+ | |||
+ | prequel: | ||
+ | < | ||
+ | Generating grub.cfg ... | ||
+ | Found linux image: / | ||
+ | Found initrd image: / | ||
+ | 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: / | ||
+ | Found linux image: / | ||
+ | Found initrd image: / | ||
+ | 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=/ | ||
+ | ... | ||
+ | [ 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' | ||
+ | |||
+ | New template for meta package '' | ||
+ | |||
+ | < | ||
+ | cd ushare | ||
+ | cp -ax linux-image-3.10-vserver-amd64 linux-image-4.1-vserver-amd64 | ||
+ | # change things: | ||
+ | diff -r linux-image-3.10-vserver-amd64 linux-image-4.1-vserver-amd64 | ||
+ | diff -r / | ||
+ | 6,7c6,7 | ||
+ | < APPNAME=linux-image-3.10-vserver-amd64 | ||
+ | < VERSION=3.10.9 | ||
+ | --- | ||
+ | > APPNAME=linux-image-4.1-vserver-amd64 | ||
+ | > VERSION=4.1 | ||
+ | diff -r / | ||
+ | 1c1 | ||
+ | < The Debian Package linux-image-3.10 | ||
+ | --- | ||
+ | > The Debian Package linux-image-4.1 | ||
+ | 6c6 | ||
+ | < -- LiHAS Stuttgart < | ||
+ | --- | ||
+ | > -- LiHAS Stuttgart < | ||
+ | diff -r / | ||
+ | 1c1 | ||
+ | < linux-image-3.10 for Debian | ||
+ | --- | ||
+ | > linux-image-4.1 for Debian | ||
+ | 6c6 | ||
+ | < -- LiHAS Stuttgart < | ||
+ | --- | ||
+ | > -- LiHAS Stuttgart < | ||
+ | diff -r / | ||
+ | 1c1 | ||
+ | < linux-image-3.10-vserver-amd64 (3.10.9) unstable; urgency=low | ||
+ | --- | ||
+ | > linux-image-4.1-vserver-amd64 (4.1) unstable; urgency=low | ||
+ | 5c5 | ||
+ | < -- LiHAS Stuttgart < | ||
+ | --- | ||
+ | > -- LiHAS Stuttgart < | ||
+ | diff -r / | ||
+ | 1c1 | ||
+ | < Source: linux-image-3.10-vserver-amd64 | ||
+ | --- | ||
+ | > Source: linux-image-4.1-vserver-amd64 | ||
+ | 9c9 | ||
+ | < Package: linux-image-3.10-vserver-amd64 | ||
+ | --- | ||
+ | > Package: linux-image-4.1-vserver-amd64 | ||
+ | 11, | ||
+ | < Depends: linux-firmware-image (=3.10.9-vs2.3.6.6+lihas1-1), | ||
+ | < Description: | ||
+ | --- | ||
+ | > Depends: linux-firmware-image (=4.1-vs2.3.6.6+lihas1-1), | ||
+ | > Description: | ||
+ | diff -r / | ||
+ | 39c39 | ||
+ | < | ||
+ | --- | ||
+ | > | ||
+ | </ | ||
+ |
project/kernel-autobuild/new-kernel-release.1442279814.txt.gz · Last modified: 2015/09/15 03:16 by 146.185.234.48