<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 - sytemd-nspawn 217 fails with error code 1 if --bind option scecified"
href="https://bugs.freedesktop.org/show_bug.cgi?id=85759">85759</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>sytemd-nspawn 217 fails with error code 1 if --bind option scecified
</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>vovan@vovan.nl
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>Starting with systemd 217 systemd-nspawn fails with error code 1 if --bind
option specified. The version 216 works fine.
The command "systemd-nspawn --bind /mnt/portage -D /mnt/data/srv2 /bin/bash"
returns:
Press ^] three times within 1s to kill container.
Container srv2 failed with error code 1.
Without "--bind" the same command workd fine.
Below is the last lines from strace with systemd 217.
access("/mnt/data/srv2/root/bin/bash", F_OK) = 0
open("/dev/ptmx", O_RDWR|O_NOCTTY|O_NONBLOCK|O_CLOEXEC) = 3
statfs("/dev/pts", {f_type="DEVPTS_SUPER_MAGIC", f_bsize=4096, f_blocks=0,
f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, f_fsid={0, 0}, f_namelen=255,
f_frsize=4096}) = 0
ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS,
{B38400 opost isig icanon echo ...}) = 0
ioctl(3, TIOCGPTN, [10]) = 0
stat("/dev/pts/10", {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 10), ...}) = 0
writev(2, [{"Spawning container srv2 on /mnt/"..., 47}, {"\n", 1}], 2) = 48
writev(2, [{"Press ^] three times within 1s t"..., 49}, {"\n", 1}], 2) = 50
ioctl(3, TIOCSPTLCK, [0]) = 0
access("/dev/kdbus/control", F_OK) = -1 ENOENT (No such file or directory)
socketpair(PF_LOCAL, SOCK_DGRAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0, [4, 5]) = 0
rt_sigprocmask(SIG_BLOCK, [INT TERM CHLD WINCH], NULL, 8) = 0
eventfd2(0, O_NONBLOCK|O_CLOEXEC) = 6
eventfd2(0, O_NONBLOCK|O_CLOEXEC) = 7
pipe2([8, 9], O_NONBLOCK|O_CLOEXEC) = 0
rt_sigprocmask(SIG_UNBLOCK, [CHLD], NULL, 8) = 0
rt_sigaction(SIGCHLD, {0x7fa5dbec51c0, [], SA_RESTORER|SA_NOCLDSTOP,
0x7fa5db21ee30}, NULL, 8) = 0
clone(child_stack=0,
flags=CLONE_NEWNS|CLONE_NEWUTS|CLONE_NEWIPC|CLONE_NEWPID|SIGCHLD) = 2329
close(9) = 0
write(6, "\1\0\0\0\0\0\0\0", 8) = 8
poll([{fd=8, events=POLLHUP}, {fd=7, events=POLLIN}], 2, 4294967295) = 1
([{fd=8, revents=POLLHUP}])
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=2329, si_status=1,
si_utime=0, si_stime=0} ---
rt_sigreturn() = 1
kill(2329, SIGKILL) = 0
waitid(P_PID, 2329, {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=2329,
si_status=1, si_utime=0, si_stime=0}, WEXITED, NULL) = 0
writev(2, [{"Container srv2 failed with error"..., 40}, {"\n", 1}], 2) = 41
close(6) = 0
close(7) = 0
close(8) = 0
close(4) = 0
close(5) = 0
close(3) = 0
exit_group(1) = ?
+++ exited with 1 +++</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>