Support Linux Mint in BuildLinux.sh (map to Ubuntu base)#582
Open
lolli42 wants to merge 1 commit into
Open
Conversation
Linux Mint reports ID=linuxmint in /etc/os-release and has no matching linux.d profile, so BuildLinux.sh aborted with "distribution not supported". Map linuxmint to its Ubuntu equivalent: Mint 22.x (Ubuntu 24.04 base) -> debian2, else debian. Uses an integer major-version compare to avoid a bc dependency during detection.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
BuildLinux.shaborts on Linux Mint with "Your distribution does not appear tobe currently supported by these build scripts", so Mint users can't build.
Cause
Distro detection reads
ID=from/etc/os-releaseand mapsubuntuto thedebian/debian2profiles, but Linux Mint reportsID=linuxmint, for whichthere is no
linux.d/profile — so the script exits early before configuring.Fix
Treat Linux Mint like its Ubuntu base, mirroring the existing
ubuntuhandling:debian2debianUses an integer major-version comparison (
${VERSION_ID%%.*}) so detection doesnot depend on
bcbeing installed.Testing
Built on Linux Mint 22.3 (Ubuntu 24.04 base, GCC 13):
sudo ./BuildLinux.sh -unow resolves to the
debian2profile and installs the dependencies, and a full-d/-s/-ibuild completes.Notes
Linux-only; no effect on detection for other distributions. Reuses the
debian2profile and mirrors theubuntu→debian2logic already present inthe script.