Adding dependency check for cpio in chroot-includes.
authorDaniel Baumann <mail@daniel-baumann.ch>
Mon, 4 Nov 2013 17:27:57 +0000 (18:27 +0100)
committerDaniel Baumann <mail@daniel-baumann.ch>
Mon, 4 Nov 2013 17:27:57 +0000 (18:27 +0100)
components/chroot-includes

index f4c5d46..625256e 100755 (executable)
@@ -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: