[Pkg-xen-changes] r993 - trunk/xen/debian
Bastian Blank
waldi at alioth.debian.org
Sun Apr 22 21:33:22 UTC 2012
Author: waldi
Date: Sun Apr 22 21:33:21 2012
New Revision: 993
Log:
debian/xen-utils-common.xendomains.init: Remove wrong save format check.
Modified:
trunk/xen/debian/xen-utils-common.xendomains.init
Modified: trunk/xen/debian/xen-utils-common.xendomains.init
==============================================================================
--- trunk/xen/debian/xen-utils-common.xendomains.init Sun Apr 22 21:07:53 2012 (r992)
+++ trunk/xen/debian/xen-utils-common.xendomains.init Sun Apr 22 21:33:21 2012 (r993)
@@ -74,22 +74,19 @@
{
for file in $XENDOMAINS_SAVE/*; do
if [ -f $file ] ; then
- HEADER=$(head -c 16 "$file" | head -n 1 2> /dev/null)
- if [ $HEADER = "LinuxGuestRecord" ]; then
- name="${file##*/}"
- log_action_begin_msg "Restoring Xen domain $name"
+ name="${file##*/}"
+ log_action_begin_msg "Restoring Xen domain $name"
- out=$(xen restore "$file" 2>&1 1>/dev/null)
- case "$?" in
- 0)
- rm "$file"
- log_action_end_msg 0
- ;;
- *)
- log_action_end_msg 1
- ;;
- esac
- fi
+ out=$(xen restore "$file" 2>&1 1>/dev/null)
+ case "$?" in
+ 0)
+ rm "$file"
+ log_action_end_msg 0
+ ;;
+ *)
+ log_action_end_msg 1
+ ;;
+ esac
fi
done
}
More information about the Pkg-xen-changes
mailing list