diff options
Diffstat (limited to 'actions/debootstrap_action.go')
-rw-r--r-- | actions/debootstrap_action.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/actions/debootstrap_action.go b/actions/debootstrap_action.go index 02cbb15..b4d6730 100644 --- a/actions/debootstrap_action.go +++ b/actions/debootstrap_action.go @@ -81,6 +81,11 @@ func (d *DebootstrapAction) RunSecondStage(context debos.DebosContext) error { "--no-check-gpg", "--second-stage"} + if d.Components != nil { + s := strings.Join(d.Components, ",") + cmdline = append(cmdline, fmt.Sprintf("--components=%s", s)) + } + c := debos.NewChrootCommandForContext(context) // Can't use nspawn for debootstrap as it wants to create device nodes c.ChrootMethod = debos.CHROOT_METHOD_CHROOT |