From cc08bd5b89dc054195a6d003e46608930ac4d116 Mon Sep 17 00:00:00 2001 From: John Southworth Date: Wed, 5 Sep 2012 12:58:14 -0700 Subject: detect if /scripts/functions exists before sourcing it in xen script. This fixes an error during the iso build process --- scripts/init-top/xen | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/init-top/xen b/scripts/init-top/xen index d403247..1ccf740 100755 --- a/scripts/init-top/xen +++ b/scripts/init-top/xen @@ -1,6 +1,8 @@ #!/bin/sh -. /scripts/functions +if [ -f /scripts/functions ]; then + . /scripts/functions +fi if [ "$(cat /sys/hypervisor/type 2>/dev/null || true)" = xen ] && \ [ ! -d /sys/bus/xen ]; then -- cgit v1.2.3