Allow setting root to RW (#53)

This patch allows setting the root mount as RW indicated by setting
rd.cos.debugrw in the cmdline

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
This commit is contained in:
Itxaka
2023-02-17 09:54:23 +01:00
committed by GitHub
parent 794d658f5e
commit 88df028e6d
5 changed files with 70 additions and 43 deletions

View File

@@ -28,7 +28,6 @@ var _ = Describe("mounting immutable setup", func() {
Rootdir: "/",
TargetImage: "/cOS/myimage.img",
TargetLabel: "COS_LABEL",
MountRoot: true,
}
err := s.RegisterNormalBoot(g)
@@ -40,7 +39,7 @@ var _ = Describe("mounting immutable setup", func() {
})
It("generates normal dag with extra dirs", func() {
s := &mount.State{Rootdir: "/", MountRoot: true,
s := &mount.State{Rootdir: "/",
OverlayDirs: []string{"/etc"},
BindMounts: []string{"/etc/kubernetes"},
CustomMounts: map[string]string{"COS_PERSISTENT": "/usr/local"}}