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
88753f7a
Commit
88753f7a
authored
Jan 06, 2016
by
Vaidas Kascėnas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update lxc-ubuntu.in
Updated as per request in
https://github.com/lxc/lxc/pull/740#discussion-diff-48759756
Signed-off-by: Vaidas Kascėnas vaidas@kascenas.lt
parent
9d95ca97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
lxc-ubuntu.in
templates/lxc-ubuntu.in
+7
-3
No files found.
templates/lxc-ubuntu.in
View file @
88753f7a
...
...
@@ -332,6 +332,7 @@ download_ubuntu()
release
=
$3
packages_template
=
${
packages_template
:-
"ssh,vim"
}
debootstrap_parameters
=
# Try to guess a list of langpacks to install
langpacks
=
"language-pack-en"
...
...
@@ -343,7 +344,10 @@ download_ubuntu()
fi
packages_template
=
"
${
packages_template
}
,
$(
echo
$langpacks
|
sed
's/ /,/g'
)
"
if
[
$variant
==
'minbase'
]
;
then
if
[
-n
"
$variant
"
]
;
then
debootstrap_parameters
=
"
$debootstrap_parameters
--variant=
$variant
"
fi
if
[
$variant
=
'minbase'
]
;
then
packages_template
=
"
${
packages_template
}
,sudo,ifupdown,isc-dhcp-client"
fi
...
...
@@ -361,9 +365,9 @@ download_ubuntu()
# download a mini ubuntu into a cache
echo
"Downloading ubuntu
$release
minimal ..."
if
[
-n
"
$(
which qemu-debootstrap
)
"
]
;
then
qemu-debootstrap
--verbose
$
(if
[
-n
"
$variant
"
]
;
then
echo
--variant
=
"
$variant
"
;
fi)
--components
=
main,universe
--arch
=
$arch
--include
=
${
packages_template
}
$release
$cache
/partial-
$arch
$MIRROR
qemu-debootstrap
--verbose
$
debootstrap_parameters
--components
=
main,universe
--arch
=
$arch
--include
=
${
packages_template
}
$release
$cache
/partial-
$arch
$MIRROR
else
debootstrap
--verbose
$
(if
[
-n
"
$variant
"
]
;
then
echo
--variant
=
"
$variant
"
;
fi)
--components
=
main,universe
--arch
=
$arch
--include
=
${
packages_template
}
$release
$cache
/partial-
$arch
$MIRROR
debootstrap
--verbose
$
debootstrap_parameters
--components
=
main,universe
--arch
=
$arch
--include
=
${
packages_template
}
$release
$cache
/partial-
$arch
$MIRROR
fi
if
[
$?
-ne
0
]
;
then
...
...
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