Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
6f943dd9
Commit
6f943dd9
authored
Aug 15, 2016
by
James Cowgill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
templates: Add mips hostarch detection to debian
Signed-off-by:
James Cowgill
<
james410@cowgill.org.uk
>
parent
2ccd9eda
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
lxc-debian.in
templates/lxc-debian.in
+14
-0
No files found.
templates/lxc-debian.in
View file @
6f943dd9
...
@@ -647,6 +647,8 @@ if [ $? -ne 0 ]; then
...
@@ -647,6 +647,8 @@ if [ $? -ne 0 ]; then
fi
fi
eval set
--
"
$options
"
eval set
--
"
$options
"
littleendian
=
$(
lscpu |
grep
'^Byte Order'
|
grep
-q
Little
&&
echo yes
)
arch
=
$(
uname
-m
)
arch
=
$(
uname
-m
)
if
[
"
$arch
"
=
"i686"
]
;
then
if
[
"
$arch
"
=
"i686"
]
;
then
arch
=
"i386"
arch
=
"i386"
...
@@ -654,6 +656,10 @@ elif [ "$arch" = "x86_64" ]; then
...
@@ -654,6 +656,10 @@ elif [ "$arch" = "x86_64" ]; then
arch
=
"amd64"
arch
=
"amd64"
elif
[
"
$arch
"
=
"armv7l"
]
;
then
elif
[
"
$arch
"
=
"armv7l"
]
;
then
arch
=
"armhf"
arch
=
"armhf"
elif
[
"
$arch
"
=
"mips"
-a
"
$littleendian
"
=
"yes"
]
;
then
arch
=
"mipsel"
elif
[
"
$arch
"
=
"mips64"
-a
"
$littleendian
"
=
"yes"
]
;
then
arch
=
"mips64el"
fi
fi
hostarch
=
$arch
hostarch
=
$arch
mainonly
=
1
mainonly
=
1
...
@@ -711,6 +717,14 @@ if [ "$interpreter" = "" ] ; then
...
@@ -711,6 +717,14 @@ if [ "$interpreter" = "" ] ; then
echo
"can't create
$arch
container on
$hostarch
"
echo
"can't create
$arch
container on
$hostarch
"
exit
1
exit
1
fi
fi
if
[
$hostarch
=
"mips"
-a
$arch
!=
"mips"
]
||
\
[
$hostarch
=
"mipsel"
-a
$arch
!=
"mipsel"
]
||
\
[
$hostarch
=
"mips64"
-a
$arch
!=
"mips"
-a
$arch
!=
"mips64"
]
||
\
[
$hostarch
=
"mips64el"
-a
$arch
!=
"mipsel"
-a
$arch
!=
"mips64el"
]
;
then
echo
"can't create
$arch
container on
$hostarch
"
exit
1
fi
else
else
if
!
file
-b
"
${
interpreter
}
"
|grep
-q
"statically linked"
;
then
if
!
file
-b
"
${
interpreter
}
"
|grep
-q
"statically linked"
;
then
echo
"'
${
interpreter
}
' must be statically linked"
1>&2
echo
"'
${
interpreter
}
' must be statically linked"
1>&2
...
...
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