Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jpdavis-prof authored Oct 17, 2024
1 parent 004076b commit 03cda88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions goss-testing/scripts/check_bootloader.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# MIT License
#
# (C) Copyright 2022 Hewlett Packard Enterprise Development LP
# (C) Copyright 2022-2024 Hewlett Packard Enterprise Development LP
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
Expand Down Expand Up @@ -57,7 +57,7 @@ function verify_initrd {
local needed_initrd_name
local needed_initrd

needed_initrd_name="$(grep -oP '(?<=initrdefi \$prefix/\.\./)(initrd[a-zA-Z.\-_]*)' ${BOOTRAID}/boot/grub2/grub.cfg)"
needed_initrd_name="$(grep -oE '(initrd|initrdefi)\s+\$prefix\/\.\.\/initrd[a-zA-Z.\-_]*' ${BOOTRAID}/boot/grub2/grub.cfg | awk -F'/' '{print $NF}')"
needed_initrd="${BOOTRAID}/boot/${needed_initrd_name}"
if [ ! -f $needed_initrd ]; then

Expand Down

0 comments on commit 03cda88

Please sign in to comment.