This commit is contained in:
simono41 2018-07-17 17:18:47 +02:00
parent 63767b293d
commit e7127529e7

View file

@ -166,7 +166,10 @@ function partioniere() {
}
function partitionieredual() {
sgdisk -d ${rootpartitionnummer} ${device}
if blkid -s PARTUUID -o value ${device}${rootpartitionnummer}; then
echo "entferne partition"
sgdisk -d ${rootpartitionnummer} ${device}
fi
sgdisk -a 2048 -n ${rootpartitionnummer}:: -c ${rootpartitionnummer}:"Linux filesystem" -t ${rootpartitionnummer}:8300 ${device}
formatencrypt
}