133595581SPaul E. McKenneyThe rcutorture scripting tools automatically create an initrd containing
233595581SPaul E. McKenneya single statically linked binary named "init" that loops over a
333595581SPaul E. McKenneyvery long sleep() call.  In both cases, this creation is done by
433595581SPaul E. McKenneytools/testing/selftests/rcutorture/bin/mkinitrd.sh.
5c87b9c60SPaul E. McKenney
633595581SPaul E. McKenneyHowever, if you don't like the notion of statically linked bare-bones
733595581SPaul E. McKenneyuserspace environments, you might wish to press an existing initrd
833595581SPaul 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