Re: [oneSIS-users] oneSIS local disk partitioning issue with sfdisk
Brought to you by:
jjengla
From: Josh E. <jj...@gm...> - 2017-03-15 15:56:48
|
Thank you for the patch. It looks like an approach that should be compatible with old and new output from sfdisk. I've added it into SVN. -JE On Wed, Mar 15, 2017 at 7:37 AM, Kaizaad Bilimorya <ka...@sh...> wrote: > Hello, > > As indicated in this thread: > > https://sourceforge.net/p/onesis/mailman/message/34854019/ > > we ran into an issue with oneSIS's ability to partition local disks > because of changes in the output of newer versions of "sfdisk" (not sure > what version this change occurred in). > > On a new disk (or a disk without a MBR) sfdisk use to report: > > Old situation: > No partitions found > > > but now newer versions of sfdisk just having a blank line: > > Old situation: > > > I adjusted the perl regular expression used in oneSIS.pm (see attached > patch) that checks this from: > > $before =~ s/(?:.*\n)+Old situation:(?:.*\n)+?((?:\/dev.*\n)+|No > partitions found)(?:.*\n)+/$1/; > > to > > $before =~ s/(?:.*\n)+Old situation:(?:.*\n)+?((?:\/dev.*\n)+|(?:)|No > partitions found)(?:.*\n)+/$1/; > > > and it seems to work but I am not sure if this is the right approach wrt > perl REs. > > thanks > -k > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > oneSIS-users mailing list > one...@li... > https://lists.sourceforge.net/lists/listinfo/onesis-users > > |