Unset trap before dracut ramdisk build script exits

A similar change was needed in the normal ramdisk element as part
of ae928057bd to avoid running
cleanup immediately after the ramdisk build completes.

Change-Id: Ia96e2d8011b88ed96cc6727914c5a5d2dea59757
This commit is contained in:
Ben Nemec 2014-10-23 20:02:08 -05:00
parent bb8126e887
commit 0db6b9b401

View File

@ -61,3 +61,5 @@ dracut -N \
cp "/boot/vmlinuz-${KERNEL_VERSION}" /tmp/kernel cp "/boot/vmlinuz-${KERNEL_VERSION}" /tmp/kernel
chmod o+r /tmp/kernel chmod o+r /tmp/kernel
# We don't want to run cleanup (set in mk_build_dir above) when this exits
trap EXIT