mirror of
git://git.2f30.org/morpheus.git
synced 2024-06-26 00:18: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
|
# Ensure you've loaded the loop module with max_part=15
|
||||||
|
|
||||||
@ -7,7 +7,8 @@
|
|||||||
img=morpheus-$arch-$version.img
|
img=morpheus-$arch-$version.img
|
||||||
|
|
||||||
dd if=/dev/zero of=$img bs=512M count=8
|
dd if=/dev/zero of=$img bs=512M count=8
|
||||||
fdisk $img <<< '
|
(
|
||||||
|
cat << EOF
|
||||||
o
|
o
|
||||||
n
|
n
|
||||||
p
|
p
|
||||||
@ -16,7 +17,9 @@ p
|
|||||||
|
|
||||||
a
|
a
|
||||||
1
|
1
|
||||||
w'
|
w
|
||||||
|
EOF
|
||||||
|
) | fdisk $img
|
||||||
|
|
||||||
lodev=$(losetup -f --show $img) || exit 1
|
lodev=$(losetup -f --show $img) || exit 1
|
||||||
partition="$lodev"p1
|
partition="$lodev"p1
|
||||||
|
Loading…
Reference in New Issue
Block a user