summaryrefslogtreecommitdiffstats
path: root/initramfs/initrd-stuff/etc/functions
diff options
context:
space:
mode:
authorFelix Endres2007-06-01 18:11:56 +0200
committerFelix Endres2007-06-01 18:11:56 +0200
commit014ce9a9e0dec78ecda10ec1ffdd6b0efa9614a3 (patch)
treea54353e2547cddf3c5701c601811b0b06dcc0043 /initramfs/initrd-stuff/etc/functions
parentFor Ubuntu: Include missing libraries for dhclient into initrd. (diff)
downloadcore-014ce9a9e0dec78ecda10ec1ffdd6b0efa9614a3.tar.gz
core-014ce9a9e0dec78ecda10ec1ffdd6b0efa9614a3.tar.xz
core-014ce9a9e0dec78ecda10ec1ffdd6b0efa9614a3.zip
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
Diffstat (limited to 'initramfs/initrd-stuff/etc/functions')
-rw-r--r--initramfs/initrd-stuff/etc/functions6
1 files changed, 5 insertions, 1 deletions
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