2014-08-01 2:01 GMT-06:00 Nilesh Govindrajan <m...@nileshgr.com>:
> On Fri, 2014-08-01 at 08:53 +0100, Neil Bothwick wrote:
>> On Fri, 01 Aug 2014 15:59:56 +1000, wraeth wrote:
>>
>> > systemd-nspawn is quite a useful utility for working in a chroot -
>> > almost a complete virtual machine without the overhead.
>> >
>> > I also came across a handy introduction to it [1] too, by none other
>> > than rich0 (one of our esteemed devs) - it's worth a read (particularly
>> > when you try using it without DEVPTS_MULTIPLE_INSTANCES set - that was
>> > fun!).
>> >
>> > [1]
>> > http://rich0gentoo.wordpress.com/2014/07/14/quick-systemd-nspawn-guide/
>>
>> I saw that a couple of weeks ago and thought "I'll try that when I get
>> time". The time needed turned out to be about 5 minutes, it's so much
>> easier than using a chroot.
>>
>>
>
> systemd-nspawn seems to be interesting. But will it work on my i5?
> Because I prefer to use -march=native. For using distcc I copied all the
> flags that gcc selects in march=native mode to make.conf.
>
>
I don't think what CFLAGS you are using matters for using
systemd-nspawn, but In my tests, It can be used for typical chroot and
installation of a stage3 with openrc, but if you want to use '-b' to
boot the container you need systemd on host and container.
Here's another guide[1] by a gentoo dev, but on CFLAGS, -march=native
and using distcc.
[1] http://blogs.gentoo.org/mgorny/2014/06/23/inlining-marchnative-for-distcc/