[systemd-bugs] [Bug 88645] New: "systemd-nspawn --template [=?UTF-8?Q?=E2=80=A6?=]" doesn't check, whether the base FS is btrfs or not

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jan 20 16:10:08 PST 2015


https://bugs.freedesktop.org/show_bug.cgi?id=88645

            Bug ID: 88645
           Summary: "systemd-nspawn --template […]" doesn't check, whether
                    the base FS is btrfs or not
           Product: systemd
           Version: unspecified
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
          Assignee: systemd-bugs at lists.freedesktop.org
          Reporter: mail at eliasprobst.eu
        QA Contact: systemd-bugs at lists.freedesktop.org

Kernel: 3.18.2 with btrfs builtin
systemd git 72521ab

rootfs of "host": ext4

Running
systemd-nspawn -b -D /media/test-intra --template=/media/centos7-base

fails with:
Couldn't create snapshot /media/test-intra from /media/centos7-base:
Inappropriate ioctl for device

This looks to me like systemd-nspawn doesn't verify whether the FS providing -D
is btrfs or not and just blindly tries to create a btrfs snapshot on top of it.


IMHO this needs at least to be handled a bit more graceful - letting the user
know what's the problem.

Besides that, if there's no sane way to create a btrfs snapshot (e.g. using an
image file) on top of another filesystem, this should be made clear in the
systemd-nspawn manpage.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20150121/c4f155ac/attachment.html>


More information about the systemd-bugs mailing list