lxc-starts fails with "Failed to create string" if overlay rootfs options set
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
If lxc.rootfs.options is set for for an overlayfs rootfs on a modern system (i.e. requiring a workdir), container creation fails with the error "Failed to create string" in the debug log.
Cause is a mindlessly simple off-by-one error: https:/
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: lxc-utils 1:5.0.0~
Uname: Linux 5.19.0-
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: XFCE
Date: Sun Jul 3 10:35:48 2022
InstallationDate: Installed on 2017-01-08 (2001 days ago)
InstallationMedia: Xubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
KernLog:
SourcePackage: lxc
UpgradeStatus: Upgraded to jammy on 2022-04-01 (92 days ago)
defaults.conf:
lxc.net.0.type = veth
lxc.net.0.link = lxcbr0
lxc.net.0.flags = up
lxc.net.0.hwaddr = 00:16:3e:xx:xx:xx