dracut: write initramfs to temp file then move into place
authorLars R. Damerow <lars@pixar.com>
Thu, 21 Feb 2013 21:40:23 +0000 (13:40 -0800)
committerHarald Hoyer <harald@redhat.com>
Fri, 22 Feb 2013 10:05:29 +0000 (11:05 +0100)
commit9a9c6e1256c7185630fa94bb63ac0bb666a5af34
tree07363c4a653728d2fb0d1aa5b93fe474cbd6922e
parent9c65c125a919756844fdec0a44d3a80b14ef36ae
dracut: write initramfs to temp file then move into place

We've been finding cases where multiple instances of dracut can be launched
simultaneously, resulting in a corrupted initramfs file. This patch makes
dracut write the initramfs to a new file, then move it into place atomically.
dracut.sh