Skip to content

Commit

Permalink
Set build user to root for docker/fissile builds
Browse files Browse the repository at this point in the history
Otherwise unpacking of obscpio files will fail. The build is
done as root anyway.
  • Loading branch information
mlschroe committed Jun 22, 2018
1 parent b660b03 commit 7d76938
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -1308,6 +1308,10 @@ for RECIPEFILE in "${RECIPEFILES[@]}" ; do
imagetype=$(perl -I$BUILD_DIR -MBuild::Kiwi -e Build::Kiwi::show $RECIPEFILE imagetype)
test "$imagetype" = product || BUILD_USER=root
fi
# same with docker and fissile builds
if test "$BUILDTYPE" = docker -o "$BUILDTYPE" = fissile ; then
BUILD_USER=root
fi

# fixup passwd/group
if test $BUILD_USER = abuild ; then
Expand Down

0 comments on commit 7d76938

Please sign in to comment.