Skip to contentSkip to conversation

fix a wrong usage of vinfo in init.sh

PATCH In review Cong Wang 3 participants 3 messages May 29, 2012 2 messages not in the archive

lore
Share & tools
lore

Cong Wang

author
#0 lore raw

PATCH 1/1 fix a wrong usage of vinfo in init.sh

vinfo() reads input from stdin, not from arguments.

This is a regression introduced by:

	commit 982d59afea5eac202c8a47f09d06d240af753a24
	Author: Harald Hoyer <[email protected]>
	Date:   Tue May 22 14:52:36 2012 +0200

	    drop 10rpmversion module and introduce /etc/initrd-release
Cc Harald Hoyer <[email protected]>

---

modules.d/99base/init.sh +1 -1
index b8736ec..1146a86 100755
@@ -90,7 +90,7 @@ else
 fi
 
 [ -f /etc/initrd-release ] && . /etc/initrd-release
-[ -n "$VERSION" ] && vinfo "dracut-$VERSION"
+[ -n "$VERSION" ] && echo "dracut-$VERSION" | vinfo
 
 source_conf /etc/conf.d
 
#2 lore raw
In reply to a message not in the archive

Am 29.05.2012 10:06, schrieb Cong Wang:

Quoted 20 lines

vinfo() reads input from stdin, not from arguments.

This is a regression introduced by:

	commit 982d59afea5eac202c8a47f09d06d240af753a24
	Author: Harald Hoyer <[email protected]>
	Date:   Tue May 22 14:52:36 2012 +0200

	    drop 10rpmversion module and introduce /etc/initrd-release
Cc Harald Hoyer <[email protected]>

---

modules.d/99base/init.sh +0 -0
index b8736ec..1146a86 100755

modules.d/99base/init.sh else · line 96

Quoted 8 lines
modules.d/99base/init.sh +1 -1
@@ -90,7 +90,7 @@ else
 fi
 
 [ -f /etc/initrd-release ] && . /etc/initrd-release
-[ -n "$VERSION" ] && vinfo "dracut-$VERSION"
+[ -n "$VERSION" ] && echo "dracut-$VERSION" | vinfo
 
 source_conf /etc/conf.d
 

Thanks! even simpler:

-[ -n "$VERSION" ] && vinfo "dracut-$VERSION"
+[ -n "$VERSION" ] && info "dracut-$VERSION"

#4 lore raw
In reply to a message not in the archive
Quoted 5 lines · Harald Hoyer

Am 29.05.2012 10:06, schrieb Cong Wang:

Quoted 4 lines

 [ -f /etc/initrd-release ] && . /etc/initrd-release -[ -n "$VERSION" ] && vinfo "dracut-$VERSION" +[ -n "$VERSION" ] && echo "dracut-$VERSION" | vinfo

Quoted 7 lines
Quoted 2 lines

 source_conf /etc/conf.d

Thanks! even simpler:

-[ -n "$VERSION" ] && vinfo "dracut-$VERSION"
+[ -n "$VERSION" ] && info "dracut-$VERSION"

Yeah.. please go ahead to commit it. This blocks my testing.

Thanks!