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