-
-
Notifications
You must be signed in to change notification settings - Fork 33
Description
I have had a number of open PRs at billfw2's repo for quite some time. Today I've moved over the simple ones (#16, #17, #18, #20) and added a new one (#19), leaving the last big one, billw2#140 which is needed to support Armbian. That PR makes two main changes:
- Support modifying
armbianEnv.txt
instead ofcmdline.txt
- Support updating filesystem UUID's instead of just PARTUUIDs
In addition, it refactors the code to introduce some helper functions to reuse some code. In particular it uses the same code for updating fstab
and cmdline.txt
, and for supporting cmdline.txt
and armbianEnv
it just calls the same (new) function twice to try each file.
However, some changes made in this repo conflict with the changes there, in particular 63765e8 that adds support for /boot/firmware/cmdline.txt
. Additionally, the commit order in my PR has grown over a few years, so I think it would be better to restructure the commits (first extract code into functions and only then make it more complicated).
Before I fully commit to revamping this pullrequest, I would like to get some feedback on these questions:
- @geerlingguy, are you interested in merging support for Armbian at all?
- The current support for
/boot/firmware/cmdline.txt
parses fstab (in a somewhat fragile way IMHO) to decide where to findcmdline.txt
. My approach for this was to just try all versions (/boot/cmdline.txt
,/boot/firmware/cmdline.txt
and/boot/armbianEnv.txt
) and upating any of these files that exist. I believe this gives cleaner code. Does that approach make sense? - There is also some code to convert fstab and cmdline.txt from raw device names to use PARTUUID. This also has received support for
/boot/firmware/cmdline.txt
, but the structure of this conversion code does not lend itself for the "try each in turn" approach. However, it seems that raspbian started using PARTUUIDs in 2017, so I wonder if there is till value in this feature. I would be inclined to just remove the feature to simplify the code and reducing maintainance load of code that is probably unused and hard to test as well. How does that sound?