Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fwlive.git;a=commitdiff;h=65decf588c7f8151ddb4dc047b54e2857b4fb89f
commit 65decf588c7f8151ddb4dc047b54e2857b4fb89f Author: James Buren <[email protected]> Date: Tue Feb 19 03:26:59 2013 -0600 fix issue where sfdisk freaks out if there's no partition data diff --git a/new/src/block.c b/new/src/block.c index 6e71488..f43615a 100644 --- a/new/src/block.c +++ b/new/src/block.c @@ -1092,6 +1092,13 @@ extern bool disk_flush(struct disk *disk) prev = part; } + if(n < 20) + { + snprintf(command+n,_POSIX_ARG_MAX-n,"0 0 0x00 -\\n"); + + n = strlen(command); + } + snprintf(command+n,_POSIX_ARG_MAX-n,"' | sfdisk --unit S --Linux '%s';echo -n -e 'x\\ni\\n0x%.8x\\nw\\n' | fdisk '%s';", disk->device->path, (disk->dosuuid == 0) ? (unsigned int) rand() : disk->dosuuid, _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
