<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - "systemd-nspawn --template […]" doesn't check, whether the base FS is btrfs or not"
href="https://bugs.freedesktop.org/show_bug.cgi?id=88645">88645</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>"systemd-nspawn --template […]" doesn't check, whether the base FS is btrfs or not
</td>
</tr>
<tr>
<th>Product</th>
<td>systemd
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>general
</td>
</tr>
<tr>
<th>Assignee</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>mail@eliasprobst.eu
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>