1*33595581SPaul E. McKenneyThe rcutorture scripting tools automatically create an initrd containing 2*33595581SPaul E. McKenneya single statically linked binary named "init" that loops over a 3*33595581SPaul E. McKenneyvery long sleep() call. In both cases, this creation is done by 4*33595581SPaul E. McKenneytools/testing/selftests/rcutorture/bin/mkinitrd.sh. 5c87b9c60SPaul E. McKenney 6*33595581SPaul E. McKenneyHowever, if you don't like the notion of statically linked bare-bones 7*33595581SPaul E. McKenneyuserspace environments, you might wish to press an existing initrd 8*33595581SPaul E. McKenneyinto service: 9c87b9c60SPaul E. McKenney 10c87b9c60SPaul E. McKenney------------------------------------------------------------------------ 11616fd166SPaul E. McKenneycd tools/testing/selftests/rcutorture 12c87b9c60SPaul E. McKenneyzcat /initrd.img > /tmp/initrd.img.zcat 13c87b9c60SPaul E. McKenneymkdir initrd 14c87b9c60SPaul E. McKenneycd initrd 15c87b9c60SPaul E. McKenneycpio -id < /tmp/initrd.img.zcat 1638e63042SPaul E. McKenney# Manually verify that initrd contains needed binaries and libraries. 17