-
Notifications
You must be signed in to change notification settings - Fork 433
LibreELEC labels #456
Comments
Actually, a max length of 15 characters (allowing an extra character for an additional number to disambiguate labels with the same name) is only applicable to |
I did a quick search, and found the code responsible for this at https://github.com/raspberrypi/noobs/blob/master/recovery/multiimagewritethread.cpp#L452 It does seem a bit odd to completely clear the label, perhaps truncating it (again taking the destination FS into account) would be more appropriate? BTW @procount does this actually cause install or boot problems, or is it merely a 'cosmetic' issue? |
Yep, that's the spot. Sorry I should have linked to it. AFAIK it does not cause a problem with NOOBS, except that the 2 LibreELEC partitions will have no names to identify them. So yes, it is more cosmetic than anything else. Although if there was an OS that referenced it's partitions (e.g. in fstab) by label (which has always been a possibility in NOOBS), then that WOULD be an issue. I haven't checked any other OSes to see if any others are affected. This problem was identified when testing a new feature for the next version of PINN, so it is causing me a problem and I shall have to work around it somehow. Truncating the label appropriately seems like a solution, but from which end should it be truncated in order for the remainder still to be meaningful? In the case of LibreELEC, restricting both labels to 15 characters from the start would end up with "LibreELEC_RPi2_" for both labels, so maybe truncating the beginning might be better? I don't know of any conventions here 🤷♂️ |
One 'truncation-convention' that sometimes gets used when both the beginning and end of a filename need to be seen, is to truncate e.g. "LibreELEC_RPi_Storage" to ""LibreE...torage" - but I've got no idea if dots are allowable in filesystem labels! ;-) |
There are no plans to make further changes to NOOBS in the near future. |
Hmm. LibreELEC uses "@DISTRONAME@_@PROJECT@_System" for the label name They have no issue system, just PRs. so you can only report an issue by providing a solution.... |
The README on the repo that @XECDesign linked to says "Please report issues via the LibreELEC forum: Bug Reports" 😉 |
@lurch - Doh! I missed that. Thanks, I'll raise a bug there. |
A proposal to fix this... EDIT: Deleted for improvements |
I'm not sure the code to clear out the partitions is working sufficiently. |
Nice catch - that might explain why, when I was doing lots of NOOBS testing many years ago, I'd sometimes "mysteriously" get numbers added to the end of my partition labels, even though there didn't appear to be any label conflicts ;-) But again, this is merely a cosmetic issue. |
Yes, that's exactly why! @XECDesign -despite there not being any plans to update noobs in the near future for additional features, you have done a lot of recent tidy ups and added some new translations since the last release. Will you be making a minor release to include those latest commits at any time? |
Actually, I think the fix is quite simple - change count=1 to count=3 in the above line. |
Tidying up leaves less things to worry about in the future and I had some time to spare. That wasn't done in preparation for an update. At some point I will do another pass to test and merge the simple fixes and close off the wontfix issues. Then maybe it will make sense to do a point release. |
OK, thanks for the clarifications. BTW I've been checking other OSes and RISC-OS also has a FAT partition label that is too long: "RISC_OS_Boot", although enough of it is different to the ROOT partition name to be unambiguous. |
@lurch - I came up with an algorithm that would shorten overly long volume names. What do you think of the outcome for NTFS(32), EXT4(16) and FAT(11): "LibreELEC_RPi2_System" 32 Code available at https://gist.github.com/procount/50f8fbfec0bfe88bc6f24cddef0ca430 |
There's another problem in that the boot partitions will not be cleared at all if installing to USB (i.e. under a _multidrive situation). I have a fix that I will include in my PR |
The partition labels provided in partitions.json for LibreELEC are too long. i.e. "LibreELEC_RPi_System" and "LibreELEC_RPi_Storage".
If NOOBS finds a label longer than 15 characters, it will completely clear the label and not give the partition any label at all.
As this is an externally hosted OS, could you pass on this request to the LibreELEC maintainers to reduce their partition names to 15 characters or less?
The text was updated successfully, but these errors were encountered: