]> git.ipfire.org Git - thirdparty/dracut.git/commit
99memstrack: hook script should not call exit
authorKairui Song <kasong@redhat.com>
Wed, 27 May 2020 14:07:37 +0000 (22:07 +0800)
committerLukáš Nykrýn <lnykryn@redhat.com>
Wed, 27 May 2020 14:51:52 +0000 (16:51 +0200)
commit424f01e2a0ac0b329e68eb63048cf0d6d9c74d37
treefce1cb1d313fb7b96aa595915484549d74543a6d
parent1ec7b694b55c70d06f262a96c320709b70d20bcb
99memstrack: hook script should not call exit

With memstrack module, rd.break may not work because the hook scripts
are sourced, not executed, so the exit call will make pre-pivot queue
exit early. See 98dracut-systemd/dracut-pre-pivot.sh, everything after
"source_hook cleanup" will be ignored.

Replace with return instead.

Credits go to Lukas Nykryn <lnykryn@redhat.com> who helped discover and
debug this issue.

Signed-off-by: Kairui Song <kasong@redhat.com>
modules.d/99memstrack/memstrack-report.sh