Date: Thu, 14 Oct 2010 01:48:52 GMT From: John Hixson <john@ixsystems.com> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/151442: pc-sysinstall patch to fix bug in image decompression code Message-ID: <201010140148.o9E1mqNr084352@www.freebsd.org> Resent-Message-ID: <201010140150.o9E1o3fC017318@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 151442
>Category: bin
>Synopsis: pc-sysinstall patch to fix bug in image decompression code
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Thu Oct 14 01:50:03 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: John Hixson
>Release: 9.0-CURRENT
>Organization:
iXsystems
>Environment:
FreeBSD thinkbsd 9.0-CURRENT FreeBSD 9.0-CURRENT #6: Sat Sep 25 05:21:08 PDT 2010 john@thinkbsd:/usr/obj/usr/src/sys/THINKBSD amd64
>Description:
Leftover code from a previous patch being removed.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
--- usr.sbin/pc-sysinstall/backend/functions-disk.sh 2010-10-13 15:28:33.000000000 -0700
+++ usr.sbin/pc-sysinstall.decompress/backend/functions-disk.sh 2010-09-28 20:24:03.000000000 -0700
@@ -507,6 +507,17 @@
DEST="${DISK}"
fi
+ if iscompressed "${IMAGE}"
+ then
+ local COMPRESSION
+
+ get_compression_type "${IMAGE}"
+ COMPRESSION="${VAL}"
+
+ decompress_file "${IMAGE}" "${COMPRESSION}"
+ IMAGE="${VAL}"
+ fi
+
write_image "${IMAGE}" "${DEST}"
check_disk_layout "${DEST}"
fi
>Release-Note:
>Audit-Trail:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010140148.o9E1mqNr084352>
