summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2013-11-04 18:27:57 +0100
committerDaniel Baumann <mail@daniel-baumann.ch>2013-11-04 18:27:57 +0100
commite9d44e95a5b7ea885d624658b02d6658666c0ad0 (patch)
treec6d484f7405aff9b4a7b9150a6eaec305a8ddf4e
parent6115270556392a850cc5e8b5ced2ad18ba8a58c1 (diff)
downloadvyos-live-build-e9d44e95a5b7ea885d624658b02d6658666c0ad0.tar.gz
vyos-live-build-e9d44e95a5b7ea885d624658b02d6658666c0ad0.zip
Adding dependency check for cpio in chroot-includes.
-rwxr-xr-xcomponents/chroot-includes12
1 files changed, 12 insertions, 0 deletions
diff --git a/components/chroot-includes b/components/chroot-includes
index f4c5d46db..625256efc 100755
--- a/components/chroot-includes
+++ b/components/chroot-includes
@@ -59,6 +59,18 @@ def main():
sys.exit(1)
+ if not os.path.isfile('/bin/cpio'):
+ print('E: /bin/cpio - no such file', file=sys.stderr)
+
+ if verbose:
+ print('I: cpio can be optained from:\n'
+ 'I: http://www.gnu.org/software/cpio/\n'
+ 'I: http://ftp.gnu.org/gnu/cpio/\n'
+ 'I: On Debian based systems, cpio can be installed with:\n'
+ 'I: # sudo apt-get install cpio')
+
+ sys.exit(1)
+
# includes
if not glob.glob('config/includes/*') and not glob.glob('config/includes/.*') and not glob.glob('config/includes.chroot/*') and not glob.glob('config/includes.chroot/.*'):
if verbose: