repo.or.cz
/
qemu.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
scripts: Explain the difference between linux-headers and standard-headers
[qemu.git]
/
tests
/
migration
/
initrd-stress.sh
blob
0f20ac29a6c6d86215a3632961d338ece5558ed9
1
#!/bin/sh
2
3
INITRD
=
"
$1
"
4
STRESS
=
"
$2
"
5
6
INITRD_DIR
=
$
(
mktemp
-d -p
''
"initrd-stress.XXXXXX"
)
7
trap
'rm -rf
$INITRD_DIR
'
EXIT
8
9
cp
"
$STRESS
"
"
$INITRD_DIR
/init"
10
(
cd
"
$INITRD_DIR
"
&& (
find
|
cpio
--quiet -o -H
newc |
gzip
-9
)) >
"
$INITRD
"