You are not logged in.
Hey guys, I just built a kernel for the first time (yay), but Im having trouble installing it via pacman. I followed the instructions on http://wiki.archlinux.org/index.php/Ker … rom_Source and opted for the 2nd approach. Here's what happens when I try deploy the package:
[foosoft@misato ~]$ sudo pacman -U kernel26-my-2.6.31.6-1-x86_64.pkg.tar.gz
loading package data...
checking dependencies...
(1/1) checking for file conflicts [#####################] 100%
(1/1) upgrading kernel26-my [#####################] 100%
>>> Updating module dependencies...
>>> Creating initial ramdisk...
mkinitcpio: usage
-c CONFIG Use CONFIG file. default: /etc/mkinitcpio.conf
-k KERNELVERSION Use KERNELVERSION. default: 2.6.31-ARCH
-s NAME Save filelist. default: no
-b BASEDIR Use BASEDIR. default: /
-g IMAGE Generate a cpio image as IMAGE. default: no
-a NAME Append to an existing filelist. default: no
-p PRESET Build specified preset.
-m MESSAGE Print MESSAGE before passing control to kinit.
-S SKIPHOOKS Skip SKIPHOOKS (comma-separated) when building the image.
-v Verbose output. Default: no
-M Display modules found via autodetection.
-L List all available hooks.
-H HOOKNAME Output help for hook 'HOOKNAME'.
-h This message.
/tmp/alpm_Yy9wjl/.INSTALL: line 17: /boot/kernel26-ARCH_CUSTOM.img: No such file or directory
error: command failed to execute correctly
[foosoft@misato ~]$ cd /boot
[foosoft@misato boot]$ ls
System.map26 kernel26-fallback.img vmlinuz26-ARCH_CUSTOM
System.map26-ARCH_CUSTOM kernel26.img
grub vmlinuz26Here are the PCKGBUILD and .install files that I used
pkgname=kernel26-my
basekernel=2.6.31.6
pkgver=2.6.31.6
pkgrel=1
pkgdesc="The Linux Kernel and modules"
arch=('x86_64')
license=('GPL')
url="http://www.kernel.org"
depends=('module-init-tools' 'mkinitcpio')
provides=(kernel26)
install=kernel26.install
build() {
LOCAL_VERSION="$(grep "CONFIG_LOCALVERSION=" $startdir/.config | sed 's/.*"\(.*\)"/\1/')"
cd ..
make || return 1
mkdir -p $startdir/pkg/{lib/modules,boot}
make INSTALL_MOD_PATH=$startdir/pkg modules_install || return 1
# There's no separation of firmware depending on kernel version -
# comment this line if you intend on using the built kernel exclusively,
# otherwise there'll be file conflicts with the existing kernel
rm -rf $startdir/pkg/lib/firmware
install -Dm644 "System.map" "$startdir/pkg/boot/System.map26$LOCAL_VERSION"
install -Dm644 "arch/x86/boot/bzImage" "$startdir/pkg/boot/vmlinuz26$LOCAL_VERSION"
# Change the version strings in kernel26.install
sed -i \
-e "s/KERNEL_VERSION=.*/KERNEL_VERSION=\"$basekernel\"/" \
-e "s/LOCAL_VERSION=.*/LOCAL_VERSION=\"$LOCAL_VERSION\"/" \
$startdir/kernel26.install
}KERNEL_VERSION="2.6.31.6"
LOCAL_VERSION="-ARCH_CUSTOM"
post_install () {
echo ">>> Updating module dependencies..."
/sbin/depmod -A -v ${KERNEL_VERSION}${LOCAL_VERSION}
echo ">>> Creating initial ramdisk..."
mkinitcpio -k "${KERNEL_VERSION}${LOCAL_VERSION}" -g
"/boot/kernel26${LOCAL_VERSION}.img"
}
post_upgrade() {
echo ">>> Updating module dependencies..."
/sbin/depmod -A -v ${KERNEL_VERSION}${LOCAL_VERSION}
echo ">>> Creating initial ramdisk..."
mkinitcpio -k "${KERNEL_VERSION}${LOCAL_VERSION}" -g
"/boot/kernel26${LOCAL_VERSION}.img"
}What am I doing wrong?
Last edited by FooSoft (2009-12-01 03:34:21)
Offline
The mkinitcpio lines in your install file are wrapped.
Offline
Doh!
Foiled by line wraps in nano. I'll try this at home and mark this as SOLVED if it works. Thanks!
Offline