1
0
mirror of https://github.com/rancher/os.git synced 2025-08-31 14:23:11 +00:00

custom kernel and docker-from-scratch

This commit is contained in:
Ivan Mikushin
2015-08-07 19:34:05 +05:00
parent 1d45f2fb9a
commit 414eec85c6
4 changed files with 24 additions and 23 deletions

View File

@@ -2,6 +2,7 @@
set -ex
cd $(dirname $0)/..
. scripts/build-common
ln -sf bin/rancheros ./ros

View File

@@ -4,6 +4,8 @@ set -ex
cd $(dirname $0)/..
. scripts/build-common
INITRD_DIR=${BUILD}/initrd
rm -rf ${INITRD_DIR}/{usr,init}
mkdir -p ${INITRD_DIR}/usr/{bin,share/ros}
@@ -15,7 +17,7 @@ cp bin/rancheros ${INITRD_DIR}/usr/bin/ros
ln -s usr/bin/ros ${INITRD_DIR}/init
ln -s bin ${INITRD_DIR}/usr/sbin
DFS=$(docker create rancher/docker:1.8.0-rc2)
DFS=$(docker create ${DFS_IMAGE})
trap "docker rm -fv ${DFS}" EXIT
docker export ${DFS} | tar xvf - -C ${INITRD_DIR} --exclude=usr/bin/dockerlaunch \
--exclude=usr/bin/docker \

View File

@@ -4,6 +4,8 @@ set -ex
cd $(dirname $0)/..
. scripts/build-common
CD=${BUILD}/cd
mkdir -p ${CD}/boot/isolinux
cp ${DIST}/artifacts/initrd ${CD}/boot