cleanup_image: hide messages from rpmdb rebuild
If version mismatch, rpm --rebuilddb will complain about some files, but is isn't critical, so just hide those messages. We still take care of exit code.
This commit is contained in:
parent
b3298c852d
commit
7ed720ee82
@ -22,7 +22,7 @@ yum -c $PWD/yum.conf clean packages --installroot=$INSTALLDIR
|
|||||||
|
|
||||||
# Make sure that rpm database has right format (for rpm version in template, not host)
|
# Make sure that rpm database has right format (for rpm version in template, not host)
|
||||||
echo "--> Rebuilding rpm database..."
|
echo "--> Rebuilding rpm database..."
|
||||||
chroot `pwd`/mnt /bin/rpm --rebuilddb
|
chroot `pwd`/mnt /bin/rpm --rebuilddb 2> /dev/null
|
||||||
|
|
||||||
echo "--> Compacting image file..."
|
echo "--> Compacting image file..."
|
||||||
dd if=/dev/zero of=mnt/fillme bs=1M 2> /dev/null || true
|
dd if=/dev/zero of=mnt/fillme bs=1M 2> /dev/null || true
|
||||||
|
Loading…
Reference in New Issue
Block a user