Re: partman-auto recipes (RAID and LVM2, leaving /home intact) ?

2004-09-20 Thread Anton Zinoviev
On Fri, Sep 17, 2004 at 04:18:53PM -0700, Karl Hegbloom wrote:
 
 Is it possible to automate not formatting a /home partition, leaving it
 intact and mounting it on the /target/home?

At present partman-auto can not reuse existing partitions.  In
particular this means that it can not reuse existing /home.

 In the case where there is only one large / partition, I would like to
 have the capability of noticing that, and moving aside all
 but /target/home and /target/opt, say to /target/oldsys prior to calling
 on a (to be written rsn) 'base-dar-installer'.  How should I manage
 that, in the context of d-i?  Is that something that an extension of
 'partman' should do, or what?  I need help.

Yes, this can be an extension of partman.

In general I think that partman-auto needs to be partialy reworked to
allow easy creation of such extensions and to support reusing existing
partitions, creating partitions on two and more hard disks, LVM and
RAID, upgrade of existing GNU/Linux system, etc.

Anton Zinoviev



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



partman-auto recipes (RAID and LVM2, leaving /home intact) ?

2004-09-17 Thread Karl Hegbloom
Does anyone have any partman-auto recipes developed that I can have a
look at?

Is it possible for it to automate setup of RAID and LVM2?

Is it possible to automate not formatting a /home partition, leaving it
intact and mounting it on the /target/home?

The project I'm trying to do is a restore / rescue disc that can restore
from a 'dar' archive on CD or DVD.  It should be capable of
leaving /home and /opt alone, since the dar image may be nothing more
than a VAR distro image.

In the case where there is only one large / partition, I would like to
have the capability of noticing that, and moving aside all
but /target/home and /target/opt, say to /target/oldsys prior to calling
on a (to be written rsn) 'base-dar-installer'.  How should I manage
that, in the context of d-i?  Is that something that an extension of
'partman' should do, or what?  I need help.

-- 
Karl Hegbloom
(o_  mailto:[EMAIL PROTECTED]
//\   jabber:[EMAIL PROTECTED]
V_/_   yahoo:karlheg



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: partman-auto recipes (RAID and LVM2, leaving /home intact) ?

2004-09-17 Thread Joey Hess
Karl Hegbloom wrote:
 Does anyone have any partman-auto recipes developed that I can have a
 look at?

I have a few trivial and unintersting ones for things like a small /boot
partition.

 Is it possible for it to automate setup of RAID and LVM2?
 
It's not possible yet since partman-auto does not run the lvmcfg and
mdcfg setup programs. I suspect that the recipe file format is
sufficient, but it will take some more work to make those programs
automatable and get it to work.
 
 Is it possible to automate not formatting a /home partition, leaving it
 intact and mounting it on the /target/home?

Yes of course. I suggest you read
installer/doc/devel/partman-auto-recipe.txt. Note the format{ }
specifier.

 In the case where there is only one large / partition, I would like to
 have the capability of noticing that, and moving aside all
 but /target/home and /target/opt, say to /target/oldsys prior to calling
 on a (to be written rsn) 'base-dar-installer'.  How should I manage
 that, in the context of d-i?  Is that something that an extension of
 'partman' should do, or what?  I need help.

I think you would need some kind of additional udeb to do what you need,
either before partman runs or as part of partman.

-- 
see shy jo


signature.asc
Description: Digital signature