From 52cc793ac3c5ba1d84c940a1824024fdca12dac1 Mon Sep 17 00:00:00 2001 From: Alexandros Afentoulis Date: Mon, 27 Aug 2018 14:47:17 +0300 Subject: [PATCH] oci-poc-setup: specify shell for chroot If no shell is specified chroot will try using user's shell. In case user has a shell not available within the deboostrapped live image, eg. zsh, the oci-poc-setup execution will fail like this: + chroot /tmp/build-debimg.4YsJMZ chroot: failed to run command '/usr/bin/zsh': No such file or directory + cleanup + error=127 + [ ! -d /tmp/build-debimg.4YsJMZ ] + [ 127 -gt 0 ] + echo + echo Error 127 Error 127 --- poc-bin/oci-poc-setup-bodi-hook | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poc-bin/oci-poc-setup-bodi-hook b/poc-bin/oci-poc-setup-bodi-hook index 81c895ae..f4c57595 100644 --- a/poc-bin/oci-poc-setup-bodi-hook +++ b/poc-bin/oci-poc-setup-bodi-hook @@ -70,7 +70,7 @@ fi ### Build OCI's live image ### mkdir -p ${BODI_CHROOT_PATH}/root/live-image -chroot ${BODI_CHROOT_PATH} <