From 014ce9a9e0dec78ecda10ec1ffdd6b0efa9614a3 Mon Sep 17 00:00:00 2001 From: Felix Endres Date: Fri, 1 Jun 2007 16:11:56 +0000 Subject: Generate warning message if ConfTGZ can not be unpacked git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1136 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initramfs/initrd-stuff/etc/functions | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'initramfs/initrd-stuff/etc/functions') diff --git a/initramfs/initrd-stuff/etc/functions b/initramfs/initrd-stuff/etc/functions index 23f2a6c3..3d4afbc0 100644 --- a/initramfs/initrd-stuff/etc/functions +++ b/initramfs/initrd-stuff/etc/functions @@ -336,7 +336,11 @@ tftp -g -r $1 -l $dst $2 2>/dev/null # unpack part if [ -s $dst ] ; then # fixme: handle different types of packaging (gzip/bzip2)?? - tar -xpzf $dst 2>/dev/null + if ! tar -xpzf $dst 2> /tmp/ConfTGZ-tar-error ; then + cat /tmp/ConfTGZ-tar-error + error "$unpack_ConfTGZ" nonfatal + rm /tmp/ConfTGZ-tar-error + fi [ "$DEBUGLEVEL" -le 2 -o "$DEBUGLEVEL" -eq 8 ] && rm $dst return 0 else -- cgit v1.2.3-55-g7522