Fails to build directory, tar or btrfs subvolumes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mkosi (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
All attempts to build non disk-image targets 'directory' 'tar' 'subvolume' (lightweight containers) fail with the same error. The only fix appears to be to upgrade to latest mainline code (mkosi version 9). Example:
root@elloe000:~# mkosi -t directory
DISTRIBUTION:
OUTPUT:
Output Format: directory
Output Checksum: n/a
Output Signature: n/a
Output Bmap: n/a
Output nspawn Settings: n/a
FS Compression: no
XZ Compression: no
PACKAGES:
Package Cache: none
Extra Trees: none
Skeleton Trees: none
Build Script: none
Build Sources: /root
Source File Transfer: none
Build Directory: none
Build Packages: none
Postinstall Script: none
Finalize Script: none
Scripts with network: no
nspawn Settings: none
HOST CONFIGURATION:
Extra search paths: none
‣ Detaching namespace...
‣ Detaching namespace complete.
‣ Setting up package cache...
‣ Setting up package cache /root/.
‣ Setting up temporary workspace.
‣ Temporary workspace in /root/.
‣ Mounting image...
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 4147, in build_image
with mount_image(args, workspace.name, loopdev, encrypted_root, encrypted_home, encrypted_srv):
File "/usr/lib/
return next(self.gen)
File "/usr/bin/mkosi", line 961, in mount_image
if args.xbootldr_
AttributeError: 'CommandLineArg
Traceback (most recent call last):
File "/usr/lib/
f()
File "/usr/lib/
return info.func(
File "/usr/lib/
cls.
File "/usr/lib/
_rmtree(name, onerror=onerror)
File "/usr/lib/
_rmtree_
File "/usr/lib/
onerror(
File "/usr/lib/
os.
OSError: [Errno 16] Device or resource busy: 'root'
description: | updated |
description: | updated |
Changed in mkosi (Ubuntu): | |
status: | New → Confirmed |
Changed in mkosi (Ubuntu): | |
status: | Confirmed → Fix Committed |
Changed in mkosi (Ubuntu): | |
status: | Fix Committed → Fix Released |