Skip to content

Commit

Permalink
packrootfs: add cpio installation status check
Browse files Browse the repository at this point in the history
Signed-off-by: Bill Nguyen <[email protected]>
  • Loading branch information
dreamliner787-9 committed Dec 4, 2024
1 parent a996382 commit 80aab3b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/packrootfs
Original file line number Diff line number Diff line change
Expand Up @@ -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=()
Expand Down

0 comments on commit 80aab3b

Please sign in to comment.