]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/lxccontainer.c
Revert "api: ->save_config() doesn't need to create container dir"
authorStéphane Graber <stgraber@ubuntu.com>
Tue, 30 Nov 2021 22:39:34 +0000 (17:39 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 30 Nov 2021 22:39:34 +0000 (17:39 -0500)
commit9873fb06d8b0e654e49a35facb5340de423c945a
tree725df40f7b32045b6c4b376b70e0fa047dc75067
parent030e1aaad5387feacc2c802bbb1e60ec5aee820c
Revert "api: ->save_config() doesn't need to create container dir"

This reverts commit 2fde07c3990fe09925699da5d9a1762eb279c497.

We need to investigate this in more detail but this commit is breaking
LXD, causing startup to fail with:

lxc foo 20211130202833.906 INFO     conf - conf.c:run_script_argv:336 - Executing script "/bin/mount -t shiftfs -o passthrough=3 "/lxc-ci/build/tmp.WemmpzWGYz/go/src/github.com/lxc/lxd/test/tmp.Cli/0To/containers/foo/rootfs" "/lxc-ci/build/tmp.WemmpzWGYz/go/src/github.com/lxc/lxd/test/tmp.Cli/0To/containers/foo/rootfs"" for container "foo"
lxc foo 20211130202833.912 ERROR    conf - conf.c:run_buffer:321 - Script exited with status 32
lxc foo 20211130202833.912 ERROR    conf - conf.c:lxc_setup_rootfs_prepare_root:3947 - Failed to run pre-mount hooks
lxc foo 20211130202833.912 ERROR    conf - conf.c:lxc_setup:4317 - Failed to setup rootfs
lxc foo 20211130202833.912 ERROR    start - start.c:do_start:1275 - Failed to setup container "foo"

Not entirely sure why we're seeing things blow up as the directory
definitely exists (and contains a valid rootfs) but this was caused by
today's liblxc update.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/lxccontainer.c