summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2014-09-14 11:11:36 +0400
committerIgor Pashev <pashev.igor@gmail.com>2014-09-14 11:11:36 +0400
commit142f5e3ba422c11cb68dee684a62a03e1aaa4a6f (patch)
treede2b6d11af24b7f45b4c93ed0a71e7bf3b2e306b
parent037308c2b2630e340a730a655a9202f589158ef5 (diff)
downloadlive-142f5e3ba422c11cb68dee684a62a03e1aaa4a6f.tar.gz
Use pipefail option
-rwxr-xr-xprotostar3
1 files changed, 2 insertions, 1 deletions
diff --git a/protostar b/protostar
index cfcd61c..0e0b0ce 100755
--- a/protostar
+++ b/protostar
@@ -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"/