File tree 1 file changed +26
-8
lines changed 1 file changed +26
-8
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,8 @@ REPOS=()
5
5
STREAM=" next-devel"
6
6
REF=" fedora/x86_64/coreos/${STREAM} "
7
7
8
- # openshift-hyperkube and openshift-clients would already be placed in /tmp/rpms
9
- PACKAGES=(
10
- cri-o
11
- cri-tools
8
+ # additional RPMs to install via os-extensions
9
+ EXTENSION_RPMS=(
12
10
attr
13
11
glusterfs
14
12
glusterfs-client-xlators
66
64
67
65
# download extension RPMs
68
66
mkdir -p /extensions/okd
69
- yumdownloader --archlist=x86_64 --disablerepo=' *' --destdir=/extensions/okd ${REPOLIST} ${PACKAGES[*]}
70
- cp -rvf /tmp/rpms/* /extensions/okd
67
+ yumdownloader --archlist=x86_64 --disablerepo=' *' --destdir=/extensions/okd ${REPOLIST} ${EXTENSION_RPMS[*]}
71
68
72
69
# build rpmostree repo
73
- cd /extensions
74
- createrepo_c --no-database .
70
+ pushd /extensions
71
+ createrepo_c --no-database .
72
+ popd
73
+
74
+ # inject cri-o, hyperkube RPMs and MCD binary in the ostree commit
75
+ mkdir /tmp/working
76
+ pushd /tmp/working
77
+ for i in $( find /tmp/rpms/ -iname * .rpm) ; do
78
+ echo " Extracting $i ..."
79
+ rpm2cpio $i | cpio -div
80
+ done
81
+ mv etc usr/
82
+ # /sbin is a symlink to /usr/sbin
83
+ mv sbin/* usr/sbin/
84
+ rm -rf sbin
85
+ popd
86
+
87
+ # add binaries (MCD) from /srv/addons
88
+ mkdir -p /tmp/working/usr/bin
89
+ cp -rvf /srv/addons/* /tmp/working/
90
+
91
+ # Add binaries to the tree
92
+ coreos-assembler dev-overlay --repo /srv/repo --rev " ${REF} " --add-tree /tmp/working --output-ref " ${REF} "
You can’t perform that action at this time.
0 commit comments