/srv/irclogs.ubuntu.com/2009/06/05/#ubuntu-installer.txt

CIA-9ubiquity: cjwatson * r3271 ubiquity/debian/changelog: releasing version 1.13.100:02
=== mcasadevall is now known as NCommander
evandcjwatson_: Is it not worth the overhead to check the value of partman/default_filesystem for those cases in ubiquity?08:21
cjwatson_evand: there's only one where it really matters (the others were just cosmetic) - we probably should check default_filesystem for it once at startup, though, feel free :)09:51
evandwill do09:52
=== cjwatson_ is now known as cjwatson
corecodehey10:03
corecodeis there a way to write a partman receipe that spans multiple disks?10:03
corecodeah, device10:04
corecodei see10:04
corecodethen i wonder, how can i list all available drives so that i can put them into partman-auto/disk10:06
evandcjwatson: when you say "at startup", do you mean ubiquity startup or partman startup?10:09
cjwatsonI don't suppose it matters too much10:21
cjwatsonI was thinking the former10:21
cjwatsoncorecode: if you're on at least intrepid, you can use a combination of debconf-set and list-devices in partman/early_command to set that dynamically10:22
corecodelist-devices, is that only available in the installer?10:22
cjwatson(before intrepid, partman/early_command wasn't available, so there was no easily available scripting hook that ran after disks were detected)10:22
cjwatsonyes10:22
corecodeokay10:22
cjwatson'list-devices disk'10:23
cjwatsonprints '/dev/sda' here10:23
corecodeah great10:23
corecodethanks10:23
corecodenow i just need to write a nice receipe to create a pv on the second drive and add it to the vg10:24
corecoderecipe*10:24
corecodehm11:25
corecodeparted_server: OUT: Can't have a partition outside the disk!11:25
corecodeparted_server: OUT: Can't have a partition outside the disk!11:25
corecodesorry11:25
corecodehow am i supposed to tell partman "create a primary spanning the whole disk as pv?11:25
corecodei wrote in the recipe:  100 1000 -1 $default_filesystem $defaultignore{ } $primary{ } method{ lvm } device{ /dev/sdb }11:28
corecodebut i guess the -1 does some wrong calculations11:28
corecodebecause parted does this:11:29
corecodeparted_server: add_primary_partition(disk(312500000),0-312500000)11:29
corecode/bin/autopartition-lvm: IN: NEW_PARTITION =dev=sdb primary ext3 0-159999999999 beginning 16000000000111:29
cjwatsonI'm afraid I'm doing several other things right now, but maybe you could file a bug on partman-auto-lvm attaching syslog and partman logs11:33
cjwatsonyour recipe *ought* to work, I agree11:34
corecodemhm11:34
corecodehttps://bugs.launchpad.net/ubuntu/+source/partman-auto/+bug/36892411:49
ubottuLaunchpad bug 368924 in partman-auto ""Can't have a partition outside the disk!" error when two partitions are flagged as $primary in a partman-auto/expert_recipe" [Undecided,New]11:49
corecodesomebody already filed that report11:49
cjwatsonerr11:53
cjwatsonyou sure yours is the same? doesn't sound like it to me11:53
cjwatsonsame error message doesn't imply same bug11:53
corecodeyah11:54
corecodetesting11:54
cjwatsonin any case I'd appreciate a separate bug11:54
cjwatsonit's much easier to mark a bug as a duplicate than it is to split some of the comments out of a single bug11:54
CIA-9partman-basicfilesystems: cjwatson * r563 hardy-proposed/debian/changelog: releasing version 56ubuntu512:36
cody-somervilleWould it be possible for partman to partition the disk based off of the sizes of certain files on the install media?14:39
cody-somervilleor my real question is, is it possible to do it relatively easily?14:40
cjwatsonyou could write a preseed file to fetch that information and write out a custom recipe14:40
cjwatsonI'd rather not hack that into partman itself14:40
cody-somervillecjwatson, So use early_command to execute a script to calculate the size of the utility/recovery partition and write up a recipe at that time?14:41
cjwatsonright14:41
corecodecjwatson: will parted-auto-lvm remove existing partitions on a non-primary device?14:47
cjwatson"non-primary device"?14:48
corecodenot the first disk device14:48
cjwatsonno, it'll only operate on the device you tell it to operate it14:50
corecodebut auto_lvm_prepare can work on more than one device14:50
corecodewhat i want to say is, where do all existing partitions get deleted before applying a recipe?14:51
cjwatsonauto_lvm_prepare only works on more than one device if you tell it to, which we don't14:52
cjwatsonanyway, if you're already reading the code ... :)14:52
corecodeyah, i'm trying to find the problem14:52
corecodei think it is because there is already a partition on the destination (secondary) drive14:52
cody-somervillecjwatson, I'm thinking maybe a udeb that runs before partman would be better/more flexible than exploiting early_command14:56
cjwatsoncorecode: auto_lvm_prepare calls auto_init_disks (defined in partman-auto)14:57
cjwatsoncody-somerville: up to you, I'd do it with an early_command myself and I think that's pretty much equally flexible14:57
cjwatsonpartman/early_command that is14:57
cjwatsonwell, on >= intrepid14:57
cody-somervillecjwatson, I already use early_command and the nice thing about the udeb is that it just needs to get included and it'll work instead of me modifying the preseed file for all our jaunty projects14:58
cjwatsonok14:59
corecodecjwatson: then this can't be the problem...15:00
cjwatsoncorecode: your use of "destination" and "secondary" is confusing me15:00
cjwatsonperhaps it would help to use concrete examples15:01
corecodei have sda and sdb15:01
corecodei want to create two pv and one vg15:01
corecodenow just sda works fine, but when i try to get partman to create an pv on sdb, it fails15:01
cjwatsonah, now I discover I was looking at old partman-auto code ...15:02
cjwatsonso my previous statement that we never tell auto_lvm_prepare to work on more than one device was wrong, sorry about that15:03
cjwatsonit should operate basically the same way on all the disks you give it, from what I can see15:03
corecodei think the problem is that it can't allocate a primary partition that spans all drive15:07
cjwatsonwhat's the exact error message?15:10
corecode/bin/autopartition-lvm: IN: NEW_PARTITION =dev=sdb primary ext3 0-159999999999 beginning 16000000000115:10
corecodeparted_server: add_primary_partition(disk(312500000),0-312500000)15:10
corecodeparted_server: OUT: Can't have a partition outside the disk!15:10
cjwatsonoh, you said, sorry15:11
cjwatsonit sounded to me as if your initial guess that it was an arithmetic error somewhere is right15:11
cjwatsondid you file a bug with the logs?15:12
corecodeno, i wanted to see the bug first15:12
=== robbiew1 is now known as robbiew
corecodecjwatson: i think it is an alignment problem15:52
corecodecjwatson: within parted15:52
corecodecjwatson: or however parted gets driven15:53
cjwatsoncorecode: I really can't comment any further until I see logs, sorry15:53
cjwatsonI'd just be guessing15:53
corecodereally, the logs wouldn't help15:54
cjwatsonthen I can't help you at all, since often the logs help *me*15:55
cjwatsonI have a lot of practice at using partman logs to trace through what it's doing15:55
corecodewhat's the scp anna package?15:56
cjwatsonopenssh-client-udeb15:56
corecodethx15:56
corecodehttp://chlamydia.fs.ei.tum.de/~corecode/unsorted/partman16:01
cjwatsoncould you file a bug and attach it?16:02
cjwatsonI'll lose it otherwise :)16:02
corecodei don't know what to write in the bug16:02
corecodedoesn't work seems a bit vague16:03
cjwatson"partman-auto-lvm fails to create PV on second disk: 'Can't have a partition outside the disk!'"16:03
cjwatsonor something like that16:03
* cjwatson -> meeting16:03
cjwatsonmy guess is it's a fencepost error - 160000000000 is a suspiciously round number for the size of the disk16:04
corecodemust be an error in parted_server then16:06
cjwatsonnot necessarily, it's fed the sizes externally16:06
cjwatsonall the shell bits of partman do a lot of size computations16:06
corecodehm, could have been pilot error.  i forgot a .16:38
corecodebut now it tells me "no root file system defined"16:38
CIA-9debian-installer: cjwatson * r1104 ubuntu/ (5 files in 2 dirs): Move mainline architectures to 2.6.30-8 kernels.16:59
CIA-9debian-installer: cjwatson * r1105 ubuntu/debian/changelog: releasing version 20081029ubuntu4017:03
corecodecjwatson: yep, whenever the system tries to create a big primary partition, it breaks18:55
cody-somervilleIf I use oem-config-udeb, do I have to preseed a late command to run oem-configure-prepare in the target to skip the "boot and customize and then click the desktop icon to be ready for the 'first' boot"?20:43
CIA-9usb-creator: rgreening * r106 usb-creator/ (4 files in 3 dirs): (log message trimmed)20:56
CIA-9usb-creator: - Sort of have kdesudo working. Still doesn't pick up cmdline args if re-launched.20:56
CIA-9usb-creator: - Replaced kde_frontend with20:56
CIA-9usb-creator:  bzr+ssh://bazaar.launchpad.net/~david.edmundson/usb-creator/kde-frontend/20:56
CIA-9usb-creator:  Using this as a closer starting point for the KDE/Qt conversion...20:56
CIA-9usb-creator: - Backed up old kde_frontend.py to kde_frontend.py.old20:56
CIA-9usb-creator: - Started updating and implementing missing bits in kde_frontend.py20:56
cjwatsoncody-somerville: you'd have to, yes22:13
cjwatson(though I don't recall testing that method at all recently ...)22:13

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!