From 46e61207b3c95fadd58a86b67e9b47cf19bd9f7d Mon Sep 17 00:00:00 2001 From: Bill Nguyen Date: Thu, 5 Dec 2024 09:44:19 +1100 Subject: [PATCH] packrootfs: add cpio installation status check Signed-off-by: Bill Nguyen --- tools/packrootfs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/packrootfs b/tools/packrootfs index 4adbeda44..c856a4dc5 100755 --- a/tools/packrootfs +++ b/tools/packrootfs @@ -9,6 +9,12 @@ if [ $# -lt 2 ]; then exit 1 fi +which cpio >/dev/null +if [ "$?" != 0 ]; then + echo "packrootfs: Please install CPIO" + exit 1 +fi + rootfs=$1 tmpdir=$2 startup_files=()