diff options
author | John Southworth <john.southworth@vyatta.com> | 2012-09-05 12:58:14 -0700 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2012-09-05 12:58:14 -0700 |
commit | cc08bd5b89dc054195a6d003e46608930ac4d116 (patch) | |
tree | 0ee278fb17bee6a534821ee9fde5be24fd539790 | |
parent | 4ee40edc6b298cd5d48bbef3166b5d962e316241 (diff) | |
download | initramfs-tools-cc08bd5b89dc054195a6d003e46608930ac4d116.tar.gz initramfs-tools-cc08bd5b89dc054195a6d003e46608930ac4d116.zip |
detect if /scripts/functions exists before sourcing it in xen script. This fixes an error during the iso build process
-rwxr-xr-x | scripts/init-top/xen | 4 |
1 files changed, 3 insertions, 1 deletions
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 |