diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2014-09-14 11:11:36 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2014-09-14 11:11:36 +0400 |
commit | 142f5e3ba422c11cb68dee684a62a03e1aaa4a6f (patch) | |
tree | de2b6d11af24b7f45b4c93ed0a71e7bf3b2e306b | |
parent | 037308c2b2630e340a730a655a9202f589158ef5 (diff) | |
download | live-142f5e3ba422c11cb68dee684a62a03e1aaa4a6f.tar.gz |
Use pipefail option
-rwxr-xr-x | protostar | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2,6 +2,7 @@ set -e set -u +set -o pipefail dpkg -l ufsutils genisoimage debootstrap @@ -312,7 +313,7 @@ size=$(du -s -m "${BOOTARCH}" | cut -f1) dd if=/dev/zero of="${ROOT}/boot/boot_archive" bs=1M count="$size" lofidev=$(lofiadm -a "${ROOT}/boot/boot_archive") rlofidev="${lofidev/lofi/rlofi}" -yes | newfs -m 0 "${rlofidev}" +echo -n y | newfs -m 0 "${rlofidev}" mkdir -p "${ROOT}/boot/boot_archive.mount" mount "${lofidev}" "${ROOT}/boot/boot_archive.mount" mv "${BOOTARCH}"/* "${ROOT}/boot/boot_archive.mount"/ |