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

buildah: add support for renaming a device in rootless setups using --device #4014

Conversation

flouthoc
Copy link
Collaborator

@flouthoc flouthoc commented May 24, 2022

Buildah now supports renaming devices while performing a build using
--device <some-name>:<new-name>. Implementation is similar to podman
where we prefer using bind-mount for devices instead of mknod in
rootless setups.

Usage

buildah build -t test --device /dev/null:/test/dev/null .

Closes: #4002

Buildah now supports renaming devices while performing a build

@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 24, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: flouthoc

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@rhatdan
Copy link
Member

rhatdan commented May 24, 2022

LGTM

@flouthoc flouthoc force-pushed the support-renaming-device-rootless branch from a0c8327 to 212d32e Compare May 24, 2022 16:56
@TomSweeneyRedHat
Copy link
Member

LGTM
but a rebase is needed

Buildah now supports renaming devices while performing a build using
`--device <some-name>:<new-name>`. Implementation is similar to `podman`
where we prefer using `bind-mount` for devices instead of `mknod` in
`rootless` setups.

Usage
```console
buildah build -t test --device /dev/null:/test/dev/null .
```

Closes: containers#4002

Signed-off-by: Aditya R <arajan@redhat.com>
@flouthoc flouthoc force-pushed the support-renaming-device-rootless branch from 212d32e to b3fbb59 Compare May 25, 2022 08:24
@flouthoc
Copy link
Collaborator Author

Rebased :)

@rhatdan
Copy link
Member

rhatdan commented May 25, 2022

/lgtm
/hold

@flouthoc
Copy link
Collaborator Author

/hold cancel

@openshift-merge-robot openshift-merge-robot merged commit 23e24d0 into containers:main May 25, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

podman build cannot mount devices, while podman run can.
4 participants