forked from ungleich-public/cdist
preos: seperate parameters, create remote_exec, remote_copy and manifest on the fly
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
parent
e461961efd
commit
8af1add2a6
3 changed files with 120 additions and 7 deletions
|
|
@ -89,6 +89,15 @@ def commandline():
|
|||
parents=[parser['loglevel']])
|
||||
parser['preos'].add_argument('-a', '--arch',
|
||||
help='Select architecture for preos', default="amd64")
|
||||
parser['preos'].add_argument('-b', '--bootstrap',
|
||||
help='Bootstrap directory with OS', action="store_true")
|
||||
parser['preos'].add_argument('-c', '--configure',
|
||||
help='Configure previously bootstrapped directory', action="store_true",
|
||||
dest="config")
|
||||
parser['preos'].add_argument('-i', '--initramfs',
|
||||
help='Create Linux initramfs', action="store_true")
|
||||
parser['preos'].add_argument('-k', '--kernel',
|
||||
help='Create Linux kernel', action="store_true")
|
||||
parser['preos'].add_argument('target_dir', nargs=1,
|
||||
help='Select target directory')
|
||||
parser['preos'].set_defaults(func=cdist.preos.PreOS.commandline)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue