Sign in
qemu
/
qemu
/
f37c6c2e89d3b8d3376ddc74b5357e56f49ccb9c
/
.
/
tests
/
migration
/
initrd-stress.sh
blob: 0f20ac29a6c6d86215a3632961d338ece5558ed9 [
file
] [
log
] [
blame
]
#!/bin/sh
INITRD
=
"$1"
STRESS
=
"$2"
INITRD_DIR
=
$
(
mktemp
-
d
-
p
''
"initrd-stress.XXXXXX"
)
trap
'rm -rf $INITRD_DIR'
EXIT
cp
"$STRESS"
"$INITRD_DIR/init"
(
cd
"$INITRD_DIR"
&&
(
find
|
cpio
--
quiet
-
o
-
H newc
|
gzip
-
9
))
>
"$INITRD"