kata-containers/osbuilder
root@ubuntu:/opt/gopath/src/github.com/kata-containers/osbuilder# cd rootfs-builder/ root@ubuntu:/opt/gopath/src/github.com/kata-containers/osbuilder/rootfs-builder# ls alpine centos clearlinux debian euleros fedora README.md rootfs.sh suse template ubuntu root@ubuntu:/opt/gopath/src/github.com/kata-containers/osbuilder/rootfs-builder# cat rootfs.sh | grep -i ubuntu ubuntu | debian) "ubuntu" | "debian") echo "I am ubuntu or debian" root@ubuntu:/opt/gopath/src/github.com/kata-containers/osbuilder/rootfs-builder#
export USE_DOCKER=true ./rootfs.sh centos
./rootfs.sh ubuntu
../image-builder/image_builder.sh rootfs-bionic
root@ubuntu:/opt/gopath/src/github.com/kata-containers/osbuilder/rootfs-builder# ls alpine clearlinux euleros kata-containers.img rootfs-bionic suse ubuntu centos debian fedora README.md rootfs.sh template root@ubuntu:/opt/gopath/src/github.com/kata-containers/osbuilder/rootfs-builder# cd rootfs-bionic/ root@ubuntu:/opt/gopath/src/github.com/kata-containers/osbuilder/rootfs-builder/rootfs-bionic# ls bin boot dev etc home lib media mnt opt proc root run sbin srv sys tmp usr var root@ubuntu:/opt/gopath/src/github.com/kata-containers/osbuilder/rootfs-builder/rootfs-bionic#
root@ubuntu:/opt/gopath/src/github.com/kata-containers/osbuilder/initrd-builder# ./initrd_builder.sh ../rootfs-builder/rootfs-bionic [OK] init is installed [OK] Agent is installed INFO: Creating /opt/gopath/src/github.com/kata-containers/osbuilder/initrd-builder/kata-containers-initrd.img based on rootfs at /opt/gopath/src/github.com/kata-containers/osbuilder/rootfs-builder/rootfs-bionic
root@ubuntu:/opt/gopath/src/github.com/kata-containers/osbuilder/initrd-builder# ls -al total 45072 drwxr-xr-x 2 root root 4096 Sep 29 19:42 . drwxr-xr-x 13 root root 4096 Sep 29 19:25 .. -rwxr-xr-x 1 root root 1927 Sep 29 19:20 initrd_builder.sh -rw-r--r-- 1 root root 46135424 Sep 29 19:42 kata-containers-initrd.img -rw-r--r-- 1 root root 655 Sep 29 19:20 README.md root@ubuntu:/opt/gopath/src/github.com/kata-containers/osbuilder/initrd-builder#