Skip to content

Commit

Permalink
Update the awk print field to fetch rhcos-image
Browse files Browse the repository at this point in the history
With the latest rhcos /proc/cmdline has modified to
BOOT_IMAGE=(hd0,gpt3)/boot/ostree/rhcos-<imageId> instead of
BOOT_IMAGE=(hd1,gpt3)/ostree/rhcos-<imageId>

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
  • Loading branch information
Niranjan M.R committed Apr 12, 2024
1 parent 158afb2 commit f056559
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ var _ = Describe("[rfe_id:27368][performance]", Ordered, func() {

It("[test_id:32375][crit:high][vendor:cnf-qe@redhat.com][level:acceptance] initramfs should not have injected configuration", func() {
for _, node := range workerRTNodes {
rhcosId, err := nodes.ExecCommandOnMachineConfigDaemon(context.TODO(), &node, []string{"awk", "-F", "/", "{printf $3}", "/rootfs/proc/cmdline"})
rhcosId, err := nodes.ExecCommandOnMachineConfigDaemon(context.TODO(), &node, []string{"awk", "-F", "/", "{printf $4}", "/rootfs/proc/cmdline"})
Expect(err).ToNot(HaveOccurred())
initramfsImagesPath, err := nodes.ExecCommandOnMachineConfigDaemon(context.TODO(), &node, []string{"find", filepath.Join("/rootfs/boot/ostree", string(rhcosId)), "-name", "*.img"})
Expect(err).ToNot(HaveOccurred())
Expand Down

0 comments on commit f056559

Please sign in to comment.