When $KDUMP_BOOTDIR is RO then kexec-tools should not try rebuild initramfs even when conditions for rebuild is met.
Signed-off-by: Pratyush Anand panand@redhat.com Acked-by: Baoquan He bhe@redhat.com Acked-by: Dave Young dyoung@redhat.com --- kdumpctl | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/kdumpctl b/kdumpctl index ef18a2d4f6ce..8ec6b2de914b 100755 --- a/kdumpctl +++ b/kdumpctl @@ -406,6 +406,11 @@ check_rebuild() return 0 fi
+ if [[ ! -w "$KDUMP_BOOTDIR" ]];then + echo "$KDUMP_BOOTDIR does not have write permission. Can not rebuild $TARGET_INITRD" + return 1 + fi + echo "Rebuilding $TARGET_INITRD" rebuild_initrd return $?
Thanks, applied
On 05/11/16 at 09:17am, Pratyush Anand wrote:
When $KDUMP_BOOTDIR is RO then kexec-tools should not try rebuild initramfs even when conditions for rebuild is met.
Signed-off-by: Pratyush Anand panand@redhat.com Acked-by: Baoquan He bhe@redhat.com Acked-by: Dave Young dyoung@redhat.com
kdumpctl | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/kdumpctl b/kdumpctl index ef18a2d4f6ce..8ec6b2de914b 100755 --- a/kdumpctl +++ b/kdumpctl @@ -406,6 +406,11 @@ check_rebuild() return 0 fi
- if [[ ! -w "$KDUMP_BOOTDIR" ]];then
echo "$KDUMP_BOOTDIR does not have write permission. Can not rebuild $TARGET_INITRD"
return 1
- fi
- echo "Rebuilding $TARGET_INITRD" rebuild_initrd return $?
-- 2.5.5 _______________________________________________ kexec mailing list kexec@lists.fedoraproject.org http://lists.fedoraproject.org/admin/lists/kexec@lists.fedoraproject.org