Actually support Ubuntu
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mkosi (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Bionic |
New
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Medium
|
Unassigned | ||
Groovy |
Fix Released
|
Medium
|
Unassigned | ||
Hirsute |
Fix Released
|
Medium
|
Unassigned |
Bug Description
[impact]
mkosi does not work on ubuntu when using distribution detection instead of specifying distribution and release codename
[test case]
see original description
[regression potential]
any regression would likely result in immediate failure on ubuntu and/or when running mkosi for ubuntu
[scope]
this is needed for f,g,h
this was fixed upstream by commit 743a06b0afd1215
this is also needed for b, but that version is so old that it would require other changes
[other info]
debian MR:
https:/
[original description]
version 5-1 does not support Ubuntu correctly in that it tries to use the version number rather than version codename in arguments to debootstrap.
$ sudo mkosi
...
Traceback (most recent call last):
File "/usr/bin/mkosi", line 4539, in <module>
main()
File "/usr/bin/mkosi", line 4535, in main
run_verb(args)
File "/usr/bin/mkosi", line 4507, in run_verb
build_
File "/usr/bin/mkosi", line 4333, in build_stuff
raw, tar, root_hash = build_image(args, workspace, do_run_
File "/usr/bin/mkosi", line 4153, in build_image
install_
File "/usr/bin/mkosi", line 1987, in install_
install[
File "/usr/lib/
return func(*args, **kwds)
File "/usr/bin/mkosi", line 1717, in install_ubuntu
install_
File "/usr/bin/mkosi", line 1633, in install_
run(cmdline, check=True)
File "/usr/bin/mkosi", line 69, in run
return subprocess.
File "/usr/lib/
raise CalledProcessEr
subprocess.
v-rc,initscript
://archive.
Notice the "20.04" argument passed to debootstrap, which should be "focal".
Changed in mkosi (Ubuntu): | |
status: | New → In Progress |
description: | updated |
description: | updated |
Changed in mkosi (Ubuntu Hirsute): | |
importance: | Undecided → Medium |
Changed in mkosi (Ubuntu Groovy): | |
importance: | Undecided → Medium |
Changed in mkosi (Ubuntu Focal): | |
importance: | Undecided → Medium |
This applies for 21.04, 21.10 and 20.04