1
0
mirror of https://github.com/rancher/os.git synced 2025-08-31 14:23:11 +00:00

replace fdisk with parted

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2016-12-14 14:58:38 +10:00
parent 64ec90fe3d
commit 528c39f238

View File

@@ -33,11 +33,7 @@ fi
dd if=/dev/zero of=${DEVICE} bs=512 count=2048
partprobe ${DEVICE}
fdisk ${DEVICE} <<EOF
n
p
1
parted -s -a optimal ${DEVICE} mklabel msdos -- \
mkpart primary ext4 1 -1 \
set 1 boot on
w
EOF