projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d12d7a
)
udev-rules/module-setup.sh: add udev groups
author
Harald Hoyer
<harald@redhat.com>
Mon, 24 Sep 2012 11:30:46 +0000
(13:30 +0200)
committer
Harald Hoyer
<harald@redhat.com>
Mon, 24 Sep 2012 11:30:46 +0000
(13:30 +0200)
modules.d/95udev-rules/module-setup.sh
patch
|
blob
|
history
diff --git
a/modules.d/95udev-rules/module-setup.sh
b/modules.d/95udev-rules/module-setup.sh
index
5e1cce5
..
00f9923
100755
(executable)
--- a/
modules.d/95udev-rules/module-setup.sh
+++ b/
modules.d/95udev-rules/module-setup.sh
@@
-37,6
+37,21
@@
install() {
inst_dir /run/udev
inst_dir /run/udev/rules.d
+ {
+ for i in cdrom tape dialout floppy; do
+ if ! egrep -q "^$i:" "$initdir/etc/group" 2>/dev/null; then
+ if ! egrep "^$i:" /etc/group 2>/dev/null; then
+ case $i in
+ cdrom) echo "$i:x:11:";;
+ dialout) echo "$i:x:18:";;
+ floppy) echo "$i:x:19:";;
+ tape) echo "$i:x:33:";;
+ esac
+ fi
+ fi
+ done
+ } >> "$initdir/etc/group"
+
dracut_install -o \
${udevdir}/ata_id \
${udevdir}/cdrom_id \