dracut: fix archiving of late core dumps in pre-pivot
Switch the location to /run from /tmp, because that one survives the root switch. Otherwise there's a window between last check in pre-pivot and first check in switched root.
Aug 31 12:09:28 localhost.localdomain dracut-pre-pivot[764]: Checking for coredumps, core_pattern:
Aug 31 12:09:28 localhost.localdomain dracut-pre-pivot[764]: ///lib/dracut/hooks/cleanup/99-check_core_dumps.sh@15(source): cat /proc/sys/kernel/core_pattern
Aug 31 12:09:28 localhost.localdomain dracut-pre-pivot[787]: /run/dumps/dump_%e-%P-%u-%g-%s-%t-%c-%h
Aug 31 12:09:28 localhost.localdomain dracut-pre-pivot[764]: ///lib/dracut/hooks/cleanup/99-check_core_dumps.sh@17(source): for dump in /run/dumps/dump_*
Aug 31 12:09:28 localhost.localdomain dracut-pre-pivot[764]: ///lib/dracut/hooks/cleanup/99-check_core_dumps.sh@18(source): '[' -f '/run/dumps/dump_*' ']'
Aug 31 12:09:28 localhost.localdomain dracut-pre-pivot[764]: ///lib/dracut/hooks/cleanup/99-check_core_dumps.sh@21(source): echo 'No coredumps found'
Aug 31 12:09:28 localhost.localdomain dracut-pre-pivot[764]: No coredumps found
Aug 31 12:09:28 localhost.localdomain dracut-pre-pivot[764]: /lib/dracut-lib.sh@411(source_all): for f in "/$_dir"/*.sh
...
Aug 31 12:09:30 localhost.localdomain kernel: traps: teamd[566] general protection fault ip:55bada101a55 sp:7fffaa43f810 error:0 in teamd[55bada0fb000+16000]
...
Aug 31 12:09:59 localhost.localdomain test-init[920]: Setting core_pattern to /var/log/dumps/dump_*