diff options
author | Nicolas Vigier <boklm@mageia.org> | 2013-04-14 13:46:12 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2013-04-14 13:46:12 +0000 |
commit | 1be510f9529cb082f802408b472a77d074b394c0 (patch) | |
tree | b175f9d5fcb107576dabc768e7bd04d4a3e491a0 /zarb-ml/mageia-dev/attachments/20121230/8de0fa69/attachment.html | |
parent | fa5098cf210b23ab4f419913e28af7b1b07dafb2 (diff) | |
download | archives-master.tar archives-master.tar.gz archives-master.tar.bz2 archives-master.tar.xz archives-master.zip |
Diffstat (limited to 'zarb-ml/mageia-dev/attachments/20121230/8de0fa69/attachment.html')
-rw-r--r-- | zarb-ml/mageia-dev/attachments/20121230/8de0fa69/attachment.html | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/attachments/20121230/8de0fa69/attachment.html b/zarb-ml/mageia-dev/attachments/20121230/8de0fa69/attachment.html new file mode 100644 index 000000000..1a6c56bed --- /dev/null +++ b/zarb-ml/mageia-dev/attachments/20121230/8de0fa69/attachment.html @@ -0,0 +1,37 @@ +<div class="gmail_quote">On 28 December 2012 00:17, Pascal Terjan <span dir="ltr"><<a href="mailto:pterjan@gmail.com" target="_blank">pterjan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> +On Thu, Dec 27, 2012 at 10:55 AM, Guillaume Rousse<br> +<<a href="mailto:guillomovitch@gmail.com">guillomovitch@gmail.com</a>> wrote:<br> +> Le 27/12/2012 11:29, Pascal Terjan a écrit :<br> +><br> +>>> It seems like the systemd way of starting would be:<br> +>>> systemctl start openssh.service<br> +>>><br> +>>> But, then produces an error:<br> +>>><br> +>>> [root@localhost /]# systemctl start openssh.service<br> +>>> Running in chroot, ignoring request.<br> +>>><br> +>>><br> +>>> So, Any thoughts on what is the recommended way, and I'll be happy to<br> +>>> update the wiki to reflect this.<br> +>><br> +>><br> +>> Last time I tried, I gave up after various attempts and now went back<br> +>> to the basics: running "sshd" and killing it to stop it.<br> +>> Maybe I'll fetch some old initscript.<br> +><br> +> I guess using a specific unit file, using builtin systemd chroot support,<br> +> should help. See <a href="http://0pointer.de/blog/projects/changing-roots" target="_blank">http://0pointer.de/blog/projects/changing-roots</a> for<br> +> details.<br> +<br> +Yes having an unit outside of the chroot with<br> +RootDirectoryStartOnly=yes would probably help (I had tried the "full<br> +system" chroot and couldn't get it to work and gave up after an hour)<br> +but this is annoying to not be able to start a daemon from inside the<br> +chroot which is what I usually want to do.<br> +</blockquote></div><br><br>Well, good to see I am not the only one that can't get the chroot to work anymore.<br>So, I suggest, for the minute, I edit the wiki to explain that the chroot does not work.<br>I am open to suggestions as to what it should recommend? maybe using a full<br> +virtual machine?<br><br>What I have found so far is, using the two attached files, in the following locations:<br>/lib/systemd/system/sshd-mageia3.service<br>/usr/local/bin/setup-cauldron-chroot.sh<br><br>setup fstab: echo 'none /mnt/chroot/cauldron/dev/pts devpts defaults 0 0' >> /etc/fstab<br> +<br>Then, the chroot sshd can be started, using:<br>systemctl enable sshd-mageia3.service<br>systemctl start sshd-mageia3.service<br><br>which will start a chroot, but.. it's not ideal.. It sees mount points from the host (/proc/mounts)<br> +and of course, processes.<br><br><br>The recommended approach according to systemd, appears to be systemd-nspawn.<br>This may be viable, when systemd-nspawn is updated beyond the version in Mageia 2.<br>It does not currently work, because dbus won't start, see bug: <br> +<a href="https://bugzilla.redhat.com/show_bug.cgi?id=795038">https://bugzilla.redhat.com/show_bug.cgi?id=795038</a>. The work around mentioned is<br>not supported in the version of systemd-nspawn that Mageia 2 uses. This looks like<br> +it would work for Mageia3.<br><br>Glen<br><br><br><br><br><br><br><br><br> |