dracut/test/TEST-10-RAID/cryptroot-ask
Victor Lowther 1a0c05b849 Make root on local block device test completly automated.
We no longer require any user intervention when testing dracut on
a local block device in qemu, assuming everything passes.  If things fail,
we still might need to manually kill things.
2009-05-30 21:23:55 -05:00

7 lines
109 B
Bash
Executable File

#!/bin/sh
[ -b /dev/mapper/$2 ] && exit 0
echo -n test >/keyfile
/sbin/cryptsetup luksOpen $1 $2 </keyfile