mirror of
https://github.com/kairos-io/immucore.git
synced 2025-08-31 21:00:04 +00:00
Do not do anything if rd.cos.disable its on the cmdline
That means we dont want to run any immutable stuff, for netboot and cdrom Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
This commit is contained in:
@@ -8,8 +8,8 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
// BootedFromCD tells us if we are currently runnig of the LiveCD
|
||||
func BootedFromCD() (bool, error) {
|
||||
// BootedFromLiveMedia tells us if we are currently running off LIVE media like cd/usb or netboot
|
||||
func BootedFromLiveMedia() (bool, error) {
|
||||
runtime, err := state.NewRuntime()
|
||||
if err != nil {
|
||||
return false, err
|
||||
@@ -151,4 +151,4 @@ func SetSentinelFile() error {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user