<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#C0C0C0" text="#3366FF">
<div class="moz-cite-prefix"><font face="Bitter">On 10/03/2017 04:35
PM, Anthony Joseph Messina wrote:<br>
</font></div>
<blockquote type="cite"
cite="mid:1507054548.0IBMFQM6mr@linux-ws1.messinet.com">
<pre wrap=""><font face="Bitter">On Tuesday, October 3, 2017 3:01:25 AM CDT arnaud gaboury wrote:
</font></pre>
<blockquote type="cite">
<pre wrap=""><font face="Bitter">My host is Archlinux, nspawn container is Fedora 26. Kernel is 4.13.3
I can't fully upgrade my container as some files are owned by
nobody:nobody and can't change to root. An example is filesystems. When
upgrading, it returns error:
< error: unpacking of archive failed on file /proc: cpio: chown >
$ ls -a /proc:
/proc/filesystems -r--r--r-- 1 nobody nobody 0
Oct 3 09:53 filesystems
# chown root:root /proc/filesystems
chown: changing ownership of '/proc/filesystems': Operation not permitted
Same kind of error with a few other packages.
Can someone please help me to find a solution? Thank you
</font></pre>
</blockquote>
<pre wrap=""><font face="Bitter">
In my experience, certain packages need to be installed/upgraded from outside
the container to work around this. httpd is another one (if using user
namespacing) since it sets file attributes on /usr/sbin/httpd.</font></pre>
</blockquote>
<font face="Bitter">httpd is indeed one the few package I can't
upgrade.</font><br>
<blockquote type="cite"
cite="mid:1507054548.0IBMFQM6mr@linux-ws1.messinet.com">
<pre wrap=""><font face="Bitter">
On a Fedora host (and a Fedora container), I do something like
dnf --releasever=26 --nogpgcheck \
--installroot=/var/lib/machines/mymachine --disablerepo='*' \
--enablerepo=fedora --enablerepo=updates upgrade filesystem httpd
I'm think Arch will also have a command to install/update files in the
container from the outside.</font></pre>
</blockquote>
<br>
<font face="Bitter">I will investigate this direction.<br>
Thank you for your hints.<br>
</font>
<blockquote type="cite"
cite="mid:1507054548.0IBMFQM6mr@linux-ws1.messinet.com">
<pre wrap=""><font face="Bitter">
</font></pre>
<font face="Bitter"><br>
</font>
<fieldset class="mimeAttachmentHeader"></fieldset>
<font face="Bitter"><br>
</font>
<pre wrap=""><font face="Bitter">_______________________________________________
systemd-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:systemd-devel@lists.freedesktop.org">systemd-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/systemd-devel">https://lists.freedesktop.org/mailman/listinfo/systemd-devel</a>
</font></pre>
</blockquote>
</body>
</html>