Skip to content

Commit

Permalink
utilize regexp to dynamically set mender_grub_storage_device
Browse files Browse the repository at this point in the history
Changelog: Title

Signed-off-by: Mirza Krak <mirza.krak@northern.tech>
  • Loading branch information
mirzak committed Apr 17, 2020
1 parent c5dd50c commit 9f1621b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions 05_mender_setup_grub.cfg
Expand Up @@ -110,3 +110,5 @@ if [ "${upgrade_available}" = "1" ]; then

mender_save_env
fi

regexp (.*),(.*) $root -s mender_grub_storage_device
4 changes: 0 additions & 4 deletions mender_grubenv_defines.example
Expand Up @@ -11,10 +11,6 @@ mender_rootfsb_part=3
# Device file corresponding to the root filesystem partitions, without index.
mender_kernel_root_base=/dev/mmcblk0p

# Name of the storage device containing root filesystem partitions in GRUB
# format.
mender_grub_storage_device=hd0

# Type of kernel (bzImage or zImage)
kernel_imagetype=bzImage

Expand Down

0 comments on commit 9f1621b

Please sign in to comment.