Skip to content

Commit

Permalink
Fix passive snapshots listing in grub.cfg
Browse files Browse the repository at this point in the history
Signed-off-by: David Cassany <dcassany@suse.com>
  • Loading branch information
davidcassany committed Mar 21, 2024
1 parent 39128d5 commit 4fb44d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/features/embedded/grub-config/etc/elemental/grub.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ menuentry "${display_name}" --id active {
}

for passive_snap in ${passive_snaps}; do
menuentry "${display_name} (snapshot ${passive_snap})" --id ${passive_snap} {
menuentry "${display_name} (snapshot ${passive_snap})" --id passive${passive_snap} ${passive_snap} {
set mode=passive
search --no-floppy --label --set=root ${state_label}
set_volume ${passive_snap}
set_volume ${2}
source_bootargs
linux (${volume})${kernel} ${kernelcmd} ${extra_cmdline} ${extra_passive_cmdline}
initrd (${volume})${initramfs}
Expand Down

0 comments on commit 4fb44d2

Please sign in to comment.