Repository navigation
WIP: Add support for GRUB - #4
mkessler001 wants to merge 3 commits into
Conversation
3006c5a to
ba29359
Compare
|
@mkessler001 did you need help with getting this going, and did you want to split up some of the work? Potentially to start one of us could work on the generator, and one of us the plugin integration. Let me know if that would be helpful. We had also also discussed writing the generator in C++, is that still the route you wanted to take? |
ba29359 to
5a70bbc
Compare
I updated the PL description - the first version will be in C (b4eb455). As our setups are quite different in terms of mounting the boot dataset (reading |
|
Yeah that makes perfect sense having a stand-alone executable, just like what we did in Python. What is the plan in terms of determining the boot dataset? Consolidating on using fstab could be an option, especially since much of the work has already been done once in the systemd plugin. The other option would be a systemd mount unit, which is essentially what the fstab generates, however I think this would be a bad option with grub in case users want to use the plugin without systemd. The last option like you said is a script which determines the correct dataset, what do you see as the benefits of this over modifying fstab? |
|
Moved grub work to an external plugin johnramsden/zectl-grub |
Similar to
zedenv, this project needs support for GRUB. This means, that after a change of the current state by one of the following commandsactivatedestroyclonerenameall boot environments must be mounted and the
grub.cfgfile re-created.I've labeled this pull request as work in progress. This makes it easier to discuss about code segments and keep track of the current state.
TODO List:
As already discussed, it would be preferable to implement the generator in Python instead of placing a non-readable binary at
/etc/grub.d/. An additional advantage of this method is that we avoid the String-handling in C and reuse your code fromzedenv.Update: For the first version, I am going to implement the
grub_generatorin C.