Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix "none" datasource to create output directory. #109

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

smoser
Copy link
Member

@smoser smoser commented Sep 19, 2023

When src/sbin/cirros-ds calls a datasource it passes a directory that does not yet exist. The datasource (/lib/cirros/ds/nocloud) is expected to create it.

The none datasource was not doing that. As a result, you'd see:

/lib/cirros/ds/none:
line 23: can't create .../none/data/instance-id: nonexistent
line 24: can't create .../none/result: nonexistent directory

When src/sbin/cirros-ds calls a datasource it passes a directory
that does not yet exist.  The datasource (/lib/cirros/ds/nocloud)
is expected to create it.

The none datasource was not doing that. As a result, you'd see:

   /lib/cirros/ds/none:
      line 23: can't create .../none/data/instance-id: nonexistent
      line 24: can't create .../none/result: nonexistent directory
@smoser smoser merged commit 46a1162 into cirros-dev:main Nov 17, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant