0

I know how to modify my image, reboot, and re-run it, but that would make my experiments very slow, since boot takes a few minutes.

Is there a way to quickly switch:

  • command line options
  • the executable

that is being run after boot?

This is not trivial because the Linux kernel knows about:

  • the state of the root filesystem
  • the state of memory, and therefore of kernel CLI options that could be used to modify init

so I can't just switch those after a checkpoint.

This question is inspired from: https://www.mail-archive.com/gem5-users@gem5.org/msg16959.html

Ciro Santilli
  • 3,693
  • 1
  • 18
  • 44

1 Answers1

0

Here is a fully automated setup that can help you to do it.

The basic workflow is as follows:

Ciro Santilli
  • 3,693
  • 1
  • 18
  • 44