sfdisk: unsupported unit ‘M’
sfdisk --force $DRIVE -uM << EOF 10,500,0x0C EOF
变更为
sfdisk --force $DRIVE << EOF 10M,500M,0x0C EOF