Fix master to boot normal (#68)

* Be more careful with commandWithPaths PATHS

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

* Do not mount all the things :/

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

* Only mount /proc otherwise we break stuff

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

---------

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
This commit is contained in:
Itxaka
2023-03-01 16:20:45 +01:00
committed by GitHub
parent 4fabf06d7f
commit 68fc3afa24
3 changed files with 25 additions and 33 deletions

View File

@@ -21,7 +21,7 @@ func main() {
var targetDevice, targetImage string
var state *mount.State
utils.MinimalMounts()
utils.MountProc()
utils.SetLogger()
v := version.Get()
@@ -42,7 +42,7 @@ func main() {
}
if utils.DisableImmucore() {
utils.Log.Info().Msg("Stanza rd.cos.disable on the cmdline or booting from CDROM/Netboot/Squash recovery. Disabling immucore.")
utils.Log.Info().Msg("Stanza rd.cos.disable/rd.immucore.disable on the cmdline or booting from CDROM/Netboot/Squash recovery. Disabling immucore.")
err = state.RegisterLiveMedia(g)
} else if utils.IsUKI() {
utils.Log.Info().Msg("UKI booting!")