Last active
January 11, 2019 19:22
-
-
Save tuxfight3r/bfc84c34540da2ef5af73643ffa41169 to your computer and use it in GitHub Desktop.
atomic os custom build - centos 7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Install the relevant packages | |
dnf install -y ostree rpm-ostree git python rpm-ostree-toolbox libgsystem; | |
#checkout the build scripts | |
git clone https://github.com/CentOS/sig-atomic-buildscripts; | |
cd sig-atomic-buildscripts | |
git checkout downstream | |
# create and initialize repo directory | |
mkdir -p /srv/rpm-ostree/repo | |
cd /srv/rpm-ostree/ | |
#Initialize repo | |
ostree --repo=repo init --mode=archive-z2 | |
#Compose tree | |
rpm-ostree compose tree --repo /srv/rpm-ostree/repo ./centos-atomic-host.json | |
#Browse tree | |
ostree --repo=/srv/rpm-ostree/repo/ ls centos-atomic-host/7/x86_64/standard | |
ostree --repo=/srv/rpm-ostree/repo/ ls centos-atomic-host/7/x86_64/standard /usr/lib | |
ostree --repo=/srv/rpm-ostree/repo/ ls centos-atomic-host/7/x86_64/standard /usr/lib/ostree-boot/grub2 | |
#create installer | |
rpm-ostree-toolbox installer --overwrite --ostreerepo /srv/rpm-ostree/repo \ | |
-c centos7-atomic-custom/sig-atomic-buildscripts/config.ini -o build/installer | |
#create images | |
rpm-ostree-toolbox imagefactory --overwrite --tdl atomic-7.1.tdl -c ../centos7-atomic-custom/config.ini \ | |
-i kvm -i vagrant-libvirt -i vagrant-virtualbox -k ../centos7-atomic-custom/sig-atomic-buildscripts/centos-atomic.ks \ --vkickstart ../centos7-atomic-custom/sig-atomic-buildscripts/centos-atomic-vagrant.ks \ | |
--ostreerepo /srv/rpm-ostree/repo -o /root/build/virtimg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment