[mkchroot] revisit locale-gen #37
Labels
No labels
Done
bug
buildiso
buildpkg
buildtree
critical
deployiso
duplicate
enhancement
help wanted
in progress
invalid
manjaro-chroot
note
old-not-relevant
optional
question
sonar
todo
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
tools/manjaro-tools#37
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Created by: manjaro
By default we have followed locale.conf
Somehow we end up with:
This is wrong and needs another look. Also it might create lot of issues during live-session bootup.
Created by: manjaro
6108431a6emight fix it. Needs testing ...Created by: udeved
This is only default for buildpkg, ie build_locale=true (-L)
buildiso calls mkchroot without -L
Will take a look later.
Created by: manjaro
I get errors in live-session bootup regarding C locale. I've to check my buildiso work folder later when I'm home.
Created by: udeved
If I output the concerning vars for mkchroot at iso build I get this:
which is correct for buildiso.
Will investigate further, but code wise, no lang.conf or locale is changed or set for buildiso.
No locale.conf is written at all, so iso may default to standard locales.
I think we should run also locale-gen with default english, atm it runs "empty"(commented) locale.gen.
It will be set again by livecd script I recall.
Created by: udeved
github.com/manjaro/manjaro-tools@7ec1ea51cfI believe this commit fixes it.
Please test also.
Your commit essentially changed locales for buildpkg but not for buildido call.
Created by: manjaro
I check it now. As of now no locales get generated. I've to check if some are needed at all.
Created by: udeved
The locale.conf on root-image is now created as expected.
and locale-gen is set to
and en locales generated.
Looks fine to me. The iso now is set to default english and probably won't default to C locales due to unset loacles.
Created by: manjaro
Well it works. We need to add routine to start locale-gen only after we created root-image and only for that image, else we have it on all images.
Created by: udeved
Urgs, then mkchroot has to check if root-image is in the work_dir path.
or we simply delete locale.gen and locale.conf on other images.
But do they hurt or confuse the system?
Created by: manjaro
Getting closer now
89b0396159Created by: manjaro
finally fixed with
3069853560Created by: udeved
I think I can now remove the build_locales bool var from mkchroot, since mkiso basically calls the buildpkg routine