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:
82b2189
)
95rootfs-block/block-genrules.sh: beautify code
author
Harald Hoyer
<harald@redhat.com>
Tue, 15 Sep 2009 09:12:13 +0000
(11:12 +0200)
committer
Harald Hoyer
<harald@redhat.com>
Tue, 15 Sep 2009 13:00:24 +0000
(15:00 +0200)
modules.d/95rootfs-block/block-genrules.sh
patch
|
blob
|
history
diff --git
a/modules.d/95rootfs-block/block-genrules.sh
b/modules.d/95rootfs-block/block-genrules.sh
index
614c7ce
..
1b650f8
100644
(file)
--- a/
modules.d/95rootfs-block/block-genrules.sh
+++ b/
modules.d/95rootfs-block/block-genrules.sh
@@
-5,10
+5,9
@@
if [ "${root%%:*}" = "block" ]; then
printf 'SYMLINK=="%s", SYMLINK+="root"\n' \
${root#block:/dev/}
) >> /etc/udev/rules.d/99-mount.rules
- (
+
printf '[ -e "%s" ] && { ln -s "%s" /dev/root 2>/dev/null; rm "$job"; }\n' \
- "${root#block:}" "${root#block:}"
- ) >> /initqueue-settled/blocksymlink.sh
+ "${root#block:}" "${root#block:}" >> /initqueue-settled/blocksymlink.sh
echo '[ -e /dev/root ]' > /initqueue-finished/block.sh
fi