Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify "grub btrfs dirname" variable. #113

Merged
merged 5 commits into from Oct 9, 2020
Merged

Conversation

Antynea
Copy link
Owner

@Antynea Antynea commented Oct 9, 2020

Modify "GRUB_BTRFS_DIRNAME" variable

  • Script / config file / grub-btrfs.service
    • Full path to Grub folder is now configurable (/boot is no longer hard coded).
    • Detection of the boot partition is now based on the location of the Grub folder.

* Modify "GRUB_BTRFS_DIRNAME"
  * Full path to Grub folder is now configurable (/boot is no longer hard coded).
  * Detection of the boot partition is now based on the location of the Grub folder.
* Modify "GRUB_BTRFS_DIRNAME"
  * Full path to Grub folder is now configurable (/boot is no longer hard coded).
* Modify "GRUB_BTRFS_DIRNAME"
  * Full path to Grub folder is now configurable (/boot is no longer hard coded).
* Modify "GRUB_BTRFS_DIRNAME"
  * Full path to Grub folder is now configurable (/boot is no longer hard coded).
@Antynea
Copy link
Owner Author

Antynea commented Oct 9, 2020

Warning
This should be used with caution.
If we use another folder than the default Grub installation folder generated during grub-install,
then it might break the use of the generated submenu by grub-btrfs.
Because

submenu '${submenuname}' ${protection_authorized_users}${unrestricted_access_submenu}{
	configfile "\${prefix}/grub-btrfs.cfg"
}

Will not be updated and will look for the file grub-btrfs.cfg in / grub.
${prefix} is a variable use by Grub in boot menu for path of grub folder.

grub-btrfs.service Outdated Show resolved Hide resolved
* Modify "GRUB_BTRFS_DIRNAME"
  * Full path to Grub folder is now configurable (/boot is no longer hard coded).
  * Detection of the boot partition is now based on the location of the Grub folder.
@Antynea Antynea merged commit 3c5e741 into master Oct 9, 2020
@Antynea Antynea deleted the Modify-"GRUB_BTRFS_DIRNAME" branch October 9, 2020 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants