tools/testing/selftests/liveupdate/do_kexec.sh

Source file repositories/reference/linux-study-clean/tools/testing/selftests/liveupdate/do_kexec.sh

File Facts

System
Linux kernel
Corpus path
tools/testing/selftests/liveupdate/do_kexec.sh
Extension
.sh
Size
335 bytes
Lines
17
Domain
Support Tooling And Documentation
Bucket
tools
Inferred role
Support Tooling And Documentation: tools
Status
atlas-only

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
set -e

# Use $KERNEL and $INITRAMFS to pass custom Kernel and optional initramfs

KERNEL="${KERNEL:-/boot/bzImage}"
set -- -l -s --reuse-cmdline "$KERNEL"

INITRAMFS="${INITRAMFS:-/boot/initramfs}"
if [ -f "$INITRAMFS" ]; then
    set -- "$@" --initrd="$INITRAMFS"
fi

kexec "$@"
kexec -e

Annotation

Implementation Notes