[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Packaging CDEmu and VHBA kernel module
From: |
Pierre Neidhardt |
Subject: |
Re: Packaging CDEmu and VHBA kernel module |
Date: |
Sun, 14 Apr 2019 19:13:33 +0200 |
I've merged the patch, cdemu-daemon and cdemu are now on master.
Big thanks to Danny for integration the new make-linux-module.
This is not the end though :p
At the moment, CDEmu is a bit of a hassle to use:
- insmod vhba.ko
- Add the following udev rule to your Guix system config so that non-root can
use it:
(define %cdemu-vhba-udev-rule
;; For the "uaccess" tag to be applied properly, the rule must be executed
;; before the uaccess rule
;; (/run/current-system/profile/lib/udev/rules.d/70-uaccess.rules).
(udev-rule
"69-cdemu-vhba.rules"
(string-append "KERNEL==\"vhba_ctl\", SUBSYSTEM==\"misc\",
TAG+=\"uaccess\"")))
- cdemu load 0 /path/to/image/file
- cdemu status
--8<---------------cut here---------------start------------->8---
Devices' status:
DEV LOADED FILENAME
0 True /path/to/image/file
--8<---------------cut here---------------end--------------->8---
Great success!
Now somehow I can't mount this drive.
$ sudo mount /dev/sr0 /mnt
hangs indefinitely.
dmesg gives me a lot of
--8<---------------cut here---------------start------------->8---
[ 2098.573872] udevd[3858]: timeout: killing 'cdrom_id --lock-media /dev/sr0'
[3859]
[ 2098.573882] udevd[3858]: slow: 'cdrom_id --lock-media /dev/sr0' [3859]
--8<---------------cut here---------------end--------------->8---
Not sure what's happening. Can anyone reproduce?
Could we configure a service that automatically inserts the kernel
module and sets up the right udev rule? Danny?
Cheers!
--
Pierre Neidhardt
https://ambrevar.xyz/
signature.asc
Description: PGP signature
- Re: Packaging CDEmu and VHBA kernel module,
Pierre Neidhardt <=