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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lu Xu
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
Hide 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
=======
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):
"""
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
(
"-c"
,
"--slapos_configuration"
,
help
=
"The path of the slapos configuration directory"
,
...
...
@@ -111,6 +114,8 @@ class Parser(OptionParser):
"""
Check arguments
"""
(
options
,
args
)
=
self
.
parse_args
()
if
len
(
args
)
!=
8
:
self
.
error
(
"Incorrect number of arguments"
)
...
...
@@ -366,12 +371,12 @@ def main():
usage
=
"usage: %s [options] SYSTEM_FILE OUTPUT_DEVICE "
\
"COMPUTER_ID SSH_KEY_FILE MASTER_URL SLAPOS_SOFTWARE_PROFILE_URL "
\
"COMPUTER_CERTIFICATE COMPUTER_KEY"
%
sys
.
argv
[
0
]
try
:
# Parse arguments
config
=
Config
()
config
.
setConfig
(
*
Parser
(
usage
=
usage
).
check_args
())
run
(
config
)
return_code
=
0
except
UsageError
,
err
:
...
...
@@ -386,3 +391,4 @@ def main():
return_code
=
err
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