mirror of
https://github.com/kairos-io/immucore.git
synced 2025-08-17 13:47:05 +00:00
Translate auto fstype to actual type
Signed-off-by: Itxaka <itxaka@spectrocloud.com>
This commit is contained in:
parent
b628f959d3
commit
b67c89c593
@ -394,16 +394,18 @@ func (s *State) Register(g *herd.Graph) error {
|
|||||||
var err error
|
var err error
|
||||||
|
|
||||||
for what, where := range s.CustomMounts {
|
for what, where := range s.CustomMounts {
|
||||||
|
fstype := "auto"
|
||||||
// Translate label to disk for COS_PERSISTENT
|
// Translate label to disk for COS_PERSISTENT
|
||||||
if what == "/dev/disk/by-label/COS_PERSISTENT" {
|
if what == "/dev/disk/by-label/COS_PERSISTENT" {
|
||||||
what = runtime.Persistent.Name
|
what = runtime.Persistent.Name
|
||||||
|
fstype = runtime.Persistent.Type
|
||||||
}
|
}
|
||||||
s.Logger.Debug().Str("what", what).Str("where", s.path(where)).Msg("mounting custom mounts")
|
s.Logger.Debug().Str("what", what).Str("where", s.path(where)).Str("type", fstype).Msg("mounting custom mounts")
|
||||||
|
|
||||||
err = multierror.Append(err, s.MountOP(
|
err = multierror.Append(err, s.MountOP(
|
||||||
what,
|
what,
|
||||||
s.path(where),
|
s.path(where),
|
||||||
"auto",
|
fstype,
|
||||||
[]string{
|
[]string{
|
||||||
"ro", // or rw
|
"ro", // or rw
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user