#!/bin/sh rootpart="$(findmnt -n -o SOURCE /)" rootdev="/dev/$(lsblk -no pkname "$rootpart")" flock $rootdev sfdisk -f $rootdev -N 2 <