Skip to content

Commit

Permalink
Revise makehdd.sh for the latest boot2docker
Browse files Browse the repository at this point in the history
  • Loading branch information
ailispaw committed Nov 8, 2018
1 parent 77012a7 commit 2236ea6
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions contrib/makehdd/makehdd.sh
Original file line number Diff line number Diff line change
@@ -1,27 +1,7 @@
#!/bin/sh

LABEL=boot2docker-data

DEV=/dev/vda
MNT=/mnt/vda1

(echo n; echo p; echo 2; echo; echo +1000M; echo w) | fdisk ${DEV}
(echo t; echo 82; echo w) | fdisk ${DEV}
until [ -b "${DEV}2" ]; do
sleep 0.5
done
mkswap ${DEV}2

(echo n; echo p; echo 1; echo; echo; echo w) | fdisk ${DEV}
until [ -b "${DEV}1" ]; do
sleep 0.5
done
mkfs.ext4 -L ${LABEL} ${DEV}1

mkdir -p ${MNT}
mount ${DEV}1 ${MNT}
mkdir -p ${MNT}/var/lib/boot2docker

curl -L https://raw.githubusercontent.com/ailispaw/boot2docker-xhyve/master/config/profile \
-o ${MNT}/var/lib/boot2docker/profile
curl -L https://raw.githubusercontent.com/ailispaw/boot2docker-xhyve/master/config/bootsync.sh \
Expand Down

0 comments on commit 2236ea6

Please sign in to comment.