~smoser/curtin/trunk.use-smtar

« back to all changes in this revision

Viewing changes to curtin/commands/main.py

  • Committer: Scott Moser
  • Date: 2015-10-02 19:59:11 UTC
  • mfrom: (269.1.11 trunk.dist-upgrade)
  • Revision ID: smoser@ubuntu.com-20151002195911-om9vrzt0uqcnak4b
add 'system-upgrade' command

The intent of this is to be runnable easily as 'curtin system-upgrade'
We can expose this from a config option and run it in curthooks also.

One such reason for this is shown in bug 1481992.
upgrading a system is often times unfortunately more complex than
'apt-get dist-upgrade'.

And the goal would be to make this run the appropriate system upgrade
command for the os in target (yum update for example).

Also enabled here is running system-upgrade in the target via
config.  Example:

  system_upgrade:
     enabled: True

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
SUB_COMMAND_MODULES = ['apply_net', 'block-meta', 'curthooks', 'extract',
30
30
                       'hook', 'in-target', 'install', 'mkfs', 'net-meta',
31
 
                       'pack', 'swap']
 
31
                       'pack', 'swap', 'system-upgrade']
32
32
 
33
33
 
34
34
def add_subcmd(subparser, subcmd):