[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#213314: partconf: invokes mkreiserfs interactively



mån 2003-09-29 klockan 18.05 skrev Sebastian Ley:
> Package: partconf
> Severity: normal
> Tags: d-i
> 
> The way partconf mkreiserfs will cause mkreiserfs to ask questions,
> which will freeze partconf.

Yes, I've been thinking about this. I think I will introduce templates 
partconf/mkfs/<type> for this. Something like:

Template: partconf/mkfs/reiserfs
Type: string
Default: %s <flags go here> %s
Description: internal thingy

Where the first %s is the mkfs program and the second is the path to the
device.

The code to handle it would be something like:

sprintf(buf, "partconf/mkfs/%s", fstype);
debconf->command(debconf, "GET", buf, NULL);
sprintf(buf, debconf->value, mkfsprog, devpath);
system(buf);
// modulo error handling and buffer overruns of course

These templates can even be supplied by the mkfs udebs, they don't have
to ship with partconf (they SHOULDN'T ship with partconf!)

Does this sound sane?


/Martin
-- 
Martin Sjögren
  sjogren@debian.org -- marvin@dum.chalmers.se
  GPG key: http://www.mdstud.chalmers.se/~md9ms/gpg.html
  let hello = "hello" : hello in putStr (unlines hello)

Attachment: signature.asc
Description: Detta =?ISO-8859-1?Q?=E4r?= en digitalt signerad meddelandedel


Reply to: