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
7c3fb6bf
Commit
7c3fb6bf
authored
Jun 30, 2015
by
Stéphane Graber
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #545 from bogen/master
The yum in Centos 5.11 does not know about '--releasever', which is u…
parents
a42989df
75d87a4b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
lxc-centos.in
templates/lxc-centos.in
+5
-3
No files found.
templates/lxc-centos.in
View file @
7c3fb6bf
...
...
@@ -413,10 +413,12 @@ download_centos()
# download a mini centos into a cache
echo
"Downloading centos minimal ..."
YUM0
=
"yum --installroot
$INSTALL_ROOT
-y --nogpgcheck"
if
yum
-h
|
grep
-q
'releasever=RELEASEVER'
;
then
YUM
=
"yum --installroot
$INSTALL_ROOT
-y --nogpgcheck
--releasever=
$release
"
YUM
=
"
$YUM0
--releasever=
$release
"
else
YUM
=
"yum --installroot
$INSTALL_ROOT
-y --nogpgcheck
"
YUM
=
"
$YUM0
"
fi
PKG_LIST
=
"yum initscripts passwd rsyslog vim-minimal openssh-server openssh-clients dhclient chkconfig rootfiles policycoreutils"
...
...
@@ -483,7 +485,7 @@ EOF
mknod
-m
666
$INSTALL_ROOT
/
$INSTALL_ROOT
/dev/urandom c 1 9
mkdir
-p
$INSTALL_ROOT
/
$INSTALL_ROOT
/var/cache/yum
cp
-al
$INSTALL_ROOT
/var/cache/yum/
*
$INSTALL_ROOT
/
$INSTALL_ROOT
/var/cache/yum/
chroot
$INSTALL_ROOT
$YUM
install
$PKG_LIST
chroot
$INSTALL_ROOT
$YUM
0
install
$PKG_LIST
if
[
$?
-ne
0
]
;
then
echo
"Failed to download the rootfs, aborting."
return
1
...
...
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