fix partitioning

This commit is contained in:
jalr 2018-02-11 18:20:31 +01:00
parent adc20fe055
commit 8f2b909d59

View file

@ -21,18 +21,16 @@ esac
disk=/dev/sda
sfdisk -J /dev/sda << PARTTABLE
{
"partitiontable": {
"label": "dos",
"id": "0x2708bc46",
"device": "/dev/sda",
"unit": "sectors",
"partitions": [
{"node": "/dev/sda1", "start": 2048, "size": 497664, "type": "83", "bootable": true},
]
}
}
size_part_1=$((3072 * 1024 * 1024 / 512))
sfdisk /dev/sda << PARTTABLE
label: dos
label-id: 0xdeadbeef
device: /dev/sda
unit: sectors
/dev/sda1 : start= 2048, size= $size_part_1, type=83
PARTTABLE
mke2fs -t ext4 ${disk}1