commit aa0a63beec3b96924b8fb6cacc8663d7a923dce0
parent 3758ab0205c4f5a5b7c084cf0ce633cde1b63e0e
Author: sin <sin@2f30.org>
Date: Thu, 20 Feb 2014 16:21:27 +0000
Don't require bash for create-bootable
Diffstat:
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/create-bootable b/create-bootable
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#
# Ensure you've loaded the loop module with max_part=15
@@ -7,7 +7,8 @@
img=morpheus-$arch-$version.img
dd if=/dev/zero of=$img bs=512M count=8
-fdisk $img <<< '
+(
+cat << EOF
o
n
p
@@ -16,7 +17,9 @@ p
a
1
-w'
+w
+EOF
+) | fdisk $img
lodev=$(losetup -f --show $img) || exit 1
partition="$lodev"p1