Skip to content
This repository was archived by the owner on Feb 27, 2023. It is now read-only.

Conversation

@procount
Copy link
Contributor

If a partition label is specified that is >15 characters in length, NOOBS will unilaterally erase it.
This PR will shorten the partition label to the appropriate size for the file system instead: 11 for FAT, 16 for ext4 and 32 for NTFS. It will then make the label unique if necessary.

The shorten() function tries to make a sensible partition label out of one that has several distinct parts. If this is not required, the call can be replaced by something like label = label.left(maxLabelLen);

Fixes one issue from #456.

@procount procount mentioned this pull request Nov 24, 2017
@XECDesign XECDesign merged commit a585c86 into raspberrypi:master Mar 7, 2018
@XECDesign
Copy link
Contributor

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants