OVH Community, your new community space.

Debian Kernel kompilieren


shippo
22.08.08, 00:04
Could not find postinst hook script [update-grub].
Hatte das auch mal glaube das lag daran das grub nicht installiert war.

PsYDoX
21.08.08, 15:09
Soweit sogut..

Beim installieren dashier:

Code:
/usr/src# dpkg -i linux-image-2.6.26-grsec_etch.personal1_i386.deb
Wähle vormals abgewähltes Paket linux-image-2.6.26-grsec.
(Lese Datenbank ... 26555 Dateien und Verzeichnisse sind derzeit installiert.)
Entpacke linux-image-2.6.26-grsec (aus linux-image-2.6.26-grsec_etch.personal1_i386.deb) ...
Done.
Richte linux-image-2.6.26-grsec ein (etch.personal1) ...
Could not find postinst hook script [update-grub].
Looked in: '/bin', '/sbin', '/usr/bin', '/usr/sbin'
dpkg: Fehler beim Bearbeiten von linux-image-2.6.26-grsec (--install):
 Unterprozess post-installation script gab den Fehlerwert 2 zurück
Fehler traten auf beim Bearbeiten von:
 linux-image-2.6.26-grsec
erledigt: hatte ne falsche anleitung -.-

PsYDoX
21.08.08, 14:47
Zitat Zitat von f.schütze
Geh mal in die .config rein und ändere folgendes:
Code:
CONFIG_LOCALVERSION="-xxxx-std-ipv4-32"
auf
Code:
CONFIG_LOCALVERSION=""
danke, teste ich mal.. gebe dann feedback

f.schütze
21.08.08, 14:36
Geh mal in die .config rein und ändere folgendes:
Code:
CONFIG_LOCALVERSION="-xxxx-std-ipv4-32"
auf
Code:
CONFIG_LOCALVERSION=""

PsYDoX
21.08.08, 12:10
Ich wollte gerne einen eigenen Debian Kernel kompilieren...

Da hab ich mir die Anleitung zu Herzen genommen:
http://wiki.nixhelp.de/doku.php/howto/kernel_patchen

Als Kernel habe ich genommen:
linux-2.6.26.2.tar.gz

Als grsecurity Patch:
grsecurity-2.1.12-2.6.26.2-200808171148.patch

Als config:
2.6-config-xxxx-std-ipv4-32

Und dann Angefangen zu kompilieren.

Am ende bekomme ich 2 Fehler..

Code:
make[1]: Leaving directory `/usr/src/linux-2.6.26.2'
COLUMNS=150 dpkg -l 'gcc*' perl dpkg 'libc6*' binutils make dpkg-dev |\
         awk '$1 ~ /[hi]i/ { printf("%s-%s\n", $2, $3) }'> debian/buildinfo
uname -a >> debian/buildinfo
echo using the compiler: >> debian/buildinfo
grep LINUX_COMPILER include/linux/compile.h | \
           sed -e 's/.*LINUX_COMPILER "//' -e 's/"$//' >> debian/buildinfo
echo applied kernel patches: >> debian/buildinfo
echo done > debian/stamp-build-kernel
====== making target install/linux-image-2.6.26.2-grsec [new prereqs: ]======
This is kernel package version 10.067.
echo "The UTS Release version in include/linux/utsrelease.h"; echo "     \"2.6.26.2-grsec-xxxx-std-ipv4-32\" "; echo "does not match current version:"; echo "     \"2.6.26.2-grsec\" "; echo "Please correct this."; exit 2
The UTS Release version in include/linux/utsrelease.h
     "2.6.26.2-grsec-xxxx-std-ipv4-32"
does not match current version:
     "2.6.26.2-grsec"
Please correct this.
make: *** [install/linux-image-2.6.26.2-grsec] Fehler 2
Kann mir da wer helfen?