Bug 89301

Summary: systemd-nspawn --ephemeral fails to delete the container's btrfs subvolume
Product: systemd Reporter: Andrew Walrond <andrew>
Component: generalAssignee: systemd-bugs
Status: RESOLVED FIXED QA Contact: systemd-bugs
Severity: minor    
Priority: medium CC: andrew
Version: unspecified   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Andrew Walrond 2015-02-24 15:17:57 UTC
I used systemd-nspawn -xbD to boot a minimal systemd based container.

When I shut down the container with 'systemctl poweroff', systemd-nspawn fails to delete the ephemeral btrfs snapshot because the container's systemd has created a btrfs subvolume on the container's /var/lib/machines directory.

Maybe containerised systemd shouldn't create this subvolume?

A minor irritation solved by manually deleting the two subvolumes, but I thought I'd report it.
Comment 1 Lennart Poettering 2015-04-14 13:27:18 UTC
This is fixed in git, where the btrfs subvolume removal is recursive.
Comment 2 Andrew Walrond 2015-04-14 13:46:36 UTC
Good man.

Recursive btrfs subvolume removal? I know to my cost that this is non-trivial so I'll be checking git before I try it ;)

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.