Rename :cow to :copy

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2024-09-05 13:53:33 -06:00
committed by Christian Goll
parent 3a36016707
commit 9e91b1c19a
8 changed files with 20 additions and 19 deletions

View File

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