public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH 0/2] Fail on the first error inside sudo
@ 2021-12-10  8:10 Anton Mikanovich
  2021-12-10  8:10 ` [PATCH 1/2] rootfs: Execute rmdir only if needed Anton Mikanovich
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Anton Mikanovich @ 2021-12-10  8:10 UTC (permalink / raw)
  To: isar-users; +Cc: Anton Mikanovich

There in no need in further execution if any command failed. But inside
the sudo sections (also with chroot) we didn't have 'set -e' declared.
It leads to incorrect execution of the next code in case of failures.
So adding 'set -e' to exit immediately.

Also fix rmdir which was failed (but masked) on execution if there were
no base-apt used.

Anton Mikanovich (2):
  rootfs: Execute rmdir only if needed
  sudo: Fail on the first error

 meta/classes/deb-dl-dir.bbclass                   | 2 ++
 meta/classes/image-locales-extension.bbclass      | 1 +
 meta/classes/image.bbclass                        | 9 +++++----
 meta/classes/rootfs.bbclass                       | 2 ++
 meta/classes/vm-img.bbclass                       | 1 +
 meta/classes/wic-img.bbclass                      | 1 +
 meta/recipes-devtools/buildchroot/buildchroot.inc | 1 +
 7 files changed, 13 insertions(+), 4 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-12-17 12:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-10  8:10 [PATCH 0/2] Fail on the first error inside sudo Anton Mikanovich
2021-12-10  8:10 ` [PATCH 1/2] rootfs: Execute rmdir only if needed Anton Mikanovich
2021-12-10  8:10 ` [PATCH 2/2] sudo: Fail on the first error Anton Mikanovich
2021-12-17 12:05   ` Henning Schild
2021-12-17 11:04 ` [PATCH 0/2] Fail on the first error inside sudo Anton Mikanovich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox