File tree Expand file tree Collapse file tree 2 files changed +46
-28
lines changed Expand file tree Collapse file tree 2 files changed +46
-28
lines changed Original file line number Diff line number Diff line change @@ -4,34 +4,38 @@ RUN rm -rf /etc/yum.repos.d/*.repo
44COPY output/yum.repos.d /etc/yum.repos.d
55
66ARG PACKAGES="\
7- bind-utils \
8- buildah \
9- cephadm \
10- chrony \
11- cloud-init \
12- crudini \
13- crypto-policies-scripts \
14- device-mapper-multipath \
15- driverctl \
16- grubby \
17- iproute-tc \
18- iptables-services \
19- iscsi-initiator-utils \
20- jq \
21- lvm2 \
22- nftables \
23- numactl \
24- openssh-server \
25- openstack-selinux \
26- openvswitch \
27- os-net-config \
28- podman \
29- python3-libselinux \
30- python3-pyyaml \
31- rsync \
32- tmpwatch \
33- tuned-profiles-cpu-partitioning \
34- sysstat"
7+ bind-utils \
8+ buildah \
9+ cephadm \
10+ chrony \
11+ cloud-init \
12+ crudini \
13+ crypto-policies-scripts \
14+ device-mapper-multipath \
15+ driverctl \
16+ grubby \
17+ iproute-tc \
18+ iptables-services \
19+ iscsi-initiator-utils \
20+ jq \
21+ lvm2 \
22+ nftables \
23+ numactl \
24+ openssh-server \
25+ openstack-selinux \
26+ openvswitch \
27+ os-net-config \
28+ podman \
29+ python3-libselinux \
30+ python3-pyyaml \
31+ rsync \
32+ tmpwatch \
33+ tuned-profiles-cpu-partitioning \
34+ sysstat"
3535ARG ENABLE_UNITS="openvswitch"
3636
3737RUN dnf -y update && dnf -y install $PACKAGES && dnf clean all && systemctl enable $ENABLE_UNITS
38+
39+ # Drop Ansible fact into place
40+ COPY ansible-facts/bootc.fact /usr/etc/ansible/facts.d/bootc.fact
41+ RUN chmod +x /usr/etc/ansible/facts.d/bootc.fact
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ BOOTC_SYSTEM=" false"
4+
5+ is_bootc () {
6+ BOOTC_STATUS=$( sudo bootc status --json | jq .status.type)
7+ if [[ " $BOOTC_STATUS " == \" bootcHost\" ]]; then
8+ BOOTC_SYSTEM=" true"
9+ fi
10+ }
11+
12+ is_bootc
13+
14+ echo ${BOOTC_SYSTEM}
You can’t perform that action at this time.
0 commit comments