chiark / gitweb /
systemctl: switch-root - read init= from /proc/cmdline
authorTom Gundersen <teg@jklm.no>
Wed, 21 Nov 2012 22:22:03 +0000 (23:22 +0100)
committerTom Gundersen <teg@jklm.no>
Fri, 28 Dec 2012 22:37:18 +0000 (23:37 +0100)
commit13068da8b0b27bc56f0c5b245e5dbaa3dcd102d9
tree2a2ae8c8db3641ef488cc6f78dca5c0ad2dbde2b
parent485507b8c031e0c75f43c4b4fce5a0082a812fbb
systemctl: switch-root - read init= from /proc/cmdline

If the path to init is not specified as an argumnt to systemctl, but
init= is given on the kernel commandline, use that.

This means the initrd does not need glue code to parse the kernel
commandline before passing on init= to systemctl.

Cc: Harald Hoyer <harald@redhat.com>
Cc: Dave Reisner <dreisner@archlinux.org>
src/systemctl/systemctl.c