criu/scripts
Stanislav Kinsburskiy 40682f1561 scripts: save and restore target mount for autofs service
This patch slightly changes the logic on systemd autofs service restart script:

1) It tries to bind-mount the mountpoint on top of autofs (if any) somewhere
before service restart, and replace new mount point on top of autofs (if any)
by the saved one after.

2) It doesn't exit in case of error, trying to recover as much as
possible in case of failure instead and then continue services restarting.

The reason for introducing new logic is that there can be some other,
stateful, file system on top of autofs (say, tmpfs), which state was restore
during migration.
With current script this state will be lost, while this patch allows to
preserve restored mount point after service restart.

Signed-off-by: Stanislav Kinsburskiy <skinsbursky@virtuozzo.com>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
2016-07-05 23:18:15 +03:00
..
build travis: enable compilation for ppc64le 2016-05-06 14:38:29 +03:00
nmk nmk: build.mk -- Add @libso-y helper 2016-04-01 18:06:31 +03:00
crit-setup.py build: pycriu -- Move into lib/py 2016-02-19 14:32:19 +03:00
fake-restore.sh scripts: Add script to abort restore at the end 2014-02-05 19:40:47 +04:00
feature-tests.mak criu: Drop prlimit compat layer 2016-04-07 13:58:42 +03:00
flake8.cfg zdtm: use flake8 to verify zdtm.py 2016-06-28 13:09:35 +03:00
gen-offsets.sh build: Move pie/gen-offsets.sh into scripts/ 2013-10-15 11:30:41 +04:00
magic-gen.py scripts: add magic-gen.py 2015-01-14 20:44:45 +04:00
protobuf-gen.sh Remove \u and \U GNU-isms from sed command 2014-02-11 09:18:32 +04:00
systemd-autofs-restart.sh scripts: save and restore target mount for autofs service 2016-07-05 23:18:15 +03:00
tmp-files.sh tmpfiles: implement user tmp files feature 2016-03-09 12:48:33 +03:00
travis-tests travis: add coveralls.io support 2016-06-28 13:09:39 +03:00