1
0
mirror of https://github.com/rancher/os.git synced 2025-09-08 10:11:46 +00:00

Add tty and half way broken state handling

This commit is contained in:
Darren Shepherd
2015-02-16 16:38:49 -07:00
parent 3ab1f76ef0
commit 925a847ccc
11 changed files with 96 additions and 70 deletions

View File

@@ -13,6 +13,15 @@ mkdir -p ${BUILD} ${DIST}
busybox_install()
{
local conf=$1
local bbconf=$2
local target=$3
if [ "$#" = "2" ]; then
target=$2
bbconf=
fi
apt-get update
apt-get install -y build-essential wget libncurses5-dev unzip bc
@@ -22,11 +31,14 @@ busybox_install()
tar xvjf ${ARTIFACTS}/${BUILDROOT}
cd ${BUILDROOT/.tar.bz2//}
cp $1 .config
cp $conf .config
if [ -n "$bbconf" ]; then
cp $bbconf package/busybox/
fi
make oldconfig
make
cp output/images/rootfs.tar $2
cp output/images/rootfs.tar $target
}
write_base()
@@ -74,6 +86,10 @@ run()
echo -e "\nCOPY $1 /source/$1" >> ${DOCKER_FILE}
echo -e "RUN /source/$1" >> ${DOCKER_FILE}
fi
if [ "$RUN_EXEC" = "true" ]; then
$1
fi
}
finish()