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
3256fa17
Commit
3256fa17
authored
Feb 18, 2017
by
Reto Gantenbein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix argument parsing for recently added parameters
Signed-off-by:
Reto Gantenbein
<
reto.gantenbein@linuxmonk.ch
>
parent
e93dfa9c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lxc-fedora.in
templates/lxc-fedora.in
+3
-3
No files found.
templates/lxc-fedora.in
View file @
3256fa17
...
@@ -944,7 +944,7 @@ Template options:
...
@@ -944,7 +944,7 @@ Template options:
--fqdn Fully qualified domain name (FQDN)
--fqdn Fully qualified domain name (FQDN)
-h, --help Print this help text
-h, --help Print this help text
--mask-tmp Prevent systemd from over-mounting /tmp with tmpfs.
--mask-tmp Prevent systemd from over-mounting /tmp with tmpfs.
--mirror=MIRROR Fedora mirror to use during installation.
-M,
--mirror=MIRROR Fedora mirror to use during installation.
-p, --path=PATH Path to where the container will be created,
-p, --path=PATH Path to where the container will be created,
defaults to
${
lxc_path
}
.
defaults to
${
lxc_path
}
.
-P, --packages=PKGS Comma-separated list of additional RPM packages to
-P, --packages=PKGS Comma-separated list of additional RPM packages to
...
@@ -973,7 +973,7 @@ EOF
...
@@ -973,7 +973,7 @@ EOF
return
0
return
0
}
}
options
=
$(
getopt
-o
a:hp:n:cR:dP:
-l
help
,path:,rootfs:,name:,clean,release:,arch:,debug,fqdn:,mask-tmp,mirror:,packages:
--
"
$@
"
)
options
=
$(
getopt
-o
a:hp:n:cR:dP:
M:
-l
help
,path:,rootfs:,name:,clean,release:,arch:,debug,fqdn:,mask-tmp,mirror:,packages:,rsync
--
"
$@
"
)
# shellcheck disable=SC2181
# shellcheck disable=SC2181
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
usage
usage
...
@@ -997,7 +997,7 @@ do
...
@@ -997,7 +997,7 @@ do
-d
|
--debug
)
debug
=
1
;
shift
1
;;
-d
|
--debug
)
debug
=
1
;
shift
1
;;
--fqdn
)
utsname
=
"
${
2
}
"
;
shift
2
;;
--fqdn
)
utsname
=
"
${
2
}
"
;
shift
2
;;
--mask-tmp
)
masktmp
=
1
;
shift
1
;;
--mask-tmp
)
masktmp
=
1
;
shift
1
;;
-
-mirror
)
mirror
=
"
${
2
}
"
;
shift
2
;;
-
M
|
--mirror
)
mirror
=
"
${
2
}
"
;
shift
2
;;
-P
|
--packages
)
packages
=
"
${
2
}
"
;
shift
2
;;
-P
|
--packages
)
packages
=
"
${
2
}
"
;
shift
2
;;
-R
|
--release
)
release
=
"
${
2
}
"
;
shift
2
;;
-R
|
--release
)
release
=
"
${
2
}
"
;
shift
2
;;
--rsync
)
rsync
=
1
;
shift
1
;;
--rsync
)
rsync
=
1
;
shift
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