summaryrefslogtreecommitdiff
path: root/mkimage.sh
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-02-27 17:17:36 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-02-27 17:17:36 +0000
commit8a4435f71a8a47e9cf3050ad6456cd9949da5958 (patch)
tree04fcc00d75ad0e8a8ad3f369688e6c833621c1b4 /mkimage.sh
parentc5fc68fa232e88ec3e5e40aaec619280554886a9 (diff)
downloadmorph-8a4435f71a8a47e9cf3050ad6456cd9949da5958.tar.gz
Make ./check check for long lines (with excptions); fix long lines
Diffstat (limited to 'mkimage.sh')
-rwxr-xr-xmkimage.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/mkimage.sh b/mkimage.sh
index af0c9759..1f5d703d 100755
--- a/mkimage.sh
+++ b/mkimage.sh
@@ -19,7 +19,9 @@ sudo parted -s "$img" mklabel msdos
sudo parted -s "$img" mkpart primary 0% 100%
sudo parted -s "$img" set 1 boot on
sudo install-mbr "$img"
-part=/dev/mapper/$(sudo kpartx -av "$img" | awk '/^add map/ { print $3 }' | head -n1)
+part=/dev/mapper/$(sudo kpartx -av "$img" |
+ awk '/^add map/ { print $3 }' |
+ head -n1)
trap "sudo kpartx -dv $img" EXIT
# mapper may not yet be ready
while test ! -e "$part"; do :; done