mirror of https://github.com/xemu-project/xemu.git
docker: debian-bootstrap.pre: print error messages to stderr
Send error messages where they belong so they're seen even if stdout is redirected to /dev/null. Signed-off-by: Sascha Silbe <silbe@linux.vnet.ibm.com> Message-Id: <1473192351-601-4-git-send-email-silbe@linux.vnet.ibm.com> Signed-off-by: Fam Zheng <famz@redhat.com>
This commit is contained in:
parent
08f4e8d23d
commit
b5dc88ce24
|
@ -13,7 +13,7 @@ exit_and_skip()
|
||||||
# fakeroot is needed to run the bootstrap stage
|
# fakeroot is needed to run the bootstrap stage
|
||||||
#
|
#
|
||||||
if [ -z $FAKEROOT ]; then
|
if [ -z $FAKEROOT ]; then
|
||||||
echo "Please install fakeroot to enable bootstraping"
|
echo "Please install fakeroot to enable bootstraping" >&2
|
||||||
exit_and_skip
|
exit_and_skip
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ if [ -z $DEBOOTSTRAP_DIR ]; then
|
||||||
else
|
else
|
||||||
DEBOOTSTRAP=${DEBOOTSTRAP_DIR}/debootstrap
|
DEBOOTSTRAP=${DEBOOTSTRAP_DIR}/debootstrap
|
||||||
if [ ! -f $DEBOOTSTRAP ]; then
|
if [ ! -f $DEBOOTSTRAP ]; then
|
||||||
echo "Couldn't find script at ${DEBOOTSTRAP}"
|
echo "Couldn't find script at ${DEBOOTSTRAP}" >&2
|
||||||
exit_and_skip
|
exit_and_skip
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
@ -48,7 +48,7 @@ fi
|
||||||
#
|
#
|
||||||
BINFMT_DIR=/proc/sys/fs/binfmt_misc
|
BINFMT_DIR=/proc/sys/fs/binfmt_misc
|
||||||
if [ ! -e $BINFMT_DIR ]; then
|
if [ ! -e $BINFMT_DIR ]; then
|
||||||
echo "binfmt_misc needs enabling for a QEMU bootstrap to work"
|
echo "binfmt_misc needs enabling for a QEMU bootstrap to work" >&2
|
||||||
exit_and_skip
|
exit_and_skip
|
||||||
else
|
else
|
||||||
# DEB_ARCH and QEMU arch names are not totally aligned
|
# DEB_ARCH and QEMU arch names are not totally aligned
|
||||||
|
@ -76,7 +76,7 @@ else
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
if [ ! -e "${BINFMT_DIR}/$QEMU" ]; then
|
if [ ! -e "${BINFMT_DIR}/$QEMU" ]; then
|
||||||
echo "No binfmt_misc rule to run $QEMU, can't bootstrap"
|
echo "No binfmt_misc rule to run $QEMU, can't bootstrap" >&2
|
||||||
exit_and_skip
|
exit_and_skip
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue