mirror of
https://github.com/kairos-io/immucore.git
synced 2025-09-18 16:28:35 +00:00
Original cos-immutable-rootfs sets the sentinel to livecd if it finds the rd.cos.disable in the cmdline. We should do the same. Unfortunately the state sdk doesnt support that yet so we have to do it on our side until its supported Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
24 lines
590 B
Go
24 lines
590 B
Go
package mount
|
|
|
|
import (
|
|
"github.com/kairos-io/immucore/internal/utils"
|
|
. "github.com/onsi/ginkgo/v2"
|
|
. "github.com/onsi/gomega"
|
|
)
|
|
|
|
var _ = Describe("mount utils", func() {
|
|
BeforeEach(func() {
|
|
})
|
|
|
|
Context("ReadCMDLineArg", func() {
|
|
It("splits arguments from cmdline", func() {
|
|
Skip("No way of overriding the cmdline yet")
|
|
Expect(len(utils.ReadCMDLineArg("testvalue/key="))).To(Equal(1))
|
|
})
|
|
It("returns properly for stanzas without value", func() {
|
|
Skip("No way of overriding the cmdline yet")
|
|
Expect(len(utils.ReadCMDLineArg("singlevalue"))).To(Equal(1))
|
|
})
|
|
})
|
|
})
|