[PATCH 6/6] upd-kernel: Don't spew stuff to stdout

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Make it easier to spot errors by not spewing stuff
to stdout.

Signed-off-by: Mark McLoughlin <markmc@xxxxxxxxxx>
---
 scripts/upd-kernel |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/scripts/upd-kernel b/scripts/upd-kernel
index d728f7e..3087113 100755
--- a/scripts/upd-kernel
+++ b/scripts/upd-kernel
@@ -45,18 +45,18 @@ fi
 
 WORKDIR=$(/bin/mktemp -d /tmp/kernrpm.XXXXXX)
 
-pushd $WORKDIR
+pushd $WORKDIR > /dev/null
 
 # explode the rpm
 mkdir rpm
-pushd rpm
-rpm2cpio $KRPM |cpio -id
-popd
+pushd rpm > /dev/null
+rpm2cpio $KRPM | cpio -id --quiet
+popd > /dev/null
 
 # explode the initrd
 mkdir initrd
-pushd initrd
-zcat $OLDDIR/initrd.img |cpio -id
+pushd initrd > /dev/null
+zcat $OLDDIR/initrd.img | cpio -id --quiet
 
 for mod in $(find modules/ -type f -name '*.ko.gz' -exec basename {} \; | sort | uniq) ; do
     for path in $(find $WORKDIR/rpm/lib/modules/$NEWVER/ -name ${mod%.gz}); do
@@ -69,9 +69,9 @@ done
 /sbin/depmod -a -b . $NEWVER
 rm -f modules/$NEWVER/modules.*map
 
-find . |cpio -c -o |gzip -9 > $NEWDIR/initrd.img
-popd
+find . | cpio --quiet -c -o | gzip -9 > $NEWDIR/initrd.img
+popd > /dev/null
 
-cp -v $WORKDIR/rpm/boot/vmlinuz-* $NEWDIR/vmlinuz
-popd
+cp $WORKDIR/rpm/boot/vmlinuz-* $NEWDIR/vmlinuz
+popd > /dev/null
 rm -rf $WORKDIR
-- 
1.5.4.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux