Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build-recipe-livebuild: run as root with 'sh -c' instead of 'su -c ... - root' #876

Merged
merged 1 commit into from
Sep 19, 2022

Conversation

bluca
Copy link
Contributor

@bluca bluca commented Sep 18, 2022

livebuild stopped working some time ago:

[ 48s] -----------------------------------------------------------------
[ 48s] ----- building standard.livebuild (user abuild)
[ 48s] -----------------------------------------------------------------
[ 48s] -----------------------------------------------------------------
[ 49s] su: Critical error - immediate abort
[ 50s] su: Critical error - immediate abort

https://build.opensuse.org/package/live_build_log/home:bluca:debian_secure_boot/example-images/img_nokernel/x86_64

Run it as root instead of abuild like other image build systems, and use sh -c.

@bluca bluca marked this pull request as ready for review September 18, 2022 22:55
@@ -193,9 +193,9 @@ recipe_build_livebuild() {

if [ -x $BUILD_ROOT/usr/lib/build/livebuild_pre_run ] ; then
echo "Running OBS build livebuild_pre_run hook"
chroot $BUILD_ROOT su -c \
chroot $BUILD_ROOT sh -c \
"export RECIPEFILE=${RECIPEFILE}; /usr/lib/build/livebuild_pre_run" \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and in the next lines;)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here and below it's running a shell line, not a single command (eg, export or change directory, then run thing), so I don't think I can for this one

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right

…. - root'

livebuild stopped working some time ago:

[   48s] -----------------------------------------------------------------
[   48s] ----- building standard.livebuild (user abuild)
[   48s] -----------------------------------------------------------------
[   48s] -----------------------------------------------------------------
[   49s] su: Critical error - immediate abort
[   50s] su: Critical error - immediate abort

https://build.opensuse.org/package/live_build_log/home:bluca:debian_secure_boot/example-images/img_nokernel/x86_64

Run it as root instead of abuild like other image build systems, and
use sh -c.
@adrianschroeter adrianschroeter merged commit 9dfff45 into openSUSE:master Sep 19, 2022
@bluca bluca deleted the livebuild_sh branch September 19, 2022 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants