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 05:16] – old revision restored 91.89.129.106 | project:kernel-autobuild:new-kernel-release [2016/10/24 11:45] (current) – 37.209.107.175 | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| What to do if kernel-autobuild has to be prepared for a new kernel release. | 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) ===== | ||
| < | < | ||
| Line 15: | Line 45: | ||
| mount / | mount / | ||
| mkdir / | 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 / | cd / | ||
| Line 26: | Line 75: | ||
| LASTCONFIG / | 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: | so: | ||
| Line 40: | Line 93: | ||
| [ 0.466592] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0, | [ 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: | prequel: | ||
| Line 71: | Line 126: | ||
| TODO: run vserver' | 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,12c11,12 | ||
| + | < 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.1442286996.txt.gz · Last modified: 2015/09/15 05:16 by 91.89.129.106