Skip to content

Conversation

@jlebon
Copy link
Member

@jlebon jlebon commented Mar 1, 2024

This is very close to cosa supermin-shell but instead expects a command to run inside the supermin VM. Essentially, it's a very thin wrapper around the runvm family of functions in cmdlib.sh.

By having it be a dedicated function, it becomes like a utility command to have easy access to a privileged environment, with the working dir automatically mounted in, podman remote proxying, etc... Note also this does not require a cosa workdir.

The podman machine OS pipeline will be using this temporarily.

@jlebon jlebon force-pushed the pr/supermin-script branch from c286eb2 to 8fa183b Compare March 1, 2024 20:11
jlebon added 2 commits March 2, 2024 21:40
This is very close to `cosa supermin-shell` but instead expects a
command to run inside the supermin VM. Essentially, it's a very thin
wrapper around the `runvm` family of functions in `cmdlib.sh`.

By having it be a dedicated function, it becomes like a utility command
to have easy access to a privileged environment, with the working dir
automatically mounted in, podman remote proxying, etc... Note also this
*does not* require a cosa workdir.

The podman machine OS pipeline will be using this temporarily.
In a cosa workdir, that dir always exists in both privileged and
unprivileged paths.

Prep for a new command that'll use this code outside a cosa workdir
where to be nice we don't want to just randomly create a cache dir even
when no caching is required.
@jlebon jlebon force-pushed the pr/supermin-script branch from 8fa183b to f6f50a6 Compare March 3, 2024 02:41
fi
done

mkdir -p "${workdir}"/cache
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sometimes I just rm -rf cache/ to blow away things to get a clean slate. I'm guessing something else would create it somewhere else in the stack, but...

could we just move this into the if statement below? if there is a cachedev and somehow the cache dir doesn't exist we'd surely want to create it, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, but the cache/ dir must already exist at that point if using a cache qcow2, since the qcow2 is located there, right?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right. but sometimes we don't use the cache qcow and things use the directory anyway?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I feel like whatever/whoever does rm -rf cache/ should ensure to recreate it. E.g. rpm-ostree today will error out trying to cache things there. But not against adding a mkdir -p cache somewhere in cmdlib.sh too.

@jlebon jlebon merged commit a3d5d30 into coreos:main Mar 4, 2024
@jlebon jlebon deleted the pr/supermin-script branch March 4, 2024 12:31
@jlebon
Copy link
Member Author

jlebon commented Oct 17, 2024

/cherry-pick 4.15

@openshift-cherrypick-robot

@jlebon: cannot checkout 4.15: error checking out "4.15": exit status 1 error: pathspec '4.15' did not match any file(s) known to git

In response to this:

/cherry-pick 4.15

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@jlebon
Copy link
Member Author

jlebon commented Oct 17, 2024

/cherry-pick rhcos-4.15

@openshift-cherrypick-robot

@jlebon: new pull request created: #3901

In response to this:

/cherry-pick rhcos-4.15

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@jlebon
Copy link
Member Author

jlebon commented Oct 17, 2024

/cherry-pick rhcos-4.14
/cherry-pick rhcos-4.13
/cherry-pick rhcos-4.12

@openshift-cherrypick-robot

@jlebon: new pull request created: #3902

In response to this:

/cherry-pick rhcos-4.14
/cherry-pick rhcos-4.13
/cherry-pick rhcos-4.12

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@jlebon
Copy link
Member Author

jlebon commented Oct 17, 2024

/cherry-pick rhcos-4.13

@openshift-cherrypick-robot

@jlebon: new pull request created: #3903

In response to this:

/cherry-pick rhcos-4.13

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@jlebon
Copy link
Member Author

jlebon commented Oct 17, 2024

/cherry-pick rhcos-4.12

@openshift-cherrypick-robot

@jlebon: new pull request created: #3904

In response to this:

/cherry-pick rhcos-4.12

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

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.

3 participants