openSUSE Forums > openSUSE Build Service (OBS) » %post(aufs-kmp-default) scriptlet failed

Go Back   openSUSE Forums > openSUSE Build Service (OBS)
Forums FAQ Members List Search Today's Posts Mark Forums Read


openSUSE Build Service (OBS) Questions about creating packages for openSUSE and using the Build Service

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-Sep-2009, 08:39
Puzzled Penguin
 
Join Date: Sep 2009
Posts: 2
netket hasn't been rated much yet
Default %post(aufs-kmp-default) scriptlet failed

Hello,

i built the rpm aufs-kmp-default-cvs20081020_2.6.27.7_9.1-1.26.rpm from source and tried to install it using init_buildsystem in a chroot environment.

This ended up in the following error:
Code:
error: %post(aufs-kmp-default-cvs20081020_2.6.27.7_9.1-1.26.i586) scriptlet failed, exit status 1
The corresponding %post scriptlet looks as follows:
Code:
rpm -qp --scripts aufs-kmp-default-cvs20081020_2.6.27.7_9.1-1.26.i586.rpm
>> postinstall scriptlet (using /bin/sh):
>> version=cvs20081020_2.6.27.7_9.1
>> nvr=aufs-kmp-default-$version-1.26
>> wm2=/usr/lib/module-init-tools/weak-modules2
>> if [ -x $wm2 ]; then
>>     $wm2 --add-kmp $nvr
>> fi
As investigated so far (which might be wrong ...) the scriptlet fails because the rpm is not installed in the running system but within chroot environment.

As a consequence i would like to remove the (%post) scriptlet from my built rpm. During investigation i found http://developer.novell.com/wiki/ima...mpm-code10.pdf, which mentions the "-s" option of %suse_kernel_module_package to modify the default script behaviour. Unfortunately so far i failed in writing an appropriate sub-package-spec. Any hints (e.g. the mentioned default-template, which actually adds the post-scriptlet) are highly appreciated.

Rüdiger
Reply With Quote
  #2 (permalink)  
Old 02-Sep-2009, 10:12
Puzzled Penguin
 
Join Date: Sep 2008
Posts: 4
mseben hasn't been rated much yet
Default Re: %post(aufs-kmp-default) scriptlet failed

do you have /dev and /proc mounted in your chroot ?
mount -t proc none /pathtochroot/proc
mount -o bind /dev /pathtochroot/dev
Reply With Quote
  #3 (permalink)  
Old 03-Sep-2009, 01:13
Puzzled Penguin
 
Join Date: Sep 2009
Posts: 2
netket hasn't been rated much yet
Default Re: %post(aufs-kmp-default) scriptlet failed

Yes, i think the init_buildsystem script provided by SUSE mounts those directories, but slightly different:

Code:
mkdir -p $BUILD_ROOT/proc
mkdir -p $BUILD_ROOT/dev/pts
mount -n -tproc none $BUILD_ROOT/proc 2>/dev/null || true
mount -n -tdevpts none $BUILD_ROOT/dev/pts 2>/dev/null || true
$BUILD_ROOT equals /pathtochroot from below.

Rüdiger
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2