Skip to content

Conversation

@givensuman
Copy link

Fixes #1940.

The issue arose from handling of cumulative keys like
additional_packages or additional_flags being applied to boolean
flags as well.

Also includes a small patch for the leading spaces in --additional-packages output's leading space mentioned in #1940.

Testing

cat >> bug.ini << EOF
[ubuntu]
image=ubuntu:latest
root=true
nvidia=false
additional_packages="zsh"

[ubuntu-nvidia]
include=ubuntu
root=false
nvidia=true
additional_packages="htop iotop"
EOF

then run ./distrobox-assemble create --dry-run --file bug.ini. This satisfies expected output:

./distrobox-create --yes --name ubuntu --image ubuntu:latest --root --additional-packages zsh
./distrobox-create --yes --name ubuntu-nvidia --image ubuntu:latest --nvidia --additional-packages "zsh htop iotop"

givensuman added 2 commits December 19, 2025 18:07
Fixes 89luca89#1940.

The issue arose from handling of cumulative keys like
`additional_packages` or `additional_flags` being applied to boolean
flags as well.
@givensuman givensuman force-pushed the T-1940-fix-assemble-include branch 2 times, most recently from 668d82e to a0521ca Compare December 19, 2025 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Error] distrobox assemble create fails to override boolean flags from false->true when "include" key specified

1 participant