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:
@@ -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
|
|
||||||
|
Reference in New Issue
Block a user