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
dc801c70
Commit
dc801c70
authored
Mar 26, 2016
by
Stéphane Graber
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #925 from evgeni/debian-main-only
only enable Debian's main repository by default
parents
a6ab0d4d
57b40c08
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
lxc-debian.in
templates/lxc-debian.in
+4
-3
No files found.
templates/lxc-debian.in
View file @
dc801c70
...
@@ -512,7 +512,7 @@ Options :
...
@@ -512,7 +512,7 @@ Options :
--packages=PACKAGE_NAME1,PACKAGE_NAME2,...
--packages=PACKAGE_NAME1,PACKAGE_NAME2,...
List of additional packages to install. Comma separated, without space.
List of additional packages to install. Comma separated, without space.
-c, --clean only clean up the cache and terminate
-c, --clean only clean up the cache and terminate
--
main-only include only Debian's main repository (i.e. no contrib and non-free)
.
--
enable-non-free include also Debian's contrib and non-free repositories
.
Environment variables:
Environment variables:
...
@@ -525,7 +525,7 @@ EOF
...
@@ -525,7 +525,7 @@ EOF
return
0
return
0
}
}
options
=
$(
getopt
-o
hp:n:a:r:c
-l
arch
:,clean,help,
main-only
,mirror:,name:,packages:,path:,release:,rootfs:,security-mirror:
--
"
$@
"
)
options
=
$(
getopt
-o
hp:n:a:r:c
-l
arch
:,clean,help,
enable-non-free
,mirror:,name:,packages:,path:,release:,rootfs:,security-mirror:
--
"
$@
"
)
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
usage
$(
basename
$0
)
usage
$(
basename
$0
)
exit
1
exit
1
...
@@ -541,6 +541,7 @@ elif [ "$arch" = "armv7l" ]; then
...
@@ -541,6 +541,7 @@ elif [ "$arch" = "armv7l" ]; then
arch
=
"armhf"
arch
=
"armhf"
fi
fi
hostarch
=
$arch
hostarch
=
$arch
mainonly
=
1
while
true
while
true
do
do
...
@@ -550,7 +551,7 @@ do
...
@@ -550,7 +551,7 @@ do
-a
|
--arch
)
arch
=
$2
;
shift
2
;;
-a
|
--arch
)
arch
=
$2
;
shift
2
;;
-c
|
--clean
)
clean
=
1
;
shift
1
;;
-c
|
--clean
)
clean
=
1
;
shift
1
;;
--
main-only
)
mainonly
=
1
;
shift
1
;;
--
enable-non-free
)
mainonly
=
0
;
shift
1
;;
--mirror
)
MIRROR
=
$2
;
shift
2
;;
--mirror
)
MIRROR
=
$2
;
shift
2
;;
-n
|
--name
)
name
=
$2
;
shift
2
;;
-n
|
--name
)
name
=
$2
;
shift
2
;;
--packages
)
packages
=
$2
;
shift
2
;;
--packages
)
packages
=
$2
;
shift
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