chiark / gitweb /
main: ISOLATE rather than REPLACE default.target
authorTom Gundersen <teg@jklm.no>
Tue, 5 Mar 2013 06:56:47 +0000 (15:56 +0900)
committerLennart Poettering <lennart@poettering.net>
Wed, 6 Mar 2013 15:24:49 +0000 (16:24 +0100)
commit95f1b47d27066c139ca685f65a2e4e91e1c3d6a9
treee7fdf5cd330ceb8c07376c06ea45d83563fcda74
parent61a9648f022049ac14c5667958752e8dcff857c1
main: ISOLATE rather than REPLACE default.target

This allows switch-root to work correctly if a unit is active both before and
after the switch-root, but its dependencies change. Before the patch, any
dependencies added to active units by switch-root will not be pulled, in
particular filesystems configured in /etc/fstab would not be activated if
local-fs.target was active in the initrd.

It is not clear to me if there is a bug in the REPLACE handling, or if it is
working as expected and that we really want to use ISOLATE instead as this patch
does.
src/core/main.c