xref: /OK3568_Linux_fs/kernel/tools/testing/selftests/rcutorture/doc/initrd.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunThe rcutorture scripting tools automatically create an initrd containing
2*4882a593Smuzhiyuna single statically linked binary named "init" that loops over a
3*4882a593Smuzhiyunvery long sleep() call.  In both cases, this creation is done by
4*4882a593Smuzhiyuntools/testing/selftests/rcutorture/bin/mkinitrd.sh.
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunHowever, if you don't like the notion of statically linked bare-bones
7*4882a593Smuzhiyunuserspace environments, you might wish to press an existing initrd
8*4882a593Smuzhiyuninto service:
9*4882a593Smuzhiyun
10*4882a593Smuzhiyun------------------------------------------------------------------------
11*4882a593Smuzhiyuncd tools/testing/selftests/rcutorture
12*4882a593Smuzhiyunzcat /initrd.img > /tmp/initrd.img.zcat
13*4882a593Smuzhiyunmkdir initrd
14*4882a593Smuzhiyuncd initrd
15*4882a593Smuzhiyuncpio -id < /tmp/initrd.img.zcat
16*4882a593Smuzhiyun# Manually verify that initrd contains needed binaries and libraries.
17