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

qm sub-package qm_dropin_mount_bind_input #595

Merged
merged 1 commit into from
Oct 4, 2024
Merged

qm sub-package qm_dropin_mount_bind_input #595

merged 1 commit into from
Oct 4, 2024

Conversation

dougsland
Copy link
Collaborator

QM sub-package qm_dropin_mount_bind_input will configure via drop-in /dev/input to allow nested containers to automatically see devices like: Keyboards, Mice, Touchpads, Joysticks, Multimedia keys and Device files like /dev/input/event0, /dev/input/event1, etc.

Just execute: make qm_dropin_mount_bind_input

QM sub-package qm_dropin_mount_bind_input will configure via
drop-in /dev/input to allow nested containers to automatically
see devices like: Keyboards, Mice, Touchpads, Joysticks,
Multimedia keys and Device files like /dev/input/event0,
/dev/input/event1, etc.

Just execute: make qm_dropin_mount_bind_input

Signed-off-by: Douglas Schilling Landgraf <[email protected]>
@dougsland
Copy link
Collaborator Author

I had QM already running here, restart is required.

$ sudo dnf install ./qm*
[sudo] password for douglas:
Last metadata expiration check: 0:15:34 ago on Thu 03 Oct 2024 11:22:52 PM EDT.
Package qm-0.6.7-1.fc40.noarch is already installed.
Dependencies resolved.
=====================================================================================================================================
 Package                               Architecture             Version                         Repository                      Size
=====================================================================================================================================
Installing:
 qm_mount_bind_input                   noarch                   0.6.7-1.fc40                    @commandline                   7.9 k

Transaction Summary
=====================================================================================================================================
Install  1 Package

Total size: 7.9 k
Installed size: 3.1 k
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                             1/1
  Installing       : qm_mount_bind_input-0.6.7-1.fc40.noarch                                                                     1/1

Installed:
  qm_mount_bind_input-0.6.7-1.fc40.noarch

Complete!
douglas@fedora:~/input/qm/rpmbuild/RPMS/noarch$ sudo podman restart qm
qm
Now testing
================
$ sudo podman exec -it qm bash
bash-5.2# ls /dev/input/js0
/dev/input/js0
bash-5.2# ls /dev/input/js1
/dev/input/js1

Nested container inside QM:
bash-5.2# podman run -it fedora
[root@1c3c9539a50b /]# ls /dev/input/js0
/dev/input/js0
[root@1c3c9539a50b /]# ls /dev/input/js1
/dev/input/js1
[root@1c3c9539a50b /]#

Copy link
Collaborator

@Yarboa Yarboa left a comment

Choose a reason for hiding this comment

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

I think there is a need to update also man
qm.8.md related to subpackages and what they are generally do

You could add # subpackages
Or maybe man qm_selinux.8

@dougsland
Copy link
Collaborator Author

dougsland commented Oct 4, 2024

I think there is a need to update also man qm.8.md related to subpackages and what they are generally do

You could add # subpackages Or maybe man qm_selinux.8

sure. I will in the next patch.

@dougsland
Copy link
Collaborator Author

It's tested and follow all reviews from @aesteve-rh. Also I will address @Yarboa comment in the next patch.

@dougsland dougsland merged commit dbc8d50 into main Oct 4, 2024
10 of 11 checks passed
@aesteve-rh aesteve-rh deleted the input branch October 4, 2024 06:39
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.

2 participants