From 75f8c5c4ffcada9989b597eb01c9baedeb8bea42 Mon Sep 17 00:00:00 2001 From: Sven Dowideit Date: Thu, 13 Apr 2017 07:36:35 +0000 Subject: [PATCH] pass on the statedir and partition parameters to the inner installer images Signed-off-by: Sven Dowideit --- cmd/control/install.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/control/install.go b/cmd/control/install.go index 3da5503c..1cb44651 100755 --- a/cmd/control/install.go +++ b/cmd/control/install.go @@ -290,6 +290,12 @@ func runInstall(image, installType, cloudConfig, device, partition, statedir, ka if debug { installerCmd = append(installerCmd, "--debug") } + if partition != "" { + installerCmd = append(installerCmd, "--partition", partition) + } + if statedir != "" { + installerCmd = append(installerCmd, "--statedir", statedir) + } // TODO: mount at /mnt for shared mount? if useIso {