On Sat, Feb 20, 2021 at 03:00:37PM +0800, Wu Fengguang wrote:
+> optional vars in ${kernel_append_root}:
- ${save_root_partition}, ${use_root_partition}
- you can save the rootfs data of any job, and use it in subsequent job.
这描述太简单了点。 先解释清楚 为什么引入上述变量,用于满足什么需求。 怎么使用(use scenario),定义了他们之后,会触发什么动作/行为(behavior),在哪里实现的这些行为。
ok
-------- Thanks Yu Chuan
Thanks, Fengguang
- ${save_root_partition} and ${use_root_partition} must be the same, and obviously, they need be unique.
- you must 'save_root_partition' firstly, then you can 'use_root_partition'. otherwise, your job will fail.
- demo kernel_append_root field of job.yaml:
```
# demo 1. save the rootfs data of this job
kernel_append_root: save_root_partition=zhangsan_local_for_iperf_20210219
# demo 2. use the rootfs data of previous job
kernel_append_root: use_root_partition=zhangsan_local_for_iperf_20210218
# demo 3. use the rootfs data of previous job, and save the rootfs data of this job
kernel_append_root: use_root_partition=zhangsan_local_for_iperf_20210218 save_root_partition=zhangsan_local_for_iperf_20210219
```