@@ -86,8 +86,8 @@ var installCommand = cli.Command{
8686 Usage : "reboot using kexec" ,
8787 },
8888 cli.BoolFlag {
89- Name : "stage , s" ,
90- Usage : "stage services" ,
89+ Name : "save , s" ,
90+ Usage : "save services and images for next booting " ,
9191 },
9292 cli.BoolFlag {
9393 Name : "debug" ,
@@ -179,13 +179,13 @@ func installAction(c *cli.Context) error {
179179 cloudConfig = uc
180180 }
181181
182- stageImages := []string {}
183- if c .Bool ("stage " ) && cloudConfig != "" && installType != "upgrade" {
184- stageImages = install .GetCacheImageList (cloudConfig , cfg )
185- log .Debugf ("Will cache these images: %s" , stageImages )
182+ savedImages := []string {}
183+ if c .Bool ("save " ) && cloudConfig != "" && installType != "upgrade" {
184+ savedImages = install .GetCacheImageList (cloudConfig , cfg )
185+ log .Debugf ("Will cache these images: %s" , savedImages )
186186 }
187187
188- if err := runInstall (image , installType , cloudConfig , device , partition , statedir , kappend , force , kexec , isoinstallerloaded , debug , stageImages ); err != nil {
188+ if err := runInstall (image , installType , cloudConfig , device , partition , statedir , kappend , force , kexec , isoinstallerloaded , debug , savedImages ); err != nil {
189189 log .WithFields (log.Fields {"err" : err }).Fatal ("Failed to run install" )
190190 return err
191191 }
@@ -198,7 +198,7 @@ func installAction(c *cli.Context) error {
198198 return nil
199199}
200200
201- func runInstall (image , installType , cloudConfig , device , partition , statedir , kappend string , force , kexec , isoinstallerloaded , debug bool , stageImages []string ) error {
201+ func runInstall (image , installType , cloudConfig , device , partition , statedir , kappend string , force , kexec , isoinstallerloaded , debug bool , savedImages []string ) error {
202202 fmt .Printf ("Installing from %s\n " , image )
203203
204204 if ! force {
@@ -283,8 +283,8 @@ func runInstall(image, installType, cloudConfig, device, partition, statedir, ka
283283 if statedir != "" {
284284 installerCmd = append (installerCmd , "--statedir" , statedir )
285285 }
286- if len (stageImages ) > 0 {
287- installerCmd = append (installerCmd , "--stage " )
286+ if len (savedImages ) > 0 {
287+ installerCmd = append (installerCmd , "--save " )
288288 }
289289
290290 // TODO: mount at /mnt for shared mount?
@@ -348,8 +348,8 @@ func runInstall(image, installType, cloudConfig, device, partition, statedir, ka
348348 return err
349349 }
350350
351- if len (stageImages ) > 0 {
352- return install .RunCacheScript (partition , stageImages )
351+ if len (savedImages ) > 0 {
352+ return install .RunCacheScript (partition , savedImages )
353353 }
354354
355355 return nil
0 commit comments