More modern disk partitionning (compilation)
This commit is contained in:
parent
313c69a05b
commit
92edd61c44
|
@ -36,16 +36,7 @@ dd if=/dev/zero of=$1 bs=512 count=131072 status=progress
|
|||
|
||||
## Partition the image
|
||||
echo ${CL2}[create_disk.sh]${NC} Partitionning image... \(parted\)${CL3}
|
||||
#sudo parted --script $1 mktable msdos mkpart primary 2048s 100% set 1 boot on
|
||||
sudo fdisk $1 > /dev/null <<EEOF
|
||||
n
|
||||
p
|
||||
1
|
||||
|
||||
|
||||
a
|
||||
w
|
||||
EEOF
|
||||
sudo parted --script $1 mktable msdos mkpart primary 2048s 100% set 1 boot on
|
||||
|
||||
## Mount
|
||||
echo ${CL2}[create_disk.sh]${NC} Mount image... \(losetup\)${CL3}
|
||||
|
|
Loading…
Reference in New Issue