Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
slapos.toolbox
Commits
da92c704
Commit
da92c704
authored
Feb 29, 2012
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added help for slapbuilder
Link to SlapOS tutorial
parent
303ee9b9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
slapos/README.builder.txt
slapos/README.builder.txt
+5
-0
slapos/builder/__init__.py
slapos/builder/__init__.py
+8
-2
No files found.
slapos/README.builder.txt
View file @
da92c704
...
@@ -2,3 +2,8 @@ builder
...
@@ -2,3 +2,8 @@ builder
=======
=======
builder is a program to install a slapos image.
builder is a program to install a slapos image.
To learn more about installing an image on a hard drive or USB key:
http://www.slapos.org/wiki/osoe-Lecture.SlapOS.Extended/developer-Installing.SlapOS.Slave.Node.USB
To learn more about installing an image on a Virtual Machine Player:
http://www.slapos.org/wiki/osoe-Lecture.SlapOS.Extended/developer-Installing.SlapOS.Slave.Node.VM
slapos/builder/__init__.py
View file @
da92c704
...
@@ -81,7 +81,10 @@ class Parser(OptionParser):
...
@@ -81,7 +81,10 @@ class Parser(OptionParser):
"""
"""
Initialize all options possibles.
Initialize all options possibles.
"""
"""
OptionParser
.
__init__
(
self
,
usage
=
usage
,
version
=
version
,
desc
=
"""This command allow you to personalize a SlapOS Image. You can use it to put your image on a USB key, a Hard Drive, or you can use it with a virtual machine image. More information on:
http://www.slapos.org/wiki/osoe-Lecture.SlapOS.Extended """
OptionParser
.
__init__
(
self
,
usage
=
usage
,
version
=
version
,
description
=
desc
,
option_list
=
[
option_list
=
[
Option
(
"-c"
,
"--slapos_configuration"
,
Option
(
"-c"
,
"--slapos_configuration"
,
help
=
"The path of the slapos configuration directory"
,
help
=
"The path of the slapos configuration directory"
,
...
@@ -111,6 +114,8 @@ class Parser(OptionParser):
...
@@ -111,6 +114,8 @@ class Parser(OptionParser):
"""
"""
Check arguments
Check arguments
"""
"""
(
options
,
args
)
=
self
.
parse_args
()
(
options
,
args
)
=
self
.
parse_args
()
if
len
(
args
)
!=
8
:
if
len
(
args
)
!=
8
:
self
.
error
(
"Incorrect number of arguments"
)
self
.
error
(
"Incorrect number of arguments"
)
...
@@ -367,11 +372,11 @@ def main():
...
@@ -367,11 +372,11 @@ def main():
"COMPUTER_ID SSH_KEY_FILE MASTER_URL SLAPOS_SOFTWARE_PROFILE_URL "
\
"COMPUTER_ID SSH_KEY_FILE MASTER_URL SLAPOS_SOFTWARE_PROFILE_URL "
\
"COMPUTER_CERTIFICATE COMPUTER_KEY"
%
sys
.
argv
[
0
]
"COMPUTER_CERTIFICATE COMPUTER_KEY"
%
sys
.
argv
[
0
]
try
:
try
:
# Parse arguments
# Parse arguments
config
=
Config
()
config
=
Config
()
config
.
setConfig
(
*
Parser
(
usage
=
usage
).
check_args
())
config
.
setConfig
(
*
Parser
(
usage
=
usage
).
check_args
())
run
(
config
)
run
(
config
)
return_code
=
0
return_code
=
0
except
UsageError
,
err
:
except
UsageError
,
err
:
...
@@ -386,3 +391,4 @@ def main():
...
@@ -386,3 +391,4 @@ def main():
return_code
=
err
return_code
=
err
sys
.
exit
(
return_code
)
sys
.
exit
(
return_code
)
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