1
0
mirror of https://github.com/rancher/os.git synced 2025-09-04 00:04:25 +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 dd if=/dev/zero of=${DEVICE} bs=512 count=2048
partprobe ${DEVICE} partprobe ${DEVICE}
fdisk ${DEVICE} <<EOF parted -s -a optimal ${DEVICE} mklabel msdos -- \
n mkpart primary ext4 1 -1 \
p set 1 boot on
1
w
EOF