mirror of
https://github.com/kairos-io/immucore.git
synced 2025-08-31 14:19:07 +00:00
16 lines
462 B
Go
16 lines
462 B
Go
![]() |
package mount
|
||
|
|
||
|
import (
|
||
|
"github.com/spectrocloud-labs/herd"
|
||
|
)
|
||
|
|
||
|
// RegisterLiveMedia registers the dag for booting from live media/netboot
|
||
|
// This mounts /tmp
|
||
|
func (s *State) RegisterLiveMedia(g *herd.Graph) error {
|
||
|
var err error
|
||
|
s.LogIfError(s.MountTmpfsDagStep(g), "tmpfs mount")
|
||
|
// Maybe LogIfErrorAndPanic ? If no sentinel, a lot of config files are not going to run
|
||
|
err = s.LogIfErrorAndReturn(s.WriteSentinelDagStep(g), "write sentinel")
|
||
|
return err
|
||
|
}
|