71b7a2f47c
Dump capture initramfs needs rebuild after partition migration (LPM). Use servicelog notification mechanism to invoke kdump rebuild after migration. Signed-off-by: Hari Bathini <hbathini@linux.ibm.com> Reviewed-by: Pingfan Liu <piliu@redhat.com> Acked-by: Kairui Song <kasong@redhat.com>
9 lines
227 B
Bash
9 lines
227 B
Bash
#!/bin/bash
|
|
export PATH="$PATH:/usr/bin:/usr/sbin"
|
|
|
|
exec >>/var/log/kdump-migration.log 2>&1
|
|
|
|
echo "kdump: Partition Migration detected. Rebuilding initramfs image to reload."
|
|
/usr/bin/kdumpctl rebuild
|
|
/usr/bin/kdumpctl reload
|