Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewarmtemp committed Jun 26, 2024
1 parent e1375de commit e075d09
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/integration/image-install-upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ RUN cat <<EOF >> /usr/lib/bootc/install/00-mitigations.toml
[install.filesystem.root]
type = "xfs"
[install]
kargs = ["mitigations=on", "nosmt"]
kargs = ["mitigations=off"]
EOF
REALEOF

Expand Down Expand Up @@ -201,7 +201,7 @@ ansible-playbook -v \
-e test_os="$TEST_OS" \
-e bootc_image="$TEST_IMAGE_URL" \
-e image_label_version_id="$REDHAT_VERSION_ID" \
-e kargs="mitigations=on,nosmt" \
-e kargs="mitigations=off" \
playbooks/check-system.yaml

greenprint "Create upgrade Containerfile"
Expand All @@ -211,7 +211,7 @@ RUN dnf -y install wget && \
dnf -y clean all
RUN mkdir -p /usr/lib/bootc/kargs.d
RUN cat <<EOF >> /usr/lib/bootc/kargs.d/01-console.toml
kargs = ["systemd.unified_cgroup_hierarchy=0"]
kargs = ["systemd.unified_cgroup_hierarchy=1"]
EOF
REALEOF

Expand All @@ -232,15 +232,15 @@ ansible-playbook -v \
-e bootc_image="$TEST_IMAGE_URL" \
-e image_label_version_id="$REDHAT_VERSION_ID" \
-e upgrade="true" \
-e kargs="systemd.unified_cgroup_hierarchy=0" \
-e kargs="systemd.unified_cgroup_hierarchy=1" \
playbooks/check-system.yaml

greenprint "Create second upgrade Containerfile to test kargs delta"
tee "$UPGRADE_CONTAINERFILE" > /dev/null << REALEOF
FROM "$TEST_IMAGE_URL"
RUN mkdir -p /usr/lib/bootc/kargs.d
RUN cat <<EOF >> /usr/lib/bootc/kargs.d/01-console.toml
kargs = ["systemd.unified_cgroup_hierarchy=1"]
kargs = ["systemd.unified_cgroup_hierarchy=0"]
EOF
REALEOF

Expand All @@ -261,7 +261,7 @@ ansible-playbook -v \
-e bootc_image="$TEST_IMAGE_URL" \
-e image_label_version_id="$REDHAT_VERSION_ID" \
-e upgrade="true" \
-e kargs="systemd.unified_cgroup_hierarchy=1" \
-e kargs="systemd.unified_cgroup_hierarchy=0" \
playbooks/check-system.yaml

greenprint "Rollback $TEST_OS system"
Expand Down

0 comments on commit e075d09

Please sign in to comment.