Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions cmd/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,15 +245,20 @@ func (i *installer) buildCMDLine() string {
i.log.Info("build kernel cmdline")

rootUUID := i.config.RootUUID
var parts []string

parts := []string{
fmt.Sprintf("console=%s", i.config.Console),
for _, p := range strings.Fields(i.config.Console) {
parts = append(parts, "console="+p)
}

kParts := []string{
fmt.Sprintf("root=UUID=%s", rootUUID),
"init=/sbin/init",
"net.ifnames=0",
"biosdevname=0",
"nvme_core.io_timeout=300", // 300 sec should be enough for firewalls to be replaced
}
parts = append(parts, kParts...)

mdUUID, found := i.findMDUUID()
if found {
Expand All @@ -265,7 +270,9 @@ func (i *installer) buildCMDLine() string {
parts = append(parts, mdParts...)
}

return strings.Join(parts, " ")
kernelCMDLine := strings.Join(parts, " ")
i.log.Info("resulting kernel cmdline", "cmdline", kernelCMDLine)
return kernelCMDLine
}

func (i *installer) findMDUUID() (mdUUID string, found bool) {
Expand Down
1 change: 1 addition & 0 deletions debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ RUN systemctl set-default multi-user.target \
systemd-timesyncd \
watchdog.service \
cloud-init-custom.service \
[email protected] \
[email protected] \
&& systemctl disable console-getty.service \
&& systemctl mask console-getty.service \
Expand Down
Loading