projects
/
invirt/packages/invirt-autoinstaller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
autoinstaller: hide misleading harmless dmsetup error message
[invirt/packages/invirt-autoinstaller.git]
/
common
/
usr
/
sbin
/
sipb-xen-create-image
diff --git
a/common/usr/sbin/sipb-xen-create-image
b/common/usr/sbin/sipb-xen-create-image
index
531e6a1
..
2e71fde
100644
(file)
--- 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"
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 \
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
+ --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
exit 0