Re: bypassing partman while preseeding

2008-05-19 Thread Tim Stoop
Hi Ferenc,

On Fri, May 9, 2008 at 11:25 AM, Ferenc Wagner [EMAIL PROTECTED] wrote:

 I gave up on persuading partman to do things like this, and use the
 attached initrd overlay instead.  It adds new menu items to partman,
 which facilitate easy preseeding, but also possible to use manually.


Thanks for the example! This helps a lot! The only thing I'm running up
against now is that apparantly:
partman-auto partman-auto/init_automatically_partition select Manual
doesn't work. At least, I still get partman-base selected.

For the record, I'm using the etch installer.

-- 
Gegroet,
Tim


Re: bypassing partman while preseeding

2008-05-19 Thread Ferenc Wagner
Tim Stoop [EMAIL PROTECTED] writes:

 On Fri, May 9, 2008 at 11:25 AM, Ferenc Wagner [EMAIL PROTECTED] wrote:

 I gave up on persuading partman to do things like this, and use the
 attached initrd overlay instead.  It adds new menu items to partman,
 which facilitate easy preseeding, but also possible to use manually.

 partman-auto partman-auto/init_automatically_partition select Manual
 doesn't work.

It works the same for the Woody, Sarge, Etch and Lenny installers.
It skips the following question by pre-selecting the manual method:

Partition disks
---

The installer can guide you through partitioning a disk (using
different standard schemes) or, if you prefer, you can do it
manually. With guided partitioning you will still have a chance
later to review and customise the results.

If you choose guided partitioning for an entire disk, you will
next be asked which disk should be used.
Partitioning method:
  1. Guided - use entire disk
  2. Guided - use entire disk and set up LVM
  3. Guided - use entire disk and set up encrypted LVM
  4. Manual

 At least, I still get partman-base selected.

I don't understand this sentence.  The partman-base package is
installed (selected?) for me, too: it's what ask the above question.

 For the record, I'm using the etch installer.

The above paste is from a Lenny installer session, fwiw.  Please
clarify, and I'll try to help.
-- 
Regards,
Feri.


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



Re: bypassing partman while preseeding

2008-05-19 Thread Tim Stoop
Hi Feri,

On Mon, May 19, 2008 at 2:28 PM, Ferenc Wagner [EMAIL PROTECTED] wrote:

  partman-auto partman-auto/init_automatically_partition select Manual
  doesn't work.

 It works the same for the Woody, Sarge, Etch and Lenny installers.
 It skips the following question by pre-selecting the manual method:


I understand, but I'm doing something wrong because I keep getting the Guided
- use entire disk and set up LVM partitioning layout. I'm using the scripts
from hands.com/d-i, with some altered preseeding. I added the files in the
early_script phase and confirmed they're there. Then I added a preseed
script with exactly the contents as in your preseed.example. However, I
still get the default Guided LVM thingy.


  At least, I still get partman-base selected.

 I don't understand this sentence.  The partman-base package is
 installed (selected?) for me, too: it's what ask the above question.


Yeah, ignore this, I was still half asleep when i wrote this sentence :S


 The above paste is from a Lenny installer session, fwiw.  Please
 clarify, and I'll try to help.


My preseed file (copy of yours):
partman-auto partman-auto/init_automatically_partition select Manual
partman-lvmraid partman-lvmraid/logical-volumes string \
root :/ :256M:xfs,\
usr  :/usr  :512M:xfs:ro:nodev,\
tmp  :/tmp  :256M:xfs:nodev:nosuid,\
var  :/var  :512M:xfs:nodev,\
swap :none  :128M:swap,\
mailman:/var/lib/mailman:1G:xfs:nodev:noexec

The early_script:

INITRD_OVERLAY=/classes/partition/kumina/extra.tar.gz
preseed_fetch $INITRD_OVERLAY /tmp/extra.tar.gz || echo warning... initrd
overlay not found!
tar -zxf /tmp/extra.tar.gz -C /

Output from 'ls /dev/mapper' right after the partitioning (typed over from
screen):

control
debian-home
debian-root
debian-swap_1
debian-tmp
debian-user
debian-var

-- 
Gegroet,
Tim


Re: bypassing partman while preseeding

2008-05-19 Thread Ferenc Wagner
Tim Stoop [EMAIL PROTECTED] writes:

 On Mon, May 19, 2008 at 2:28 PM, Ferenc Wagner [EMAIL PROTECTED] wrote:

 partman-auto partman-auto/init_automatically_partition select Manual
 doesn't work.

 It works the same for the Woody, Sarge, Etch and Lenny installers.
 It skips the following question by pre-selecting the manual method:

 I understand, but I'm doing something wrong because I keep getting
 the Guided - use entire disk and set up LVM partitioning layout.

Perhaps you could try without any preseeding first.  That way you'll
see all the questions and can decide which you'd rather skip.

 I'm using the scripts from hands.com/d-i, with some altered
 preseeding. I added the files in the early_script phase and
 confirmed they're there. Then I added a preseed script with exactly
 the contents as in your preseed.example. However, I still get the
 default Guided LVM thingy.

Depending on your method, it may be the easiest to simply specify
multiple initrd images (comma separated).  Isolinux and co. will
simply merge those.  Leave the first as the default initrd from the
installer, and the second containing the extra files.

If the files are in place and functional, they should add new menu
item(s) to the partitioning menu.  If they can't see anything new,
then something is wrong.

I'll be offline for a couple of hours now, good luck!
-- 
Cheers,
Feri.


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



Re: bypassing partman while preseeding

2008-05-19 Thread Frans Pop
On Monday 19 May 2008, Tim Stoop wrote:
 On Mon, May 19, 2008 at 2:28 PM, Ferenc Wagner [EMAIL PROTECTED] wrote:
   partman-auto partman-auto/init_automatically_partition select Manual
   doesn't work.
 
  It works the same for the Woody, Sarge, Etch and Lenny installers.
  It skips the following question by pre-selecting the manual method:

 I understand, but I'm doing something wrong because I keep getting the
 Guided - use entire disk and set up LVM partitioning layout.

There are some changes between the different versions of the installer wrt 
preseeding partman. Please check the appendix on preseeding in the *correct 
version* of the installation guide.


signature.asc
Description: This is a digitally signed message part.


Re: bypassing partman while preseeding

2008-05-09 Thread Tim Stoop
Hi all,
To elaborate on my previous message:

On Wed, May 7, 2008 at 4:59 PM, Tim Stoop [EMAIL PROTECTED] wrote:

 - /boot outside of LVM, 500M
 - LVM dom0 of 10G with several partitions for the dom0
 - LVM domU empty (at least while installing), rest of the disk


I forgot to say that I want to different VGs (dom0 and domU). I couldn't
find any way to do that with a partman recipe, so I decided to do a little
magic in a late_script.

For this to work, I needed the LVM partition dom0 not larger than exactly
needed (about 10G). I've tried creating an empty non-LVM partition in my
recipe, but apparantly two non-LVM partitions aren't allowed (I also need a
non-LVM /boot). At least, I got a message telling me there was no root and
indeed, the LVM partition was only 30M large and contained no LVs.

This was the recipe I tried:

string dom0-domU ::

512 512 512 ext3

$primary{ }

$bootable{ }

method{ format } format{ }

use_filesystem{ } filesystem{ ext3 }

mountpoint { /boot }

.

2048 2048 2048 ext3

$lvmok{ }

method{ format } format{ }

use_filesystem{ } filesystem{ ext3 }

mountpoint{ / }

.

7168 7168 7168 ext3

$lvmok{ }

method{ format } format{ }

use_filesystem{ } filesystem{ ext3 }

mountpoint{ /var }

.

1024 1024 1024 linux-swap

$lvmok{ }

method{ swap } format{ }

.

512 512 512 ext3

$lvmok{ }

method{ format } format{ }

use_filesystem{ } filesystem{ ext3 }

mountpoint{ /tmp }

.

1024 1024 1024 ext3

$lvmok{ }

method{ format } format{ }

use_filesystem{ } filesystem{ ext3 }

mountpoint{ /home }

.

100 10 10 ext2

$primary{ }

method{ keep }

.


As soon as I remove the last partition or add it to the LVM, it works. But
then I have no room to play with easily. Last time when I asked this, I got
a message telling me to bypass partman. I've been looking into that, but
haven't found a good solution for this.

Does anyone have an idea on how I can achieve this? One thing I thought
about is having a simple recipe and doing it all manually in the
late_script. Not sure if that's the best solution.

Any tips would be appreciated!

-- 
Gegroet,
Tim


Re: bypassing partman while preseeding

2008-05-09 Thread Ferenc Wagner
Tim Stoop [EMAIL PROTECTED] writes:

 I've got a fairly strict partitioning scheme that I want to setup through
 preseeding. It's really very simple, but partman can't do it (afaict):

 - /boot outside of LVM, 500M
 - LVM dom0 of 10G with several partitions for the dom0
 - LVM domU empty (at least while installing), rest of the disk

 Is there a simple way to bypass partman and set this up as I want? Any tips
 on how to do this? I rather not create my own udebs, since we'd like to keep
 everything as generic as possible (mostly so we can easily use the recipes
 when new versions of Debian are released).

I gave up on persuading partman to do things like this, and use the
attached initrd overlay instead.  It adds new menu items to partman,
which facilitate easy preseeding, but also possible to use manually.


extra.tgz
Description: GNU Unix tar archive
It does not support use all space in the VG out of the box (I never
needed that), but you can probably add it fairly easily.
-- 
Regards,
Feri.


Re: bypassing partman while preseeding to get multiple VG

2008-05-09 Thread Geert Stappers
Op 09-05-2008 om 10:05 schreef Tim Stoop:
 To elaborate on my previous message:
 On Wed, May 7, 2008 at 4:59 PM, Tim Stoop [EMAIL PROTECTED] wrote:
 
  - /boot outside of LVM, 500M
  - LVM dom0 of 10G with several partitions for the dom0
  - LVM domU empty (at least while installing), rest of the disk
 
 
~ I forgot to say that I want to different VGs (dom0 and domU).
 snip/ 
 Does anyone have an idea on how I can achieve this? One thing I thought
 about is having a simple recipe and doing it all manually in the
 late_script. Not sure if that's the best solution.
 
 Any tips would be appreciated!

| [EMAIL PROTECTED]:~
| $ cd /usr/src/debian-installer/packages/partman/
| [EMAIL PROTECTED]:/usr/src/debian-installer/packages/partman
| $ ls
| partman-auto  partman-dmraid partman-newworld
| partman-auto-crypto   partman-efipartman-palo
| partman-auto-lvm  partman-ext2r0 partman-partitioning
| partman-auto-raid partman-ext3   partman-prep
| partman-base  partman-jfspartman-reiserfs
| partman-basicfilesystems  partman-lvmpartman-target
| partman-basicmethods  partman-md partman-xfs
| partman-cryptopartman-multipath
| [EMAIL PROTECTED]:/usr/src/debian-installer/packages/partman
| $ grep --after 20 Description: partman-auto-lvm/debian/control 
| Description: Automatically partition storage devices using LVM
| [EMAIL PROTECTED]:/usr/src/debian-installer/packages/partman
| $ 

In other words: there is a partman-auto-lvm package
That is what I say right now.

So I can't tell at this moment 
- how to invoke partman-auto-lvm
- how to provide configuration information to p-a-l
- if it could fullfill the multiple VG wish


I just hope it get your further as postings that didn't mention p-a-l.


Cheers
Geert Stappers


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



Re: bypassing partman

2004-09-23 Thread Anton Zinoviev
On Sat, Sep 18, 2004 at 02:19:10AM +0100, peter green wrote:
 for various reasons i want to be able to use debian installer to install on
 a block device that is not a partition
 
 is there any way to bypass partman and set up the mappings between
 mountpoints and block devices manually?

I can not answer your question but unsell some new bug was introduced
you don't need to bypass partman.

1. Start the installer in the expert mode so all questions will be asked
2. Choose to create by partman a new partition table on your block device.
3. You will be asked about its type.  Choose loop.
4. Create one partition that ocupies the whole disk and use it.

The loop partition table type is some hack provided by parted
meaning that the storage device has only one partition and it ocupies
the whole device.

Anton Zinoviev


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



RE: bypassing partman

2004-09-23 Thread peter green
that assumes that partman lists the block device in quesion at all ;)
i have discovered how to force it though
mount block device on /target
cd to /target to make it impossible to unmount
proceed with the install as normal
it will try to start partman fail and dump you in the main menu
from here you can move on to install the base system
it will try to start partman a couple more times then proceed to install the
base system


 -Original Message-
 From: Anton Zinoviev [mailto:[EMAIL PROTECTED]
 Sent: 23 September 2004 13:06
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Re: bypassing partman


 On Sat, Sep 18, 2004 at 02:19:10AM +0100, peter green wrote:
  for various reasons i want to be able to use debian installer
 to install on
  a block device that is not a partition
 
  is there any way to bypass partman and set up the mappings between
  mountpoints and block devices manually?

 I can not answer your question but unsell some new bug was introduced
 you don't need to bypass partman.

 1. Start the installer in the expert mode so all questions will be asked
 2. Choose to create by partman a new partition table on your block device.
 3. You will be asked about its type.  Choose loop.
 4. Create one partition that ocupies the whole disk and use it.

 The loop partition table type is some hack provided by parted
 meaning that the storage device has only one partition and it ocupies
 the whole device.

 Anton Zinoviev


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



Re: bypassing partman

2004-09-23 Thread Anton Zinoviev
On Thu, Sep 23, 2004 at 03:43:21PM +0100, peter green wrote:

 it will try to start partman a couple more times then proceed to install the
 base system

I don't understand why it allowed you to proceed at all. ;-)

One way to cheat is to configure some partition sheme by partman and
then to change it manualy acording to your needs.  Then the system
will know that partman is configured and will not restart it.

However in order not to proceed directly to the installation of the
base system before you could setup your own version of /target the
installation process has to be in expert mode.

Anton Zinoviev


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



RE: bypassing partman

2004-09-23 Thread peter green

 One way to cheat is to configure some partition sheme by partman and
 then to change it manualy acording to your needs.  Then the system
 will know that partman is configured and will not restart it.
this assumes that your  system has block devices that patman recognises at
all


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



Re: bypassing partman

2004-09-23 Thread Anton Zinoviev
On Thu, Sep 23, 2004 at 04:30:50PM +0100, peter green wrote:
 
 this assumes that your  system has block devices that patman recognises at
 all

ok, then run

nano /var/lib/dpkg/status

And specify partman as installed. ;-)

Anton Zinviev


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