mirror of
https://github.com/kairos-io/immucore.git
synced 2025-07-31 06:01:32 +00:00
Do not mount tmp on livecd/netboot (#65
Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
This commit is contained in:
parent
985b8c9401
commit
4cbff2d8d4
@ -5,10 +5,9 @@ import (
|
||||
)
|
||||
|
||||
// RegisterLiveMedia registers the dag for booting from live media/netboot
|
||||
// This mounts /tmp
|
||||
// This sets the sentinel
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user