Re: installer preseeding - partitioning
On Mon, 2011-04-25 at 20:24 +1000, Sean Crosby wrote: > I think what you are missing is the d-i partman-auto/method string > regular line - from the example: > > > # The presently available methods are: "regular", "lvm" and "crypto" > d-i partman-auto/method string regular Great, thanks - that seems to get it going :-) Now that you point it out, of course, I can see it in the example - though it's a bit unclear which bits are complementary and which are contradictory :-) > I also think there's a mistake in your formatting of the partition sizes. The > format (as I know it) is > > 200 2 250 ext4 \ > > Which is min_size priority max_size > > > I think it is also getting confused about the -1 in your / partition Other docs I've read say that's "use all of it"; it seems to be working. I did have to reverse the order though - put the fixed-sized swap partition first, and the root partition second. Many thanks, Richard -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1303794446.29338.121.ca...@topaz.wgtn.cat-it.co.nz
Re: installer preseeding - partitioning
On Mon, Apr 25, 2011 at 4:51 PM, Richard Hector wrote: > On Mon, 2011-04-25 at 18:27 +1200, Richard Hector wrote: > > Hi all, > > > > I've got a preseed file, with a partitioning recipe that I think is > > valid, but I'm having trouble getting past the partitioner with no > > interaction. Unfortunately the documentation is a bit lacking on how the > > various partman values interact. > > > > This is the partitioning section of my preseed.cfg so far: > > > > ## Partitioning ## > > d-i partman-auto/disk string /dev/sda > > # d-i partman-auto/method string my-recipe > > # d-i partman-auto/choose_recipe select my-recipe > > d-i partman-auto/expert_recipe string my-recipe :: \ > > 10240 10240 -1 ext4 \ > > $primary{ } \ > > $bootable{ } \ > > method{ format } \ > > format{ } \ > > use_filesystem{ } \ > > filesystem{ ext4 } \ > > mountpoint{ / } . \ > > \ > > 2048 2048 2560 linux-swap \ > > $primary{ } \ > > method{ swap } \ > > format{ } . > > > > d-i partman/confirm_write_new_label boolean true > > d-i partman/choose_partition \ > > select Finish partitioning and write changes to disk > > d-i partman/confirm boolean true > > > > This is my preseed (from Lucid): d-i partman-auto/disk string /dev/sda d-i partman-auto/method string regular d-i partman-auto/expert_recipe string physics-workstation :: \ 200 2 250 ext4 \ $primary{ } \ $bootable{ } \ method{ format } \ format{ } \ use_filesystem{ } \ filesystem{ ext4 } \ mountpoint{ /boot } . \ 25000 2 29000 ext4 \ method{ format } \ format{ } \ use_filesystem{ } \ filesystem{ ext4 } \ mountpoint{ /usr/local } . \ 3000 2 6000 ext4 \ method{ format } \ format{ } \ use_filesystem{ } \ filesystem{ ext4 } \ mountpoint{ /tmp } . \ 18000 18000 21000 ext4 \ method{ format } \ format{ } \ use_filesystem{ } \ filesystem{ ext4 } \ mountpoint{ / } . \ 1000 2 300% linux-swap \ method{ swap } \ format{ } . \ 1000 1 10 ext4 \ method{ format } \ format{ } \ use_filesystem{ } \ filesystem{ ext4 } \ mountpoint{ /scratch } . d-i partman/confirm_write_new_label boolean true d-i partman/choose_partitionselect Finish partitioning and write changes to disk d-i partman/confirm boolean true d-i partman-partitioning/confirm_copy boolean true d-i partman/confirm_new_label boolean true I think what you are missing is the d-i partman-auto/method string regular line - from the example: # The presently available methods are: "regular", "lvm" and "crypto" d-i partman-auto/method string regular I also think there's a mistake in your formatting of the partition sizes. The format (as I know it) is 200 2 250 ext4 \ Which is min_size priority max_size I think it is also getting confused about the -1 in your / partition Sean
Re: installer preseeding - partitioning
On Mon, 2011-04-25 at 18:27 +1200, Richard Hector wrote: > Hi all, > > I've got a preseed file, with a partitioning recipe that I think is > valid, but I'm having trouble getting past the partitioner with no > interaction. Unfortunately the documentation is a bit lacking on how the > various partman values interact. > > This is the partitioning section of my preseed.cfg so far: > > ## Partitioning ## > d-i partman-auto/disk string /dev/sda > # d-i partman-auto/method string my-recipe > # d-i partman-auto/choose_recipe select my-recipe > d-i partman-auto/expert_recipe string my-recipe :: \ > 10240 10240 -1 ext4 \ > $primary{ } \ > $bootable{ } \ > method{ format } \ > format{ } \ > use_filesystem{ } \ > filesystem{ ext4 } \ > mountpoint{ / } . \ > \ > 2048 2048 2560 linux-swap \ > $primary{ } \ > method{ swap } \ > format{ } . > > d-i partman/confirm_write_new_label boolean true > d-i partman/choose_partition \ > select Finish partitioning and write changes to disk > d-i partman/confirm boolean true > > > I'm testing this with lenny/amd64 at the moment, as squeeze seems unable > to detect the qemu hard drive in my kvm environment (and lucid gets > frowned upon here - but has more or less the same issues :-) Actually, I think I was wrong on 2 counts: * lucid and lenny behave differently (lucid offers to resize my partitions; also lucid detects /dev/sda while lenny detects /dev/hda). * both seem to ignore my recipe completely. Any tips? Thanks, Richard -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1303714298.12281.18.ca...@topaz.wgtn.cat-it.co.nz
installer preseeding - partitioning
Hi all, I've got a preseed file, with a partitioning recipe that I think is valid, but I'm having trouble getting past the partitioner with no interaction. Unfortunately the documentation is a bit lacking on how the various partman values interact. This is the partitioning section of my preseed.cfg so far: ## Partitioning ## d-i partman-auto/disk string /dev/sda # d-i partman-auto/method string my-recipe # d-i partman-auto/choose_recipe select my-recipe d-i partman-auto/expert_recipe string my-recipe :: \ 10240 10240 -1 ext4 \ $primary{ } \ $bootable{ } \ method{ format } \ format{ } \ use_filesystem{ } \ filesystem{ ext4 } \ mountpoint{ / } . \ \ 2048 2048 2560 linux-swap \ $primary{ } \ method{ swap } \ format{ } . d-i partman/confirm_write_new_label boolean true d-i partman/choose_partition \ select Finish partitioning and write changes to disk d-i partman/confirm boolean true I'm testing this with lenny/amd64 at the moment, as squeeze seems unable to detect the qemu hard drive in my kvm environment (and lucid gets frowned upon here - but has more or less the same issues :-) Any hints on what I need to set to make this go through without asking me any questions? Thanks, Richard -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1303712855.12281.15.ca...@topaz.wgtn.cat-it.co.nz