From 73aa52bb02822ad881369c84f31b6fe8c8ee5ac6 Mon Sep 17 00:00:00 2001 From: Greg Price Date: Sun, 19 Oct 2008 20:15:07 -0400 Subject: [PATCH 1/1] autoinstaller: hide misleading harmless dmsetup error message svn path=/trunk/packages/sipb-xen-autoinstaller/; revision=1147 --- common/usr/sbin/sipb-xen-create-image | 4 ++-- debian/changelog | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/common/usr/sbin/sipb-xen-create-image b/common/usr/sbin/sipb-xen-create-image index 5f867ad..2e71fde 100644 --- a/common/usr/sbin/sipb-xen-create-image +++ b/common/usr/sbin/sipb-xen-create-image @@ -10,12 +10,12 @@ set -e echo ,"${FSSIZE}"$',L,*\n,,S\n;\n;' | sfdisk -uM -H 255 -S 63 "$TARGET" -dmsetup info "$TARGET" && kpartx -a "$TARGET" +dmsetup info "$TARGET" 2>/dev/null && kpartx -a "$TARGET" xen-create-image --image-dev "${TARGET}1" --swap-dev "${TARGET}2" --fs ext3 --ide \ --hostname "$HOSTNAME" --ip="$IP" --netmask=255.255.0.0 --gateway=18.181.0.1 \ --arch "$ARCH" --dist "$DIST" --mirror "$MIRROR" --cache=yes --verbose -dmsetup info "$TARGET" && kpartx -d "$TARGET" +dmsetup info "$TARGET" 2>/dev/null && kpartx -d "$TARGET" exit 0 diff --git a/debian/changelog b/debian/changelog index f24b98b..db0230a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +sipb-xen-autoinstaller (2.10) unstable; urgency=low + + * Hide misleading harmless error message from dmsetup + + -- Greg Price Sun, 19 Oct 2008 20:12:21 -0400 + sipb-xen-autoinstaller (2.9) unstable; urgency=low * Run xen-create-image with --verbose so you actually get useful -- 1.7.9.5