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
cb54b579
Commit
cb54b579
authored
Jun 24, 2017
by
Christian Brauner
Committed by
GitHub
Jun 24, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1645 from evgeni/centos-altarch
use altarch mirror for CentOS on arches other than i386 and x86_64
parents
58c89a14
e54bd54f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
lxc-centos.in
templates/lxc-centos.in
+14
-1
No files found.
templates/lxc-centos.in
View file @
cb54b579
...
@@ -424,6 +424,9 @@ download_centos()
...
@@ -424,6 +424,9 @@ download_centos()
PKG_LIST
=
"yum initscripts passwd rsyslog vim-minimal openssh-server openssh-clients dhclient chkconfig rootfiles policycoreutils cronie"
PKG_LIST
=
"yum initscripts passwd rsyslog vim-minimal openssh-server openssh-clients dhclient chkconfig rootfiles policycoreutils cronie"
# use temporary repository definition
# use temporary repository definition
# always prefer the repo given by the user
# if no repo given, use mirrorlist.centos.org for i386 and x86_64
# and http://mirror.centos.org/altarch/ otherwise
REPO_FILE
=
$INSTALL_ROOT
/etc/yum.repos.d/lxc-centos-temp.repo
REPO_FILE
=
$INSTALL_ROOT
/etc/yum.repos.d/lxc-centos-temp.repo
mkdir
-p
$(
dirname
$REPO_FILE
)
mkdir
-p
$(
dirname
$REPO_FILE
)
if
[
-n
"
$repo
"
]
;
then
if
[
-n
"
$repo
"
]
;
then
...
@@ -432,7 +435,7 @@ download_centos()
...
@@ -432,7 +435,7 @@ download_centos()
name=local repository
name=local repository
baseurl="
$repo
"
baseurl="
$repo
"
EOF
EOF
else
elif
[
${
basearch
}
=
'i386'
]
||
[
${
basearch
}
=
'x86_64'
]
;
then
cat
<<
EOF
>
$REPO_FILE
cat
<<
EOF
>
$REPO_FILE
[base]
[base]
name=CentOS-
$release
- Base
name=CentOS-
$release
- Base
...
@@ -442,6 +445,16 @@ mirrorlist=http://mirrorlist.centos.org/?release=$release&arch=$basearch&repo=os
...
@@ -442,6 +445,16 @@ mirrorlist=http://mirrorlist.centos.org/?release=$release&arch=$basearch&repo=os
name=CentOS-
$release
- Updates
name=CentOS-
$release
- Updates
mirrorlist=http://mirrorlist.centos.org/?release=
$release
&arch=
$basearch
&repo=updates
mirrorlist=http://mirrorlist.centos.org/?release=
$release
&arch=
$basearch
&repo=updates
EOF
EOF
else
cat
<<
EOF
>
$REPO_FILE
[base]
name=CentOS-
$release
- Base
baseurl=http://mirror.centos.org/altarch/7/os/
$basearch
/
[updates]
name=CentOS-
$release
- Updates
baseurl=http://mirror.centos.org/altarch/7/updates/
$basearch
/
EOF
fi
fi
# create minimal device nodes, needed for "yum install" and "yum update" process
# create minimal device nodes, needed for "yum install" and "yum update" process
...
...
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