7732f92bad5f24a4bd03bb357af46da56b0ac94d |
|
03-Feb-2016 |
Lennart Poettering <lennart@poettering.net> |
nspawn: optionally run a stub init process as PID 1
This adds a new switch --as-pid2, which allows running commands as PID 2, while a stub init process is run as PID 1.
This is useful in order to run arbitrary commands in a container, as PID1's semantics are different from all other
processes regarding reaping of unknown children or signal handling. |
5f932eb9af7a5e4723855bcd776c2acaa2a31932 |
|
03-Feb-2016 |
Lennart Poettering <lennart@poettering.net> |
nspawn: add new --chdir= switch
Fixes: #2192 |
cd72d2044ad28b475bf84a38ba6db45292467dd8 |
|
28-Jan-2016 |
Jan Engelhardt <jengelh@inai.de> |
doc: improved wording in some places
Avoid "mountpoint mounted" (word repetition),
"queriable" (no match in m-w.com and dict.cc). |
f6d6bad1461a8f545a80955fadd7ee0c10db15bb |
|
12-Nov-2015 |
Lennart Poettering <lennart@poettering.net> |
nspawn: add new --network-veth-extra= switch for defining additional veth links
The new switch operates like --network-veth, but may be specified
multiple times (to define multiple link pairs) and allows flexible
definition of the interface names.
This is an independent reimplementation of #1678, but defines different
semantics, keeping the behaviour completely independent of
--network-veth. It also comes will full hook-up for .nspawn files, and
the matching documentation. |
a8eaaee72a2f06e0fb64fb71de3b71ecba31dafb |
|
06-Nov-2015 |
Jan Engelhardt <jengelh@inai.de> |
doc: correct orthography, word forms and missing/extraneous words |
b938cb902c3b5bca807a94b277672c64d6767886 |
|
06-Nov-2015 |
Jan Engelhardt <jengelh@inai.de> |
doc: correct punctuation and improve typography in documentation |
09c76ef618de6d3a095164910ec3c96ec89e4cbc |
|
24-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
man: let's enclose * in shell examples in ''
Technically, it's safer that way, since dnf is supposed to parse the
"*", not the shell. It doesn't really matter too much in real life (as
the expression is too complex), but let's better be safe than sorry, and
make sure people won't file bugs about this... |
b8b9d8f5e509c991692159fd1776f5b33507bb8c |
|
22-Oct-2015 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
man: also add --enablerepo=updates to dnf invocation
Without the updates repo, we are installing packages from the time
that that version of Fedora was released. Normally, during the
lifetime of the release most packages are updated, so most of the
packages installed would be outdated, and the first update after
installation would update a massive set of packages. Avoid all this
by installing from the updates repo from the start. |
cf48ff5d2a067fdd98a90962ebc06e0e5ed09e55 |
|
22-Oct-2015 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
man: remove --nogpg from dnf install command line
Keys for previous and future Fedora distributions were added
for the fedora-repos package recently:
https://bugzilla.redhat.com/show_bug.cgi?id=1246701.
There is no need to skip signature checking.
Also, update to the latest and greatest and remove unnecessary quotes. |
7757cfbecb6743887e6a611bd167f1cee21419db |
|
22-Sep-2015 |
Lennart Poettering <lennart@poettering.net> |
man: drop reference to yum from man pages
Apparently, yum is obsolete, and dnf is the new yum. Mention only dnf
hence, and don't mention yum anymore. |
4f76ef0423a30ee672891056aeb5df2422947e1d |
|
07-Sep-2015 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
man: typo fixes |
f757855e81fc0bc116de372220096e532afb5cb8 |
|
06-Sep-2015 |
Lennart Poettering <lennart@poettering.net> |
nspawn: add new .nspawn files for container settings
.nspawn fiels are simple settings files that may accompany container
images and directories and contain settings otherwise passed on the
nspawn command line. This provides an efficient way to attach execution
data directly to containers. |
5e5bfa6e1c915e795dd99ab65275c4bf9af667ed |
|
29-Aug-2015 |
Eugene Yakubovich <eugene.yakubovich@coreos.com> |
nspawn: add (no)rbind option to --bind and --bind-ro
--bind and --bind-ro perform the bind mount
non-recursively. It is sometimes (often?) desirable
to do a recursive mount. This patch adds an optional
set of bind mount options in the form of:
--bind=src-path:dst-path:options
options are comma separated and currently only
"rbind" and "norbind" are allowed.
Default value is "rbind". |
2eadf91ca15a982adf71b86e6ee035ac368e74bc |
|
07-Aug-2015 |
Richard Maw <richard.maw@codethink.co.uk> |
man: Document \: escapes in nspawn's --overlay option |
8ef24e7a4f4b4d464b66fa7d3f0acaa88800d6cb |
|
07-Aug-2015 |
Richard Maw <richard.maw@codethink.co.uk> |
man: Document \: escapes in nspawn's --bind option |
ffcd3e89d55c870c94aa15ee94dab3e029a586cf |
|
07-Aug-2015 |
Richard Maw <richard.maw@codethink.co.uk> |
man: Document \: escapes in nspawn's --tmpfs option |
32b64cce23cd7fb35900a0613a1162e639f0c59c |
|
05-Aug-2015 |
Richard Maw <richard.maw@codethink.co.uk> |
man: point nspawn --machine to machinectl search-path
The --machine option used to describe searching for machines in
/var/lib/machines, which is not the whole story, so let's link to where
it's described in more detail. |
12b42c76672a66c2d4ea7212c14f8f1b5a62b78d |
|
18-Jun-2015 |
Tom Gundersen <teg@jklm.no> |
man: revert dynamic paths for split-usr setups
This did not really work out as we had hoped. Trying to do this upstream
introduced several problems that probably makes it better suited as a
downstream patch after all. At any rate, it is not releaseable in the
current state, so we at least need to revert this before the release.
* by adjusting the path to binaries, but not do the same thing to the
search path we end up with inconsistent man-pages. Adjusting the search
path too would be quite messy, and it is not at all obvious that this is
worth the effort, but at any rate it would have to be done before we
could ship this.
* this means that distributed man-pages does not make sense as they depend
on config options, and for better or worse we are still distributing
man pages, so that is something that definitely needs sorting out before
we could ship with this patch.
* we have long held that split-usr is only minimally supported in order
to boot, and something we hope will eventually go away. So before we start
adding even more magic/effort in order to make this work nicely, we should
probably question if it makes sense at all. |
681eb9cf2b831293a4f3d4c48a748d2e4a25d69e |
|
28-May-2015 |
Filipe Brandenburger <filbranden@google.com> |
man: generate configured paths in manpages
In particular, use /lib/systemd instead of /usr/lib/systemd in distributions
like Debian which still have not adopted a /usr merge setup.
Use XML entities from man/custom-entities.ent to replace configured paths while
doing XSLT processing of the original XML files. There was precedent of some
files (such as systemd.generator.xml) which were already using this approach.
This addresses most of the (manual) fixes from this patch:
http://anonscm.debian.org/cgit/pkg-systemd/systemd.git/tree/debian/patches/Fix-paths-in-man-pages.patch?h=experimental-220
The idea of using generic XML entities was presented here:
http://lists.freedesktop.org/archives/systemd-devel/2015-May/032240.html
This patch solves almost all the issues, with the exception of:
- Path to /bin/mount and /bin/umount.
- Generic statements about preference of /lib over /etc.
These will be handled separately by follow up patches.
Tested:
- With default configure settings, ran "make install" to two separate
directories and compared the output to confirm they matched exactly.
- Used a set of configure flags including $CONFFLAGS from Debian:
http://anonscm.debian.org/cgit/pkg-systemd/systemd.git/tree/debian/rules
Installed the tree and confirmed the paths use /lib/systemd instead of
/usr/lib/systemd and that no other unexpected differences exist.
- Confirmed that `make distcheck` still passes. |
7c918141edad0063a82411e0f9637e72a8aba223 |
|
23-May-2015 |
Jonathan Boulle <jonathan.boulle@coreos.com> |
fix typos in systemd-nspawn man page |
03cfe0d51499e86b1573d121337594719d9f2012 |
|
21-May-2015 |
Lennart Poettering <lennart@poettering.net> |
nspawn: finish user namespace support |
5a8af538aee99741ab492506b4284fdd26b597d1 |
|
13-May-2015 |
Lennart Poettering <lennart@poettering.net> |
nspawn: rework custom mount point order, and add support for overlayfs
Previously all bind mount mounts were applied in the order specified,
followed by all tmpfs mounts in the order specified. This is
problematic, if bind mounts shall be placed within tmpfs mounts.
This patch hence reworks the custom mount point logic, and alwas applies
them in strict prefix-first order. This means the order of mounts
specified on the command line becomes irrelevant, the right operation
will always be executed.
While we are at it this commit also adds native support for overlayfs
mounts, as supported by recent kernels. |
ff9b60f38bf68eba4a47cabff14547d92e083214 |
|
11-May-2015 |
Torstein Husebø <torstein@huseboe.net> |
treewide: Correct typos and spell plural of bus consistent |
3fe22bb4b6b5faf27683ad2e231b5a69b6e63a9e |
|
06-May-2015 |
Lennart Poettering <lennart@poettering.net> |
man: document that nspawn -x, --template= and machinectl clone leave hostname and machine id unmodified |
7de7ee62c5628a3c9e116f14aca63a35d06f5331 |
|
06-May-2015 |
Lennart Poettering <lennart@poettering.net> |
man: nspawn is used in production these days, admit that
Previously, the man page suggested to only use nspawn for testing,
building, and debugging things. However, it is nowadays used in
production and used as building block for rocket, hence let's just admit
that it's pretty much production ready. |
64b282ef715bcc6f7896cc49a4a36db12ca35bbc |
|
27-Apr-2015 |
Lennart Poettering <lennart@poettering.net> |
man: document that nspawn's --bind= switch may be used multiple times |
3ba3a79df4ae094d1008c04a9af8d1ff970124c4 |
|
14-Mar-2015 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
man: fix a bunch of links
All hail linkchecker! |
c6c8f6e218995852350e5e35c080dec788c42c3f |
|
25-Feb-2015 |
Lennart Poettering <lennart@poettering.net> |
nspawn: make kill signal to use for PID 1 configurable |
f36933fef605a7dccce8e3aecccff5152e522fa6 |
|
18-Feb-2015 |
Lennart Poettering <lennart@poettering.net> |
nspawn: add support for --property= to set scope properties
This is similar to systemd-run's --property= setting. |
798d3a524ea57aaf40cb53858aaa45ec702f012d |
|
04-Feb-2015 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
Reindent man pages to 2ch |
74a6d87d0cd1f2213869e168b6ca55eded6f4ae8 |
|
01-Feb-2015 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
man: switch yum to dnf for Fedora
The dnf name is here to stay, we might as well adjust. |
e0ea94c1e2ab3930c85c6057189a2a829a13a800 |
|
22-Jan-2015 |
Lennart Poettering <lennart@poettering.net> |
man: document new download magic |
4bbfe7ad22b0666e82719e39e40be1c6cbb5cc91 |
|
20-Jan-2015 |
Tom Gundersen <teg@jklm.no> |
nspawn: add ipvlan support |
5f129649b97bdff2bffefcd9c773157843ede6f6 |
|
15-Jan-2015 |
Lennart Poettering <lennart@poettering.net> |
nspawn,machined: change default container image location from /var/lib/container to /var/lib/machines
Given that this is also the place to store raw disk images which are
very much bootable with qemu/kvm it sounds like a misnomer to call the
directory "container". Hence, let's change this sooner rather than
later, and use the generic name, in particular since we otherwise try to
use the generic "machine" preferably over the more specific "container"
or "vm". |
0dfaa0060711a8332c8eb9f1e10f48fe182d3650 |
|
13-Jan-2015 |
Lennart Poettering <lennart@poettering.net> |
nspawn: add "-n" shortcut for "--network-veth"
Now that networkd's IP masquerading support means that running
containers with "--network-veth" will provide network access out of the
box for the container, let's add a shortcut "-n" for it, to make it
easily accessible. |
6d0b55c272ea31d025e8b3c311cea8cda0bfefd7 |
|
13-Jan-2015 |
Lennart Poettering <lennart@poettering.net> |
nspawn: add new option "--port=" for exposing container ports on the local host
This exposes an IP port on the container as local port using DNAT. |
f131770b1465fbf423881f16ba85523a05f846fe |
|
31-Dec-2014 |
Veres Lajos <vlajos@gmail.com> |
tree-wide: spelling fixes
https://github.com/vlajos/misspell_fixer
https://github.com/torstehu/systemd/commit/b6fdeb618cf2f3ce1645b3315f15f482710c7ffa
Thanks to Torstein Husebo <torstein@huseboe.net>. |
667993e88eb7519c6674fe9a9e985619817465e0 |
|
12-Dec-2014 |
Lennart Poettering <lennart@poettering.net> |
man: fedora 21 has been release, suggest 21 as fedora version in example yum command line |
b9ba4dabbab8a58a044ec42655e11e65bd3ecc47 |
|
12-Dec-2014 |
Lennart Poettering <lennart@poettering.net> |
nspawn: when booting in ephemeral mode, append random token to machine name
Also, when booting up an ephemeral container of / use the system
hostname as default machine name.
This way specifiyng -M is unnecessary when booting up an ephemeral
container, while allowing any number of ephemeral containers to run from
the same tree. |
ec16945ebfe64d5cd5403ae1a1b16bc05a779a16 |
|
12-Dec-2014 |
Lennart Poettering <lennart@poettering.net> |
nspawn: beef up nspawn with some btrfs magic
This adds --template= to duplicate an OS tree as btrfs snpashot and run
it
This also adds --ephemeral or -x to create a snapshot of an OS tree and
boot that, removing it after exit. |
574edc90066c3faeadcf4666928ed9b0ac409c75 |
|
21-Nov-2014 |
Martin Pitt <martin.pitt@ubuntu.com> |
nspawn: Add try-{host,guest} journal link modes
--link-journal={host,guest} fail if the host does not have persistent
journalling enabled and /var/log/journal/ does not exist. Even worse, as there
is no stdout/err any more, there is no error message to point that out.
Introduce two new modes "try-host" and "try-guest" which don't fail in this
case, and instead just silently skip the guest journal setup.
Change -j to mean "try-guest" instead of "guest", and fix the wrong --help
output for it (it said "host" before).
Change systemd-nspawn@.service.in to use "try-guest" so that this unit works
with both persistent and non-persistent journals on the host without failing.
https://bugs.debian.org/770275 |
c45827d6e70baf6b683d7cafb13a9a6f02852731 |
|
21-Oct-2014 |
Ronny Chevalier <chevalier.ronny@gmail.com> |
man: fix project reference for archlinux |
0b3b83e59b637660524e90a07f9ef691856b19bf |
|
21-Oct-2014 |
Lennart Poettering <lennart@poettering.net> |
man: move one more nspawn example into a proper <example> section |
1db8c66f2e500272cb5582f9087b8e2a123aee10 |
|
21-Oct-2014 |
Ronny Chevalier <chevalier.ronny@gmail.com> |
man: use <example> instead of multiple <refsect1> for examples |
06b643e7f5a3b79005dd57497897ab7255fe3659 |
|
30-Aug-2014 |
Ruben Kerkhof <ruben@rubenkerkhof.com> |
Fix a few more typos |
5aded369782f28255bc6b494ca905d7acaea7a56 |
|
08-Jul-2014 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
man: add a mapping for external manpages
It is annoying when we have dead links on fd.o.
Add project='man-pages|die-net|archlinux' to <citerefentry>-ies.
In generated html, add external links to
http://man7.org/linux/man-pages/man, http://linux.die.net/man/,
https://www.archlinux.org/.
By default, pages in sections 2 and 4 go to man7, since Michael
Kerrisk is the autorative source on kernel related stuff.
The rest of links goes to linux.die.net, because they have the
manpages.
Except for the pacman stuff, since it seems to be only available from
archlinux.org.
Poor gummiboot gets no link, because gummitboot(8) ain't to be found
on the net. According to common wisdom, that would mean that it does
not exist. But I have seen Kay using it, so I know it does, and
deserves to be found. Can somebody be nice and put it up somewhere? |
108e8cd11e88bd4795a62bf335921d438592601c |
|
04-Jul-2014 |
Lennart Poettering <lennart@poettering.net> |
man: document nspawn's new --volatile switch |
5ae4d543cb9b45ad6c6b82b78da1d6abc2291cdb |
|
13-Jun-2014 |
Lennart Poettering <lennart@poettering.net> |
os-release: define /usr/lib/os-release as fallback for /etc/os-release
The file should have been in /usr/lib/ in the first place, since it
describes the OS container in /usr (and not the configuration in /etc),
hence, let's support os-release files in /usr/lib as fallback if no
version in /etc exists, following the usual override logic.
A prior commit already enabled tmpfiles to create /etc/os-release as a
symlink to /usr/lib/os-release should it be missing, thus providing nice
compatibility with applications only checking in /etc.
While it's probably a good idea if all apps check both locations via a
fallback logic, it is only necessary in the early boot process, as long
as the /etc/os-release symlink has not been restored, in case we boot
with an empty /etc. |
06c17c39a8345deef1ecff4dd5ef262f968c9be2 |
|
11-Jun-2014 |
Lennart Poettering <lennart@poettering.net> |
nspawn: add new --tmpfs= option to mount a tmpfs on specific directories, such as /var |
b8bde11658366290521e3d03316378b482600323 |
|
08-May-2014 |
Jan Engelhardt <jengelh@inai.de> |
doc: comma placement corrections and word order
Set commas where there should be some.
Some improvements to word order. |
dca348bcbb462305864526c587495a14a76bfcde |
|
08-May-2014 |
Jan Engelhardt <jengelh@inai.de> |
doc: corrections to words and forms
This patch exchange words which are inappropriate for a situation,
deletes duplicated words, and adds particles where needed. |
70a44afee385c4afadaab9a002b3f9dd44aedf4a |
|
06-May-2014 |
Jan Engelhardt <jengelh@inai.de> |
doc: typographical fine tuning |
1810e3dc6218afd69c469cfb816254730a0ef4e3 |
|
11-Mar-2014 |
Lennart Poettering <lennart@poettering.net> |
man: improve nspawn's --user= documentation |
1b9e5b126359a2a2ec37de1f94f046093abc74b8 |
|
10-Mar-2014 |
Lennart Poettering <lennart@poettering.net> |
nspawn: add --image= switch to boot GPT disk images that follow the Discoverable Partitions Specification |
c74e630d0ce4b1ace116e8211f3b6eb472efa7e3 |
|
25-Feb-2014 |
Lennart Poettering <lennart@poettering.net> |
nspawn: add new switch --network-macvlan= to add a macvlan device to the container |
dfdebb1b925332352966804303b2516a6506a429 |
|
21-Feb-2014 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
man: xinclude --help/--version/--no-pager |
08af0da26935e827b58809ff1946e2f7d496e666 |
|
21-Feb-2014 |
Lennart Poettering <lennart@poettering.net> |
nspawn: when adding a veth interface to a bridge, use the "vb-" rather than "ve-" interface name prefix
This way we can recognize the interfaces later on to apply different
host-side configuration to them. |
6afc95b73605833e6e966af1c466b5c08feb953f |
|
18-Feb-2014 |
Lennart Poettering <lennart@poettering.net> |
nspawn: add new --personality= switch to make it easier to run 32bit containers on a 64bit host |
66f756d437658cc464bfb5647c97efd0cf77f933 |
|
18-Feb-2014 |
Jan Engelhardt <jengelh@inai.de> |
doc: resolve missing/extraneous words or inappropriate forms
Issues fixed:
* missing words required by grammar
* duplicated or extraneous words
* inappropriate forms (e.g. singular/plural), and declinations
* orthographic misspellings |
73e231abde39f22097df50542c745e01de879836 |
|
18-Feb-2014 |
Jan Engelhardt <jengelh@inai.de> |
doc: update punctuation
Resolve spotted issues related to missing or extraneous commas, dashes. |
ab046dde6f355f4a8b07ff6120a7ef51f5d49fc9 |
|
16-Feb-2014 |
Tom Gundersen <teg@jklm.no> |
nspawn: add new --network-bridge= switch
This adds the host side of the veth link to the given bridge.
Also refactor the creation of the veth interfaces a bit to set it up
from the host rather than the container. This simplifies the addition
to the bridge, but otherwise the behavior is unchanged. |
69c79d3c32ff4d6a572ee1cdec248b27df1fb6ca |
|
13-Feb-2014 |
Lennart Poettering <lennart@poettering.net> |
nspawn: add new --network-veth switch to add a virtual ethernet link to the host |
a42c8b54b1619078c02f5e439bd2564c6d0f901f |
|
13-Feb-2014 |
Lennart Poettering <lennart@poettering.net> |
nspawn: --private-network should imply CAP_NET_ADMIN |
aa28aefe61c5406c5cb631f3e82457b6d1bcc967 |
|
13-Feb-2014 |
Lennart Poettering <lennart@poettering.net> |
nspawn: add new --network-interface= switch to move an existing interface into the container |
39ed67d14694983dabd6641c02216aa440eed767 |
|
13-Feb-2014 |
Lennart Poettering <lennart@poettering.net> |
nspawn: introduce --capability=all for retaining all capabilities |
db999e0f923ca6c2c1b919d0f1c916472f209e62 |
|
12-Feb-2014 |
Lennart Poettering <lennart@poettering.net> |
nspawn: newer kernels (>= 3.14) allow resetting the audit loginuid, make use of this |
89f7c8465cd1ab37347dd0c15920bce31e8225df |
|
11-Feb-2014 |
Lennart Poettering <lennart@poettering.net> |
machined: optionally, allow registration of pre-existing units (scopes
or services) as machine with machined |
eb91eb187b7491e05fb95215b77cb62061f41d08 |
|
11-Feb-2014 |
Lennart Poettering <lennart@poettering.net> |
nspawn: add --register=yes|no switch to optionally disable registration of the container with machined |
8a96d94e4c33173d1426b7e0a6325405804ba224 |
|
10-Feb-2014 |
Lennart Poettering <lennart@poettering.net> |
nspawn: add new --share-system switch to run a container without PID/UTS/IPC namespacing |
82adf6af7c72b852449346835f33184a841b4796 |
|
10-Feb-2014 |
Lennart Poettering <lennart@poettering.net> |
nspawn,man: use a common vocabulary when referring to selinux security contexts
Let's always call the security labels the same way:
SMACK: "Smack Label"
SELINUX: "SELinux Security Context"
And the low-level encapsulation is called "seclabel". Now let's hope we
stick to this vocabulary in future, too, and don't mix "label"s and
"security contexts" and so on wildly. |
ba978d7b325998709fb19d368d290fa1dff37699 |
|
07-Feb-2014 |
Lennart Poettering <lennart@poettering.net> |
nspawn: rename --file-label to --apifs-label since it's really just about the API file systems, nothing else |
284c0b917697fb0271381f331ffee28403278e72 |
|
06-Feb-2014 |
Lennart Poettering <lennart@poettering.net> |
nspawn: add --quiet switch for turning off any output noise |
d002827b03d78e31503a6b706ad4b4049ebf9a07 |
|
04-Feb-2014 |
Lennart Poettering <lennart@poettering.net> |
nspawn: various fixes in selinux hookup
- As suggested, prefix argument variables with "arg_" how we do this
usually.
- As suggested, don't involve memory allocations when storing command
line arguments.
- Break --help text at 80 chars
- man: explain that this is about SELinux
- don't do unnecessary memory allocations when putting together mount
option string |
a8828ed93878b4b4866d40ebfb660e54995ff72e |
|
04-Feb-2014 |
Dan Walsh <dwalsh@redhat.com> |
Add SELinux support to systemd-nspawn
This patch adds to new options:
-Z PROCESS_LABEL
This specifies the process label to run on processes run within the container.
-L FILE_LABEL
The file label to assign to memory file systems created within the container.
For example if you wanted to wrap an container with SELinux sandbox labels, you could execute a command line the following
chcon system_u:object_r:svirt_sandbox_file_t:s0:c0,c1 -R /srv/container
systemd-nspawn -L system_u:object_r:svirt_sandbox_file_t:s0:c0,c1 -Z system_u:system_r:svirt_lxc_net_t:s0:c0,c1 -D /srv/container /bin/sh |
f4889f656b477887b02caa5e9d27387309c75a87 |
|
13-Dec-2013 |
Lennart Poettering <lennart@poettering.net> |
nspawn: add new --setenv= switch to set an environment variable for the container to spawn |
f9f4dd51bdb016bab84f7fb3cf47a2ad102b4c76 |
|
13-Dec-2013 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
man: add another nspawn example
Taken from https://bugs.freedesktop.org/show_bug.cgi?id=68369. |
420c7379fb96a188459690a634d0fede55721183 |
|
20-Nov-2013 |
Lennart Poettering <lennart@poettering.net> |
nspawn: add new --drop-capability= switch |
9cb74bcb23dde8488459ca233bf9caee642b8402 |
|
10-Nov-2013 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
man,units: fix installation of systemd-nspawn@.service and add example |
04d39279245834494baccfdb9349db8bf80abd13 |
|
31-Oct-2013 |
Lennart Poettering <lennart@poettering.net> |
machinectl: add new command to spawn a getty inside a container |
79640424059328268b9fb6c5fa8eb777b27a177e |
|
12-Sep-2013 |
Jan Engelhardt <jengelh@inai.de> |
man: wording and grammar updates
This is a recurring submission and includes corrections to various
issue spotted. I guess I can just skip over reporting ubiquitous
comma placement fixes…
Highligts in this particular commit:
- the "unsigned" type qualifier is completed to form a full type
"unsigned int"
- alphabetic -> lexicographic (that way we automatically define how
numbers get sorted) |
6b4991cfde6c0a0b62e836ca75ae362779c474d4 |
|
10-Sep-2013 |
Jan Engelhardt <jengelh@inai.de> |
man: wording and grammar updates
This includes regularly-submitted corrections to comma setting and
orthographical mishaps that appeared in man/ in recent commits.
In this particular commit:
- the usual comma fixes
- expand contractions (this is prose) |
04ac799283f517672a5424e7c5bf066cfa4ca020 |
|
19-Aug-2013 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
man: fix spacing issue in systemd-nspawn(1)
Same as 1e158d273. |
431c72dc3d482732a01d3ab929aa9b2c36422d46 |
|
19-Jul-2013 |
Lennart Poettering <lennart@poettering.net> |
man: update systemd-nspawn regarding new --slice= logic |
e9dd9f9547350c7dc0473583b5c2228dc8f0ab76 |
|
03-Jul-2013 |
Jason St. John <jstjohn@purdue.edu> |
man: improve grammar and word formatting in numerous man pages
Use proper grammar, word usage, adjective hyphenation, commas,
capitalization, spelling, etc.
To improve readability, some run-on sentences or sentence fragments were
revised.
[zj: remove the space from 'file name', 'host name', and 'time zone'.] |
fb69ed55e5f8e82145440ba15075e8db807bf7fa |
|
22-Jun-2013 |
Michael Biebl <biebl@debian.org> |
man: Fix small typo |
77b6e19458f37cfde127ec6aa9494c0ac45ad890 |
|
10-May-2013 |
Lennart Poettering <lennart@poettering.net> |
audit: since audit is apparently never going to be fixed for containers tell the user what's going on
Let's try to be helpful to the user and give him a hint what he can do
to make nspawn work with normal OS containers.
https://bugzilla.redhat.com/show_bug.cgi?id=893751 |
2aba426ffb345408a461ed0ff6fba46e63ae625b |
|
09-May-2013 |
Lennart Poettering <lennart@poettering.net> |
man: document that the kernel's audit subsystem is currently incompatible with nspawn containers |
f8964235e69f58225dec378437b1789744cd22a9 |
|
06-May-2013 |
Lennart Poettering <lennart@poettering.net> |
nspawn: explain that we look for /etc/os-release in the container directory
https://bugs.freedesktop.org/show_bug.cgi?id=64014 |
845c53246f73a505f12bb7f685a530045fa60a40 |
|
03-May-2013 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
man: add various filenames to the index
Everything which is an absolute filename marked with <filename></filename>
lands in the index, unless noindex= attribute is present. Should make
it easier for people to find stuff when they are looking at a file on
disk.
Various formatting errors in manpages are fixed, kernel-install(1) is
restored to formatting sanity. |
f03dc7c0c58c5cddb62dbd809c1f4ccad3c6e2b6 |
|
17-Apr-2013 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
man: fix syntax in nsenter example
Apparently nsenter doesn't handle options concatenated together.
I'm pretty sure it worked at one point, but it seems like magic,
since each of those options can take arguments. |
7027ff61a34a12487712b382a061c654acc3a679 |
|
16-Apr-2013 |
Lennart Poettering <lennart@poettering.net> |
nspawn: introduce the new /machine/ tree in the cgroup tree and move containers there
Containers will now carry a label (normally derived from the root
directory name, but configurable by the user), and the container's root
cgroup is /machine/<label>. This label is called "machine name", and can
cover both containers and VMs (as soon as libvirt also makes use of
/machine/).
libsystemd-login can be used to query the machine name from a process.
This patch also includes numerous clean-ups for the cgroup code. |
870c4365cf3d407270788abe14d216a636ecf6c3 |
|
28-Feb-2013 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
man: document systemd-nspawn behaviour with -b
Cf. cb96a2c69 and 1ddf879a. |
17fe052346f1d905b5ce0f12123b5ce24e992c6b |
|
25-Feb-2013 |
Lennart Poettering <lennart@poettering.net> |
nspawn: add --bind= and --bind-ro= to bind mount host paths into the container |
1ddf879acf388a4625150c3a97b76458f6d2a070 |
|
25-Feb-2013 |
Michal Schmidt <mschmidt@redhat.com> |
Revert "nspawn: catch config mistake of specifying -b and args"
This reverts commit cb96a2c69a312fb089fef4501650f4fc40a1420b.
It is not a mistake to pass args when -b is specified. They will simply
be passed on to the container's init.
The manpage needs fixing, that's true. |
cb96a2c69a312fb089fef4501650f4fc40a1420b |
|
24-Feb-2013 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
nspawn: catch config mistake of specifying -b and args |
1fd961211df69ce672252d543bf4777738647048 |
|
14-Feb-2013 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
nspawn: print PID and show how to enter the namespace
systemd-nspawn will now print the PID of the child.
An example showing how to enter the container is added
to the man page.
Support for nsenter without an explicit command was
added in https://github.com/karelzak/util-linux/commit/5758069
(post v2.22.2). So this example requires both a new kernel
and the latest util-linux. |
e670b166a08b7c1031a9e7d7675fa9a29c3e19c9 |
|
14-Feb-2013 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
man: use <replaceable> in various places |
a7f5bb1eafadbb08c8528baae588bbe773a37e79 |
|
13-Feb-2013 |
William Giokas <1007380@gmail.com> |
man: Make options consistent
Option listings seemed to be pretty much random, some were short opt,
long opt, others were long opt, short opt. This just makes every option
with a short and long opt that I could find in the order short opt, long
opt, for formatting's sake. |
4d62fb4298a5904a53f484636c91540d08f68765 |
|
29-Jan-2013 |
Lennart Poettering <lennart@poettering.net> |
man: mention pacman at the top of the nspawn man page, too |
68562936c243a2e2190a7232c4805ffd094e9b3b |
|
28-Jan-2013 |
William Giokas <1007380@gmail.com> |
man: add Arch Linux entry to systemd-nspawn(5)
Archlinux has a similar tool to debbotstrap in the arch-install-scripts
package that will install to a specified directory. This is generally
used for installation, so the -d flag must be passed to tell it to
install to a non-mountpoint directory. |
2b3987a863975f5a1fa1754725e3d07a5d4f6478 |
|
18-Jan-2013 |
Lennart Poettering <lennart@poettering.net> |
man: update suggested yum command line in nspawn(1) |
88d04e31ce0837ebf937ab46c3c39a0d93ab4c7c |
|
18-Jan-2013 |
Lennart Poettering <lennart@poettering.net> |
nspawn: add audit caps to default set to keep
Due to the brokeness of much of the userspace audit code we cannot
really start too many systems without the audit caps set. To make nspawn
easier to use just add the audit caps by default.
To boot up containers successfully the kernel's auditing needs to be
turned off still (use "audit=0" on the kernel command line), but at
least no manual caps have to be passed anymore.
In the long run auditing will be fixed for containers and ve virtualized
properly at which time it should be safe to enable these caps anyway. |
acbeb42770e1e99955ebc4464a0439cf741b3aeb |
|
11-Jan-2013 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
nspawn: add --version |
bb31a4ac1997c189a344caf554f34c6aabc71aa7 |
|
26-Oct-2012 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
man: typo fixes
https://bugs.freedesktop.org/show_bug.cgi?id=55890
Fixed typos, serial comma, and removed "either" as there were more
than two options. Also did an extra rename of "system-shutdown"
to "systemd-shutdown" that was forgotten in commit
8bd3b8620c80d0f2383f2fb04315411fc8077ca1 |
27407a01c6c115ed09ad938ab95dcb56ab963ba9 |
|
02-Oct-2012 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
nspawn: use automatic cleanup and provide debug info
The documentation for --link-journal is also reworded. |
b2e6df73aa508cc09b1b536a2fb9f90f152b89fa |
|
02-Oct-2012 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
trivial: fix typo |
0cd1fd4369685b10953ada832a0b505f5732667d |
|
14-Sep-2012 |
Pierre Schmitz <pierre@archlinux.de> |
nspawn: Fix minor typo in man page |
d87be9b0af81a6e07d4fb3028e45c4409100dc26 |
|
06-Sep-2012 |
Lennart Poettering <lennart@poettering.net> |
nspawn: handle poweroff/reboot nicely in containers |
57fb9fb56db0584581ce33ee842dcbf5f1136856 |
|
19-Jul-2012 |
Lennart Poettering <lennart@poettering.net> |
nspawn: introduce new --link-journal= switch to link container journals into host |
9980033377c105d2cd6539c9d73ee61d4c2263b0 |
|
28-Jun-2012 |
Lennart Poettering <lennart@poettering.net> |
man: add various links from man pages to appropriate wiki pages |
5076f0ccfd36b67512d44fe355b80305ced7dcba |
|
28-Jun-2012 |
Lennart Poettering <lennart@poettering.net> |
nspawn: introduce new --capabilities= flag and make use of it in the nspawn test case |
bc2f673ec24b59948fcfc35b3077fda0314e69d8 |
|
25-Apr-2012 |
Lennart Poettering <lennart@poettering.net> |
nspawn: add --read-only switch |
25f5971b5e0b3ab5b91a7d0359cd7f5a5094c1d0 |
|
24-Apr-2012 |
Lennart Poettering <lennart@poettering.net> |
man: rework nspawn man page to suggest yum --installroot instead of mock |
144f0fc0c8a5e2f6b72179e2b5fb992474da24ad |
|
22-Apr-2012 |
Lennart Poettering <lennart@poettering.net> |
nspawn: add --uuid= switch to allow setting the machine id for the container |
0f0dbc46ccf5aaaf3131446d0a4d78bc97a37295 |
|
22-Apr-2012 |
Lennart Poettering <lennart@poettering.net> |
nspawn: add -b switch to automatically look for an init binary |
40c32a4ad488256e934ce9ecc05ebfac04851711 |
|
12-Apr-2012 |
Léo Gillot-Lamure <leo.gillot@navaati.net> |
One can specify in which cgroup hierarchies a systemd-nspawn container will appear |
5430f7f2bc7330f3088b894166bf3524a067e3d8 |
|
12-Apr-2012 |
Lennart Poettering <lennart@poettering.net> |
relicense to LGPLv2.1 (with exceptions)
We finally got the OK from all contributors with non-trivial commits to
relicense systemd from GPL2+ to LGPL2.1+.
Some udev bits continue to be GPL2+ for now, but we are looking into
relicensing them too, to allow free copy/paste of all code within
systemd.
The bits that used to be MIT continue to be MIT.
The big benefit of the relicensing is that closed source code may now
link against libsystemd-login.so and friends. |
e0d25329b23a43332ea340f9907721873a316f4e |
|
08-Feb-2012 |
Kay Sievers <kay.sievers@vrfy.org> |
move /usr/bin/systemd to /usr/lib/systemd/systemd |
ab1f063390f55e14a8de87f21c4fad199eb908a6 |
|
20-Aug-2011 |
Lennart Poettering <lennart@poettering.net> |
exec: optionally apply cgroup attributes to the cgroups we create |
ff01d048b4c1455241c894cf7982662c9d28fd34 |
|
02-Aug-2011 |
Lennart Poettering <lennart@poettering.net> |
exec: introduce PrivateNetwork= process option to turn off network access to specific services |
4f755fc6ab8b75f89ed84c93cd5c3fac2a448b16 |
|
02-Aug-2011 |
Lennart Poettering <lennart@poettering.net> |
man: nspawn fixes |
a41fe3a29372f8e6c4e7733bf85940a023811301 |
|
02-Aug-2011 |
Lennart Poettering <lennart@poettering.net> |
nspawn: add new --no-net switch to turn off networking in the container |
687d0825a4636b1841dc0c01fbcbf3160dddab74 |
|
01-Jul-2011 |
Michal Vyskocil <mvyskocil@suse.cz> |
nspawn: spawn shell under specified --user
Add -u/--user option, which changes the effective and real user and
group id to the new value. The user must exists in the chroot, otherwise
it will fail. Both username and user id are accepted. The user home is
created as well.
It also setup HOME, USER, LOGNAME and SHELL variables . |
9f7dad774ebfad23269800b7096eaad087481deb |
|
20-Jun-2011 |
Ville Skyttä <ville.skytta@iki.fi> |
man: Documentation spelling fixes |
2b583ce6576d4a074ce6f1570b3e60b65c64ae7d |
|
28-Mar-2011 |
Kay Sievers <kay.sievers@vrfy.org> |
use /run instead of /dev/.run
Instead of the /dev/.run trick we have currently implemented, we decided
to move the early-boot runtime dir to /run.
An existing /var/run directory is bind-mounted to /run. If /var/run is
already a symlink, no action is taken.
An existing /var/lock directory is bind-mounted to /run/lock.
If /var/lock is already a symlink, no action is taken.
To implement the directory vs. symlink logic, we have a:
ConditionPathIsDirectory=
now, which is used in the mount units.
Skipped mount unit in case of symlink:
$ systemctl status var-run.mount
var-run.mount - Runtime Directory
Loaded: loaded (/lib/systemd/system/var-run.mount)
Active: inactive (dead)
start condition failed at Fri, 25 Mar 2011 04:51:41 +0100; 6min ago
Where: /var/run
What: /run
CGroup: name=systemd:/system/var-run.mount
The systemd rpm needs to make sure to add something like:
%pre
mkdir -p -m0755 /run >/dev/null 2>&1 || :
or it needs to be added to filesystem.rpm.
Udev -git already uses /run if that exists, and is writable at bootup.
Otherwise it falls back to the current /dev/.udev.
Dracut and plymouth need to be adopted to switch from /dev/.run to run
too.
Cheers,
Kay |
8f7a3c1402a8de36b2c63935358a53510d2fe7c1 |
|
15-Mar-2011 |
Lennart Poettering <lennart@poettering.net> |
man: document systemd-nspawn |