<div dir="ltr"><div><div><div><div><div><div><div><div>In RedHat 7 I am trying to setup a partition with dmsetup. I have attached a tarball that includes three files:<br><br></div>* go.sh is a simple script to install everything<br></div>* install is the dracut module install<br></div>* 95dmcrypt.sh is the file I want to run at boot time<br><br></div><div>The module is 99securevm.<br></div><div><br></div>Obviously, this has all been stripped down to make it as simple as possible. Sorry for the hard coding. If you want to test it, you need to provide a /dev/sdb1 partition that is at least 2G. If you comment out the `exit 0' in go.sh it will setup the partition for you.<br><br></div>Note that if 95dmcrypt.sh has either the dmsetup or the 2 cryptsetup lines commented in, it will hang the machine.<br><br></div>I am hoping I have just put something in the wrong place. pre-mount is where we previously ran the script from.<br><br></div>Cheers,<br></div>    Sean <br></div>