Skip to content

converter: generate random and unique filesystem path #30

@tormath1

Description

@tormath1

Hi,

In the current behavior of ign-converter, we rely on a fsMap in order to mitigate a change between Ignition 2.x and 3.x:

map[string]string{"var": "/var"}

without this map or the correct values in it, we fail the translation in case we hit a filesystem with no associated path:

for _, fs := range cfg.Storage.Filesystems {
if _, ok := fsMap[fs.Name]; !ok {
return util.NoFilesystemError(fs.Name)
}
}

Did we already consider in the past generating a random path associated to this filesystem name in order to circumvent this requirement ?

This is a proof-of-concept using randomized name: main...tormath1:tormath1/generate-path-upstream and the logic has been tested in Flatcar CI.

Thanks :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions