Bug 101159 - cowloop udev entries
|
Bug#:
101159
|
Product: Gentoo Linux
|
Version: 2005.0
|
Platform: All
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: gregkh@gentoo.org
|
Reported By: jeromepoulin@gmail.com
|
|
Component: Ebuilds
|
|
|
URL:
|
|
Summary: cowloop udev entries
|
|
Keywords: Inclusion
|
|
Status Whiteboard:
|
|
Opened: 2005-08-02 21:07 0000
|
In version 2.15 of cowloop, cowmerge has been added to the package and the
make/install part of the ebuild weren't added that source file to compile, I
added the patch for this bug at the end of the bug report.
Another problem I was wondering, is there a way to automatically add rules to
udev for that package as when you use udev it creates on modprobe /dev/cowctl
but the program search for /dev/cow/ctl when used and will not work until it is
created there, also when it works it will create a cowdev /dev/cowloop0 when the
program says it has created /dev/cow/[0-16] depending on the number of cowloops,
I added those lines to /etc/udev/rules.d/50-udev.rules :
# cow loop
KERNEL=="cowctl" NAME="cow/ctl"
KERNEL=="cowloop[0-9]" NAME="cow/%n"
those lines worked perfectly and fixed it.
--- portage/sys-fs/cowloop/cowloop-2.15.ebuild 2005-06-26 05:38:58.000000000 -0400
+++ portage-cowloop/sys-fs/cowloop/cowloop-2.15.ebuild 2005-08-02
23:55:56.000000000 -0400
@@ -32,11 +32,11 @@ pkg_setup() {
src_compile() {
linux-mod_src_compile
- CC="$(tc-getCC) ${CFLAGS}" emake cowdev cowrepair cowsync cowlist || die "make
failed"
+ CC="$(tc-getCC) ${CFLAGS}" emake cowdev cowrepair cowsync cowlist cowmerge ||
die "make failed"
}
src_install() {
linux-mod_src_install
- dosbin cowdev cowrepair cowsync cowlist
+ dosbin cowdev cowrepair cowsync cowlist cowmerge
doman man/*
}
cowloop-2.15-r1 fixes cowmerge
Greg - are the udev additions feasible?
You don't need to add those udev entries to the main udev rules file, just drop
them into the /etc/udev/rules.d/ directory. With a name something like
"60-cowloop.rules" so they get run after the other rules.
Ah ok! I tried that but didn't add the .rules suffix and it didn't work but
with
.rules it works perfectly. Thanks.