Skip to content

Setting Boot Order fail to Mariner OS with UNATTENDED_INSTALLER=y #5942

Open
@mlix666

Description

@mlix666

Please help me, I have 2 questions now. The first one is to set the remove boot order fail return status 30, refer to picture 1,
and the second one is to annotate the error code and generate a Marine boot order under UEFI that failed to start, refer to picture 2

Compile Command:
make iso REBUILD_TOOLS=y REBUILD_PACKAGES=n CONFIG_FILE=./imageconfigs/full-auto.json UNATTENDED_INSTALLER=y

https://github.com/microsoft/CBL-Mariner/blob/2.0/toolkit/tools/liveinstaller/liveinstaller.go#L178
`
func updateBootOrder(installDetails installationDetails) (err error) {
if installDetails.finalConfig.DefaultSystemConfig.BootType != "efi" {
logger.Log.Info("No BootType of 'efi' detected. Not attempting to set EFI boot order.")
return
}

err = removeOldMarinerBootTargets()                   **## Fail,  return "exit status 30"**
if err != nil {
	return
}

logger.Log.Info("Setting Boot Order")
err = runBootEntryCreationCommand(installDetails)
if err != nil {
	return
}

return

}
`

Error boot log:

  1. image

  2. image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions