mirror of
git://git.2f30.org/morpheus.git
synced 2024-06-16 12:48:34 +00:00
Don't require bash for create-bootable
This commit is contained in:
parent
3758ab0205
commit
aa0a63beec
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user