Skip to content

Commit

Permalink
- kiwi appliance gets build as root, take care on .build.packages lin…
Browse files Browse the repository at this point in the history
…k creation

- export created rpms of kiwi builds in VM's
  • Loading branch information
adrianschroeter committed Jun 25, 2012
1 parent e03027c commit bd1c085
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build
Original file line number Diff line number Diff line change
Expand Up @@ -1867,6 +1867,12 @@ for SPECFILE in "${SPECFILES[@]}" ; do
fi
test -n "$NOROOTFORBUILD" && BUILD_USER=abuild

# appliance builds must run as root
if test "$BUILDTYPE" = kiwi; then
imagetype=$(perl -I$BUILD_DIR -MBuild::Kiwi -e Build::Kiwi::show $SPECFILE imagetype)
test "$imagetype" = 'product' || BUILD_USER=root
fi

if test $BUILD_USER = abuild ; then
if ! egrep '^abuild:' >/dev/null <$BUILD_ROOT/etc/passwd ; then
echo "abuild:x:${ABUILD_UID}:${ABUILD_GID}:Autobuild:/home/abuild:/bin/bash" >>$BUILD_ROOT/etc/passwd
Expand Down Expand Up @@ -2304,7 +2310,7 @@ if test -n "$RUNNING_IN_VM" -a -n "$VM_SWAP"; then
computeblocklists $args $TOPDIR/DEBS/*.deb $TOPDIR/SOURCES.DEB/* $TOPDIR/OTHER/* > "$VM_SWAP"
;;
kiwi)
computeblocklists $args $TOPDIR/KIWI/* $TOPDIR/OTHER/* > "$VM_SWAP"
computeblocklists $args $TOPDIR/KIWI/* $TOPDIR/RPMS/*/*.{d,}rpm $TOPDIR/OTHER/* > "$VM_SWAP"
;;
arch)
computeblocklists $args $TOPDIR/ARCHPKGS/* $TOPDIR/OTHER/* > "$VM_SWAP"
Expand Down

0 comments on commit bd1c085

Please sign in to comment.