mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-24 07:01:13 +02:00
This shortens the standard boilerplate for finding and sourcing shell function libraries for build_image, mod_image_for_test.sh and mod_image_for_recovery.sh. As a side effect of the change, both mod_image_for_test.sh and mod_image_for_recovery.sh will now restart inside the chroot if invoked from outside; this is consistent with the pre-existing behavior of build_image. BUG=None TEST=run the three scripts, from both inside and outside the chroot Change-Id: Idd91cbee323346a871b49deea31a76875f5ee3c4 Reviewed-on: http://gerrit.chromium.org/gerrit/4675 Tested-by: Richard Barnette <jrbarnette@chromium.org> Reviewed-by: Vince Laviano <vlaviano@chromium.org>