Do not mount tmp on livecd/netboot (#65

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
This commit is contained in:
Itxaka 2023-02-28 19:24:13 +01:00 committed by GitHub
parent 985b8c9401
commit 4cbff2d8d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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