mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-10 15:54:39 +08:00
33595581f5
The rcu-test-image.txt documentation covers a very uncommon case where a real userspace environment is required. However, someone reading this document might reasonably conclude that this is in fact a prerequisite. In addition, the initrd.txt file mentions dracut, which is no longer used. This commit therefore provides the needed updates. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
17 lines
684 B
Plaintext
17 lines
684 B
Plaintext
The rcutorture scripting tools automatically create an initrd containing
|
|
a single statically linked binary named "init" that loops over a
|
|
very long sleep() call. In both cases, this creation is done by
|
|
tools/testing/selftests/rcutorture/bin/mkinitrd.sh.
|
|
|
|
However, if you don't like the notion of statically linked bare-bones
|
|
userspace environments, you might wish to press an existing initrd
|
|
into service:
|
|
|
|
------------------------------------------------------------------------
|
|
cd tools/testing/selftests/rcutorture
|
|
zcat /initrd.img > /tmp/initrd.img.zcat
|
|
mkdir initrd
|
|
cd initrd
|
|
cpio -id < /tmp/initrd.img.zcat
|
|
# Manually verify that initrd contains needed binaries and libraries.
|