diff --git a/pkg/plugins/systemd_firstboot.go b/pkg/plugins/systemd_firstboot.go index ce052994..83fb4672 100644 --- a/pkg/plugins/systemd_firstboot.go +++ b/pkg/plugins/systemd_firstboot.go @@ -19,7 +19,7 @@ func SystemdFirstboot(l logger.Interface, s schema.Stage, fs vfs.FS, console Con args = append(args, fmt.Sprintf("--%s=%s", strings.ToLower(k), v)) } - if err := console.RunTemplate(args, "systemd-firstboot %s"); err != nil { + if err := console.RunTemplate(args, "systemd-firstboot --force %s"); err != nil { errs = multierror.Append(errs, err) } diff --git a/pkg/plugins/systemd_firstboot_test.go b/pkg/plugins/systemd_firstboot_test.go index 24c5338e..d764973f 100644 --- a/pkg/plugins/systemd_firstboot_test.go +++ b/pkg/plugins/systemd_firstboot_test.go @@ -45,8 +45,8 @@ var _ = Describe("SystemdFirstboot", func() { Expect(err).ShouldNot(HaveOccurred()) Expect(consoletests.Commands).Should(ContainElements( - "systemd-firstboot --locale=en_US.UTF-8", - "systemd-firstboot --keymap=us", + "systemd-firstboot --force --locale=en_US.UTF-8", + "systemd-firstboot --force --keymap=us", )) Expect(len(consoletests.Commands)).To(Equal(2)) })