/srv/irclogs.ubuntu.com/2007/08/23/#ubuntu-installer.txt

=== blackskad [n=blackska@d54C1A48C.access.telenet.be] has joined #ubuntu-installer
xivulonevand, cjwatson have an issue when trying to use live cd initrd to boot from HD ISO12:26
xivulonthe line in casper 'mount -t squashfs -o ro /dev/loop1 /filesystem.squashfs' fails with 'attempt to access beyond end of device'12:28
xivulonthat's probably because /cdrom sits on loop0 in my case12:30
superm1evand, i think i'm missing something here.  with this new run() setup, how do the different pages get shown?  It's flying through all the debconf for all these pages without showing the GUI?12:38
evandxivulon: yikes12:40
evandsuperm1: when a question is asked, the associated page is shown12:41
evandsuperm1: the component has to call filteredcommand.run12:41
superm1hm that's odd.  that's what it should be doing then for me12:41
superm1how is the page associated with the component though other than load order?12:42
superm1*question associated with the page12:42
superm1because i see self.pages being declared, but it just lists the questions that are for each of the pages12:43
evandself.pages determines the order12:45
evandas the main loop in run iterates through that list12:45
superm1right that's what i see12:45
evandoh12:46
evandI misread12:46
superm1but say partman.Partman, it pulls in that filteredcommand and it's questions12:46
superm1but how does that relate to the loading of the glade file now12:46
superm1and setting that page in the GUI12:46
superm1since it used to be in process_step()12:46
superm1oh wait, it's done externally12:49
superm1via the set_page function isn't it12:49
xivulonevand at the moment I have a problem with a nested loop, any idea?12:49
evanda dbfilter is set in the main loop in run, that runs through until it hits a question that it would like to stop at.  It (the component) then calls filteredcommand.run(), which then calls set_page in the frontend (which actually changes the UI page) and enters the gtk main loop for event processing12:49
evandxivulon: can you elaborate?12:50
=== CIA-20 [n=CIA@208.69.182.149] has joined #ubuntu-installer
superm1evand, okay, i get it now, thx12:50
evandno problem12:50
xivulonevand, I am testing the find_iso code, the iso file gets mounted to /cdrom, then it tries to mount casper/filesystem.squashfs and it fails12:53
evandohhh12:54
xivulonbut I can mount nested loop devices under feisty12:54
evandxivulon: daily iso?  is mount segfaulting?12:54
xivulonyeah it's the same daily iso but it's not defaulting instead I have the error:12:55
xivulonattempt to access beyond end of device12:55
evandoh, hrm12:55
xivulonbuffer i/o error on device loop0 (the one mounted on /cdrom)12:55
xivulonI tried to do the same operation from feisty and it works fine12:55
evandhrmm12:56
xivulontrying again from command line12:56
evandthat looks like one for pkl or cjwatson12:56
xivulonby the way did you see the xinit thingy?12:57
xivulonit will start ubiquity in a barebone X session when launched with --automatic12:57
evandindeed.  I'm not sure how we're going to proceed with starting ubiquity automatically yet (there's more than one way to do it).  But should we go that route, I'll definitely use your patch.  Thanks!12:58
xivulonmy reasoning was this12:59
xivulonusers will run the windows wizard, which will install "stuff" and reboot01:00
xivulonif they reboot into a desktop environment, almost everyone will be lead to believe that the installation is completed01:00
xivulonwhen it actually did not even start01:00
xivulonthat's the main reason to use a barebone x session with just ubiquity, but of course it is well possible to start ubiquity within a full gnome desktop01:01
evandxivulon: indeed, that thought crossed my mind as well01:08
xivulon/#join ubuntu-kernel01:34
xivulonops01:34
=== cr3 [n=marc@bas5-montreal02-1096553847.dsl.bell.ca] has joined #ubuntu-installer
=== superm1 [n=superm1@ubuntu/member/superm1] has joined #ubuntu-installer
=== xivulon [n=ago@87-194-85-156.bethere.co.uk] has left #ubuntu-installer []
=== CIA-20 [n=CIA@208.69.182.149] has joined #ubuntu-installer
=== superm1_ [n=superm1@ubuntu/member/superm1] has joined #ubuntu-installer
=== blackskad [n=blackska@d54C1A48C.access.telenet.be] has joined #ubuntu-installer
=== superm1 [n=superm1@ubuntu/member/superm1] has joined #ubuntu-installer
=== mpt [n=mpt@121-72-138-60.dsl.telstraclear.net] has joined #ubuntu-installer
=== JD [n=david@femme.catnip.org.uk] has joined #ubuntu-installer
JDHi, I need to rebuild dapper's netboot image to include the bnx2 driver.10:11
JDI've got as far as knowing I need to rebuild the nic-modules udev. the question is how do I get that used in the d-i build rather than from the archive?10:14
cjwatsonJD: you then have to grab the debian-installer source package from dapper (actually you probably want dapper-updates) and shove your nic-modules udeb in the localudebs directory there11:00
cjwatsonand rebuild the initrd with that11:00
JDah localudebs11:00
JDokay11:00
JDis there an updated nic-modules udeb with bnx2 already?11:01
JDhttps://launchpad.net/ubuntu/+bug/7364711:01
JDbut I can't find the package it would be fixed in11:01
cjwatsongive me a moment and I'll look that up11:02
JDcheers :)11:02
cjwatsonok, there is, but only in dapper-proposed with a weird ABI - I don't think you can actually use that11:03
cjwatsonit's due to be done properly for 6.06.211:03
JDbut that's not going to be today is it?11:04
JDI'll rebuild the kernel package from source and then rebuild d-i11:04
JDit's okay.11:04
JDthe localudebs bit is the bit I was missing11:04
cjwatsonno, not today11:08
JD:)11:09
cjwatsonJD: fwiw, re what fabbione said, definitely here and not #ubuntu-boot11:15
JDyeah, it was me and a bot. I got a little lonely :)11:16
=== xivulon [i=c2325681@gateway/web/cgi-irc/ircatwork.com/x-88ce1222d1fc2e78] has joined #ubuntu-installer
stgrabercjwatson: Do you know if there is a way to use preseeding with the Minimal/Netboot image ?01:03
cjwatsonstgraber: sure, see the installation guide, it's basically the same01:13
=== evand_ [n=evand@acm.pct.edu] has joined #ubuntu-installer
=== cr3 [n=marc@modemcable178.77-70-69.static.videotron.ca] has joined #ubuntu-installer
=== avoine [n=avoine@69.70.0.36] has joined #ubuntu-installer
=== CIA-20 [n=CIA@208.69.182.149] has joined #ubuntu-installer
=== CIA-20 [n=CIA@208.69.182.149] has joined #ubuntu-installer
xivulonevand, cjwatson I'll be away for the next 4-5 days, if there is anything you'd like to discuss or you'd like me to do re lupin merge pls let me know.04:29
cjwatsonxivulon: I've replied to your recent mail04:37
xivulonreading04:37
cjwatson<cjwatson@cairhien ~/src/ubuntu/lupin/gutsy/xinit-ubiquity/etc>$ sh -n init.d/xinit-ubiquity04:38
cjwatsoninit.d/xinit-ubiquity: 63: Syntax error: "fi" unexpected (expecting ";;")04:38
cjwatson(easy fix, remove the stray fi)04:38
xivuloncjwatson, find_preseed is needed to pass a preseed file which is not on the cdrom.04:39
xivulonIn a typical case a run a windows wizard which generates a preseed files and leaves it on the hard disk04:39
cjwatsonah yes04:40
cjwatsonsorry, obviously a brainfart on my part04:40
xivuloncjwatson, I did not fully test the scripts, partly because of lack of time, partly because I still have segfault issues04:40
cjwatsonno worries, I'll fix them up04:40
cjwatsonI think maybe 'automatic' as the boot option rather than '--automatic' would be more usual04:40
xivulonI agree,04:40
cjwatsonor even 'automatic-ubiquity' to be more explicit04:41
cjwatsonsomething like that anyway04:41
xivulonI'll write 2 init scripts when I am back, one to set sysctl and one to turn off hybernation/suspend04:43
xivulonNone of those are really necessary, they could be installed by default, since they will just be skept if root is not on a loop device04:43
cjwatsonhmm04:44
xivulonSomething like: if / on loop file: set systcl, turn off hibernation04:44
cjwatsonwe could hack it in /etc/init.d/sysctl or whatever it is04:44
cjwatsonprobably better to have it clearly separated though04:44
xivulonI think that the hibernation/suspend check might be useful in other cases, so I'd probably have somethink like: /etc/init.d/checksuspend04:46
cjwatsonacpi-support maybe04:46
xivulonacpi-support is overridden since when the sleep script is called it uses a --force parameter that ignores the ACPI_SLEEP/ACPI_HIBERNATE04:48
xivulonif you try to set ACPI_HIBERNATE=false, you can still hibernate from the power manager04:49
cjwatsonI meant putting the init script there04:49
xivulonahh04:49
xivulonyep it makes sense.04:49
xivuloncould you chase mjg59 on suspend with fuse?04:50
cjwatsonI think often one of the things that confuses people about Ubuntu (and indeed Debian) is that we try to spread things out among the packages that would ordinarily be responsible for those areas of functionality, rather than creating a new package for the modifications04:50
cjwatsonyep04:50
cjwatson(I'll try anyway)04:50
xivulonthat at the moment does not work because things are put to sleep in the wrong order, but it can probably be fixed, that would leave out only hibernation04:51
xivulonok I'll take care of the acpi-support script and the sysctl initrd script when I am back.04:52
xivulonIf those go in by default, and the other issues mentioned are addressed there should not be anything left of lupin04:52
cjwatsonI'll beat you to it if I can ;-)04:53
xivulonhope so!04:53
xivulonlaunchpad is a bit moody today!04:54
xivulonanyway the script that disables hibernation/suspend is in http://codebrowse.launchpad.net/~lupin-team/lupin/devel/annotate/geza0kovacs%40gmail.com-20070807030133-r0qkfwbbzrou4n6c?file_id=postinst-20070516225906-ln9g3688zc5narr5-104:56
cjwatsonright04:57
xivulonNote that hibernation should always be avoided when swap is on a file, suspend should be avoided only when fuse is used to mount / (unless mjg59 can fix that)04:57
cjwatsonhello, CIA, please respond04:58
cjwatsonthose do both seem like straight bugs04:58
xivulonSo if you do a loopinstallation within an ext3 host, suspend should work04:58
cjwatsonthough I guess the former is conceptually tricky04:58
cjwatson15:59 <cjwatson> anything feasible to be done05:00
cjwatson15:59 <cjwatson> ?05:00
cjwatson15:59 <mjg59> No05:00
cjwatson15:59 <mjg59> There's some patches in .23 that /might/ help05:00
cjwatson15:59 <mjg59> But the entire model is basically broken05:00
cjwatsonso we'll just turn it off05:00
CIA-20ubiquity: cjwatson * r2196 ubiquity/debian/changelog: formatting05:02
xivulonre dd use to create the image file, I am not sure what is the end result when using dd on top of ntfs-3g/vfat, but that is something that might be worth testing, since zeroing the full image might take some time05:03
evandhuh, shouldn't installer-for-windows be an approved spec for Gutsy?05:03
cjwatsonprobably05:04
evandalso, any objections over me adding not being able to suspend to the release note on w.u.c/InstallerForWindows ?05:04
cjwatsonfine by me05:04
cjwatsonxivulon: yeah, it is a bit slow05:04
cjwatsonon ext3, a sparse file won't actually take up space on the filesystem05:05
cjwatsonso it would be possible to take up space with other files and then run out of space while trying to write to other bits of the sparse file05:05
xivulona sparse file is not good05:05
xivulonwhen you use in a nested setup (ext3 inside a sparse file in ntfs3) performance is terrible, we had that in the past05:07
xivulonIn windows there is a command to preallocate the disk space, and usually writing the last block will "reserve" the full file, not sure if there is an equivalent in linux05:08
xivulonI was hoping that something like `dd bs=1m seek=(n-1)m count=1` would do the trick, but I never tested that.05:10
cjwatsonthere's a posix_fallocate syscall but I don't know how widely it's implemented05:11
xivulonthat would cut down installation time of a several seconds to a few minutes, but of course it's a feature in the nice-to-have camp05:15
xivulonre remounting loop files in rw, I could not do that even with good old ext3 (I am not using ntfs-3g at this stage).05:16
xivulonthe issue seems to be that if you create the loop device on top of a ro filesystem, the loop device is in "write protected" mode, and you cannot undo that05:17
xivulonunless you losetup -d05:17
cjwatsonhave you tried blockdev --setrw?05:18
xivulonnope05:18
cjwatsonmight be worth a shot05:18
xivulonI won't be able to play with it for the next 4-5 days05:19
cjwatsonok05:19
cjwatsonI'll give it a try, should be easy to set up a test05:19
xivulongreat05:20
xivulonanything else you'd like to discuss?05:20
cjwatsonI think I need to adapt that xinit-ubiquity thing to handle KDE too, but again that's fairly straightforward (I have the gist of it in oem-config-dm)05:21
xivulonBy the way, I have not tested xinit-ubiquity at all ;P05:22
cjwatsonheh05:22
cjwatsonthat's ok05:22
cjwatsonI'm more than happy to be presented with even a gash implementation of something that's been on the wishlist for ages05:22
xivulonthat suits me good05:22
xivulonOne last thing.05:22
xivulonAt the moment we check whether the target folder is vergin or not before installing, and if not we end it then and there05:23
xivulonSince we have an uninstallation mode, that is a handy feature05:23
cjwatsonyeah, I saw your mention of that in mail05:24
cjwatsonfalling over with an error at that point is fine by me05:25
xivulonyep 8, I have an hook inside casper/casper-bottom/find-preseed05:25
xivulonbut maybe the check should be done by autopartition-loop05:26
xivulonhave to go now. have a nice day and a great w/e05:27
cjwatsonyou too05:28
cjwatsonautopartition-loop was certainly where I was thinking of doing it05:28
cjwatsondamn05:28
JDam I right in thinking I want to edit debian/d-i/shared/modules/nic-modules to add a new module to the nic-modules udeb?05:35
JDcos I'm sure I did that, but it's not in the resulting udeb and it's not in that file after the build05:36
cjwatsonthat's right05:39
cjwatsonkernel-wedge might've spat out some log messages05:39
cjwatson?05:39
JDerm where's that?05:39
JDlog file?05:40
JDUse of uninitialized value in split at /usr/share/kernel-wedge/commands/gen-control line 36, <KVERS> line 2.05:41
JDis the only thing after "kernel-wedge gen-control > debian/control"05:41
JDalso, is there anything I can do to make it only build the udebs?05:41
JDit's just taken over 3 hours to build05:42
cjwatsonstderr ...05:46
cjwatsonyou might have to poke at debian/rules for that05:46
cjwatsonI'm sure there's either a target for it, or you can just run the relevant commands05:46
JDcjwatson: I had a .build file. debuild++05:47
JDcheers05:47
superm1cjwatson, could you think of any cleaner of a method to skip pages for the mythbuntu UI other than calling ok_handler directly from set_page?  They shouldn't always be skipped, but just depending on when choices are made.05:52
cjwatsonask a fake question from somewhere?05:52
superm1well i still want the questions asked05:52
superm1but i dont want the user to sit at that screen to answer them05:52
cjwatsonoh, I see, other way round05:53
cjwatsonI think evand is closer to that than I am05:53
evandwill reply in ~10 min05:53
superm1k05:55
JDcjwatson: apparently it seems if you change the config.foo files to config.foo.disabled, it won't build them05:56
JDI could be wrong and it could break horribly05:56
=== cjwatson <- not kernel build expert ;-)
evandsuperm1: can you give more context?  when should they be skipped/not skipped?06:02
superm1evand, yes.  so one of the options i provide is a "standard" vs "advanced" install06:02
superm1the standard prefills a bunch of the options on other pages06:02
superm1so the user doesn't have to see them06:02
superm1the way i've been prefilling them previously was just calling the appropriate gtk widget filling functionality, and then "hiding" the page of the gtk notebook.  now that there is a debconf on every page, i can't do it that way anymore06:03
evandhrmm06:04
superm1well at least i can still fill the contents of the page using gtk widget filling functionality06:04
superm1and the debconf questions still get asked properly06:05
superm1but i'd like to still hide those pages06:05
evandcan't you do something in set_page like if not in standard mode, set the current page to X?06:09
superm1well then you still have to hit "ok" to get through the debconf questions for the page your skipping06:10
evandis this updated code in trunk?06:11
superm1let me see if i pushed yet06:11
superm1yea it's pushed06:13
evandok, I need a few minutes to finish up something else, and then I'll look through the code to get a better idea of how to handle this06:13
superm1if you are going to merge it though, ignore the version header at the top of debian/changelog06:13
superm1k06:14
superm1evand, i'm going to have to sign off for a bit.  i'll be back on within an hour or two07:10
=== superm1 [n=superm1@ubuntu/member/superm1] has joined #ubuntu-installer
evandsuperm1: It looks like I wont get time to look at it until much later in the day.  I'll keep you posted.07:57
superm1evand, okay.07:57
=== cjwatson [n=cjwatson@chiark.greenend.org.uk] has joined #ubuntu-installer
=== cjwatson [n=cjwatson@chiark.greenend.org.uk] has joined #ubuntu-installer
=== cjwatson [n=cjwatson@82-69-40-219.dsl.in-addr.zen.co.uk] has joined #ubuntu-installer
=== avoine [n=avoine@69.70.0.36] has left #ubuntu-installer []

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