Bug 89301 - systemd-nspawn --ephemeral fails to delete the container's btrfs subvolume
Summary: systemd-nspawn --ephemeral fails to delete the container's btrfs subvolume
Status: RESOLVED FIXED
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium minor
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-24 15:17 UTC by Andrew Walrond
Modified: 2015-04-14 13:46 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

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.