mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-01 13:58:04 +00:00
sysroot user management postinsts: run with /bin/sh -e to report errors when they happen
This exposes the following failure in a multilib setup, when everything up to do_package_write_rpm is in sstate, but do_package_write_rpm is not (there's a similar fail for lib64-man-db, and the failures themselves will be fixed separately in the next commit): Exception: subprocess.CalledProcessError: Command '/srv/storage/alex/yocto/build-multilib/tmp/work/x86_64-pokymllib64-linux/lib64-quilt/0.67/recipe-sysroot/usr/bin/postinst-base-passwd' returned non-zero exit status 1. Subprocess output: install: cannot stat '/srv/storage/alex/yocto/build-multilib/tmp/work/x86_64-pokymllib64-linux/lib64-quilt/0.67/lib64-recipe-sysroot/usr/share/base-passwd/passwd.master': No such file or directory (From OE-Core rev: 5ffa333db28bc5d8e440c983fdf95589d332461d) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
fd0980f74f
commit
ed08180608
|
|
@ -167,7 +167,7 @@ python useradd_sysroot_sstate () {
|
|||
if scriptfile:
|
||||
bb.utils.mkdirhier(os.path.dirname(scriptfile))
|
||||
with open(scriptfile, 'w') as script:
|
||||
script.write("#!/bin/sh\n")
|
||||
script.write("#!/bin/sh -e\n")
|
||||
bb.data.emit_func("useradd_sysroot", script, d)
|
||||
script.write("useradd_sysroot\n")
|
||||
os.chmod(scriptfile, 0o755)
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ do_install () {
|
|||
}
|
||||
|
||||
basepasswd_sysroot_postinst() {
|
||||
#!/bin/sh
|
||||
#!/bin/sh -e
|
||||
|
||||
# Install passwd.master and group.master to sysconfdir
|
||||
install -d -m 755 ${STAGING_DIR_TARGET}${sysconfdir}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user