Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
M
manjaro-arm-installer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
8
Issues
8
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
manjaro-arm
applications
manjaro-arm-installer
Commits
45693a02
Commit
45693a02
authored
Jan 04, 2019
by
Dan Johansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix dependency checks.... I think...
parent
2ac3554d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
31 deletions
+31
-31
manjaro-arm-installer
manjaro-arm-installer
+31
-31
No files found.
manjaro-arm-installer
View file @
45693a02
...
...
@@ -2,7 +2,7 @@
# Set globals
TMPDIR
=
/var/tmp/manjaro-arm-installer
PROFILES
=
/var/tmp/manjaro-arm-installer/profiles
#
PROFILES=/var/tmp/manjaro-arm-installer/profiles
ARCH
=
'aarch64'
# clearing variables
...
...
@@ -16,28 +16,28 @@ SDCARD=""
#LOCALE=""
# Sanity checks for dependencies
#if [ ! -f /usr/bin/sudo ]
#
echo "sudo command is missing! Please install sudo!"
#
exit 1
# elif [ ! -f /usr/bin/git ]
#
echo "git command is missing! Please install git!"
#
exit 1
# elif [ ! -f /usr/bin/parted ]
#
echo "parted command is missing! Please install parted!"
#
exit 1
# elif [ ! -f /usr/bin/systemd-nspawn ]
#
echo "systemd-nspawn command is missing! Please install systemd!"
#
exit 1
# elif [ ! -f /usr/bin/wget ]
#
echo "wget command is missing! Please install wget!"
#
exit 1
# elif [ ! -f /usr/bin/dialog ]
#
echo "dialog command is missing! Please install dialog!"
#
exit 1
# elif [ ! -f /usr/bin/bsdtar ]
#
echo "bsdtar command is missing! Please install libarchive!"
#
exit 1
#
fi
if
[
!
-f
/usr/bin/sudo
]
;
then
echo
"sudo command is missing! Please install sudo!"
exit
1
elif
[
!
-f
/usr/bin/git
]
;
then
echo
"git command is missing! Please install git!"
exit
1
elif
[
!
-f
/usr/bin/parted
]
;
then
echo
"parted command is missing! Please install parted!"
exit
1
elif
[
!
-f
/usr/bin/systemd-nspawn
]
;
then
echo
"systemd-nspawn command is missing! Please install systemd!"
exit
1
elif
[
!
-f
/usr/bin/wget
]
;
then
echo
"wget command is missing! Please install wget!"
exit
1
elif
[
!
-f
/usr/bin/dialog
]
;
then
echo
"dialog command is missing! Please install dialog!"
exit
1
elif
[
!
-f
/usr/bin/bsdtar
]
;
then
echo
"bsdtar command is missing! Please install libarchive!"
exit
1
fi
# Functions
...
...
@@ -72,14 +72,14 @@ show_elapsed_time(){
}
getarmprofiles
()
{
if
ls
$
PROFILES
/arm-profiles/
*
1> /dev/null 2>&1
;
then
cd
$
PROFILES
/arm-profiles
git pull
if
ls
$
TMPDIR
/arm-profiles/
*
1> /dev/null 2>&1
;
then
cd
$
TMPDIR
/arm-profiles
git pull
1> /dev/null 2>&1
else
sudo mkdir
-p
$
PROFILES
sudo chmod
777
$
PROFILES
cd
$
PROFILES
git clone https://gitlab.com/Strit/arm-profiles.git
sudo mkdir
-p
$
TMPDIR
sudo chmod
777
$
TMPDIR
cd
$
TMPDIR
git clone https://gitlab.com/Strit/arm-profiles.git
1> /dev/null 2>&1
fi
}
...
...
@@ -107,7 +107,7 @@ create_install() {
msg
"Installing packages for
$EDITION
on
$DEVICE
..."
# Install device and editions specific packages
sudo
systemd-nspawn
-D
$TMPDIR
/root pacman
-Syy
base
$PKG_DEVICE
$PKG_EDITION
lsb-release
--needed
--noconfirm
sudo
systemd-nspawn
-D
$TMPDIR
/root pacman
-Syy
base
$PKG_DEVICE
$PKG_EDITION
--needed
--noconfirm
msg
"Enabling services..."
# Enable services
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment