Rename :cow to :copy
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
committed by
Christian Goll
parent
3a36016707
commit
9e91b1c19a
@@ -7,5 +7,5 @@ type MountEntry struct {
|
||||
Dest string `yaml:"dest,omitempty"`
|
||||
ReadOnly bool `yaml:"readonly,omitempty"`
|
||||
Options string `yaml:"options,omitempty"` // ignored at the moment
|
||||
Cow bool `yaml:"cow,omitempty"` // copy the file into the container and don't remove if modified
|
||||
Copy bool `yaml:"copy,omitempty"` // temporarily copy the file into the container
|
||||
}
|
||||
|
||||
@@ -21,19 +21,19 @@ func InitMountPnts(binds []string) (mounts []*warewulfconf.MountEntry) {
|
||||
dest = bind[1]
|
||||
}
|
||||
readonly := false
|
||||
cow := false
|
||||
copy_ := false
|
||||
if len(bind) >= 3 {
|
||||
if bind[2] == "ro" {
|
||||
readonly = true
|
||||
} else if bind[2] == "cow" {
|
||||
cow = true
|
||||
} else if bind[2] == "copy" {
|
||||
copy_ = true
|
||||
}
|
||||
}
|
||||
mntPnt := warewulfconf.MountEntry{
|
||||
Source: bind[0],
|
||||
Dest: dest,
|
||||
ReadOnly: readonly,
|
||||
Cow: cow,
|
||||
Copy: copy_,
|
||||
}
|
||||
mounts = append(mounts, &mntPnt)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user