Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-system-image
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johannes Schauer Marin Rodrigues
reform-system-image
Commits
29b3c766
Unverified
Commit
29b3c766
authored
3 years ago
by
Johannes Schauer Marin Rodrigues
Browse files
Options
Downloads
Patches
Plain Diff
check whether all required packages are installed
parent
eca38a6c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
reform2-imx8mq/mkimage.sh
+16
-2
16 additions, 2 deletions
reform2-imx8mq/mkimage.sh
with
16 additions
and
2 deletions
reform2-imx8mq/mkimage.sh
+
16
−
2
View file @
29b3c766
...
...
@@ -4,8 +4,22 @@ set -x
set
-e
# make sure build tools are installed
# FIXME: replace this by a check that everything is installed
#sudo apt-get -y install parted multistrap udisks2 gcc-aarch64-linux-gnu make device-tree-compiler qemu-user-static binfmt-support build-essential bison flex libssl-dev mmdebstrap
DEPS
=
"mmdebstrap genext2fs e2fsprogs binfmt-support git mount arch-test qemu-user-static parted"
if
[
"
$(
dpkg-query
--showformat
'${db:Status-Status}\n'
--show
$DEPS
|
sort
-u
)
"
!=
"installed"
]
;
then
echo
"Not all dependencies of this script are installed."
echo
"Run the following command to install them:"
echo
echo
" sudo apt install
$DEPS
"
exit
1
fi
if
dpkg
--compare-versions
"
$(
dpkg-query
--showformat
=
'${Version}\n'
--show
mmdebstrap
)
"
lt
"0.8.4-1"
;
then
echo
"mmdebstrap version must be >= 0.8.4-1"
exit
1
fi
if
dpkg
--compare-versions
"
$(
dpkg-query
--showformat
=
'${Version}\n'
--show
genext2fs
)
"
lt
"1.5.0-2"
;
then
echo
"genext2fs version must be >= 1.5.0-2"
exit
1
fi
# if we are in a git repository and if SOURCE_DATE_EPOCH is not set, use the
# timestamp of the latest git commit
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment