/srv/irclogs.ubuntu.com/2008/01/16/#ubuntu-installer.txt

danpsure, i can do that tomorrow. thanks for thinking about it :)00:00
danpunless my early script errored, though, i didn't see anything in syslog from it00:00
steltAt what site can i see changes in the installer ?   And how can i profit from them? As i'm working with the liveCD, cause the installer crashes on partition stuff00:05
=== cjwatson_ is now known as cjwatson
exodoshi, the version of gutsy kernel was upgraded to 2.6.22-14.47, but Packages file in gutsy/main/debian-installer/binary-i386/ is not aware of this change12:40
exodoscan anybody take care of this?12:40
exodosgutsy/main/installer-{arch}/current/images/ should be also updated I think12:42
cjwatsonno, that's not correct12:42
cjwatsongutsy wasn't changed - a new version was uploaded to gutsy-security and gutsy-updates12:43
cjwatsonit would be wrong to change dists/gutsy/12:43
cjwatsonI think we would only worry about uploading a new set of installer images if the changes involved a remote security vulnerability that could be exploited during installation12:44
exodosbut is it possible to include 2.6.22-14.47 in gutsy/main/debian-installer/binary-i386/Packages at least12:46
exodosas current one makes ubuntu mirrors based on Packages files (like apt-mirror) unworkable with installer12:48
cjwatsonno, I'm afraid it isn't12:54
cjwatsondists/gutsy is absolutely fixed and unchangeable12:54
cjwatsonI've heard some reports of bugs like this, and I think it may be down to a bug in the mirroring tools; can you reproduce the problem with the master archive?12:55
cjwatsonif a mirroring tool produces a result that doesn't work but the master archive does work, then it is undeniably a bug in the mirroring tool12:55
exodosok, i will check this12:56
exodosis gutsy-security or gutsy-updates included in installer sources.list?12:57
exodosbecause 2.6.22-14.47 is trying to be installed now12:58
cjwatsonthe installer does use gutsy-security and gutsy-updates13:00
cjwatsonif that isn't part of your mirror, then you need to add it13:00
exodosok, I think that should solve it13:02
exodosadding main/debian-installer from gutsy-secutiry and gutsy-updates to mirror fixed my problem13:17
exodosthanks cjwatson13:17
cjwatsongood13:26
danpcjwatson: i put my syslog up at http://glueless.net/preseed/14:56
danpDHCP shows up a couple times near the end since i was trying to get the logs accesible14:59
danpafter i let DHCP finish it did complain about the hostname string i have set in my early script15:00
danpbut it still did DHCP15:00
twbNow my x login looks beautiful - completely black except for "Login:" and then "Password:"15:09
xivulonevand, any progress with the patches?15:14
cjwatsondanp: the problem is that netcfg isn't installed when that preseed file is handled, so all your db_set calls fail because the questions don't exist. I'd recommend instead either just putting all that stuff into the preseed file, or (if it needs to be conditional) piping stuff to debconf-set-selections which will deal with creating the question structures for you.15:14
twbOops, wrong channel.15:15
evandxivulon: I merged some of your partman-auto-loop changes yesterday, I'm looking over bug 151579 right now, actually15:16
ubotuLaunchpad bug 151579 in wubi "umountfs must check whether a mountpoint contains a loopmounted root file" [High,Fix committed] https://launchpad.net/bugs/15157915:16
evandxivulon: why is the /host/boot situation needed?  It seems like quite the special case that boot would be a subfolder of the host filesystem.15:17
evandalso, why is the full path needed for sendsigs.omit'ing ntfs-3g and ntfs?  Is there another process with the same name running at the same time as ntfs-3g?15:19
cjwatsonthe full path isn't needed, I took that out, didn't I?15:19
evandI'm assuming it isn't, I left that part of the merge out.15:19
xivulonevand don't see /host/boot in the patch for 15179, what are you referring to?15:19
evandxivulon: sorry, that was poor transitioning.  I'm asking you about other bug reports.15:20
xivulonah15:20
xivuloncan you remind me which one?15:21
evandSpecifically, 173659 and...15:21
evandI don't see a bug report for the latter, but it's your usage of the full path for sendsigs.omit in your partman-auto-loop.lupin-support branch.15:22
xivulonhttp://codebrowse.launchpad.net/~ago/partman-auto-loop/lupin-support/annotate/ago%40nbago-20080114235447-9rmsbro57lb2zsru?file_id=hostboot-20071221000351-3qf78yoaep16wys3-215:22
xivulonthat's the new code for fstab.d15:23
evandindeed, I don't see why the use case for that is necessary.15:23
evandand I'm asking you to explain why you need /boot to be a subfolder of the host filesystem.15:24
xivulonbecause in loopinstallations boot has to be an ntfs folder15:24
xivulonso it can be accessed by grub4dos15:24
evandah, argh.15:24
xivulonit cannot be inside the loopfile15:24
xivulonso we need to bindmount in fstab15:24
evandfair enough :/15:24
evandso regarding your partman-auto-loop.lupin-support branch, is there any reason why you're specifying the full path or is that just leftover from an earlier version?15:26
xivulonyou mean for sendsigs?  no reason on top of my head15:26
evandok, I left that out when I merged as its not necessary, I just wanted to check with you to make sure there wasn't some reasoning that I was missing.15:27
evandthanks for clearing those up15:27
xivulonre 15179 by the way use the patch mentioned in the last-1 post15:27
xivulonit is more generic and should be closer to what cjwatson suggested15:28
evandindeed, that's what I was working with15:29
xivulonin fact it's not a patch, well insertion points should be clear15:29
xivulonecho $skip_devices | grep -qs $DEV"$" && continue15:29
xivulonthat goes inside the loop at the top, the rest goes before the loop15:29
xivulonit basically skips all mountpoints that appear in /proc/mounts before /15:30
xivuloncjwatson I assume that is what you suggested15:31
cjwatsonIIRC yes15:32
xivulonevand note that 173659 involves 2 files in partman-auto-loop/lupin-support: mount.d/70bind and fstab.d/hostboot15:40
evandindeed15:41
xivulonin mount.d you might want to also check type: [ "$type" == none ] || exit 115:50
xivulonmount.d/70bind and it is [ "$type" = none ] || exit 115:56
danpcjwatson: so i can send those same answers to debconf-set-selections in my early script and it should work?16:09
cjwatsondanp: yeah16:11
danpawesome, thank you. i'll give that a shot16:16
danpit's been driving me bonkers :P16:16
cjwatsonyou might also find it illuminating to cat /bin/debconf-set-selections in the installer; ignoring the rather verbose parsing code, you can see how it uses debconf16:24
danpit's looking like something like 'netcfg netcfg/disable_dhcp boolean false' would do it16:25
xivulonevand have added a comment to Bug #15157916:27
ubotuLaunchpad bug 151579 in wubi "umountfs must check whether a mountpoint contains a loopmounted root file" [High,Fix committed] https://launchpad.net/bugs/15157916:27
cjwatsondanp: d-i rather than netcfg at the start of the line (for arcane reasons) but yes16:27
cjwatsondanp: err, and you want true not false?16:27
evandok16:27
xivulonit contains the patch for umountroot, so that any filesystem still  standing gets remounted r/o (as opposed to doing that only for /)16:27
danpcjwatson: oh, right. i was looking at the output of d-g-s on another machine16:28
cjwatsonso 'd-i netcfg/disable_dhcp boolean true' to clarify16:29
xivulonI did not test that last patch16:29
danpcool16:30
danpwould that also work for things that are available when the preseed file is loaded? like if i wanted to just generate one big input to d-s-s16:31
danpor do i have to use db_set for those things16:31
cjwatsondebconf-set-selections is what's used for the preseed file itself; you can use it for anything16:31
xivulonevand for autopartition-loop note that I submitted a change 2 days ago', http://codebrowse.launchpad.net/~ago/partman-auto-loop/lupin-support/revision/4116:31
cjwatsonit is a superset of db_set16:32
cjwatsonI would put anything unconditional into the main preseed file, but that's just me16:32
danpright16:32
xivulonthe issue was that when I called requires_disk_space, I checked for the existance of loopfiles in /host, but /host was not avalaible at that stage, so had to shuffle things around16:33
evandxivulon: I already merged those changes.16:35
xivulongood16:35
evandcjwatson: any thoughts on how I should proceed with bug 183426 (basically, partman runs ridiculously slow for calc)?  Looking over the logs, nothing jumps out, and I'd hate to make him run through another install to get an strace or set -x on whatever part of partman is hanging.17:05
ubotuLaunchpad bug 183426 in ubiquity "[hardy] alpha-3: i386 desktop cd - partition gui hangs" [Undecided,New] https://launchpad.net/bugs/18342617:05
danpcjwatson: success! thank you very much17:08
danpmy simple static test worked, now i can move back to the boot param-based stuff i was doing17:08
danpis there a way to mix information from DHCP and static configuration? say, if i wanted to provide a hostname and IP but have everything else (netmask, gateway, domain, etc.) provided by DHCP17:11
danpbut in the end i want a static interfaces file17:11
evandxivulon: What was the reasoning that Szabolcs gave for formatting the file rather than the loop device?17:27
xivulonHe said that it was safer to format the file directly without loopdev intermediaries, I never really digged any further simply changed the code17:31
xivulonThe patch by the way also add some safety net, if the host device get formatted instead of the loop file people are not going to be too happy17:32
evandhrm, I'll have to follow up with him on that as I got an inquiry as to why it was necessary.  Is email the best way to reach him, or is he on IRC as well?17:33
xivulonI usually email him17:33
evandok, thanks17:33
xivulonszaka@ntfs-3g.org17:33
xivulononce you are there you may ask if there are any relevant upgrades to ntfs-3g which are worth considering for inclusion (to which of course he'll reply yes)17:34
xivulonI'd be particularly interested in fallocate and fschk and safety of write operations on non-zeroed/non-contiguous loop-files17:35
evandI thought fallocate wasn't in the mainline kernel yet?17:35
evandsomething about and endless bikeshed over arguments to it17:36
evandan*17:36
xivulondid not follow that, never mind than17:36
xivulonIIRC the suggestion came when I was asking about possible solutions re system freezes users reported during I/O operations. It was one of the things he asked me to change, it did not fix the issue (turned out to be a 2.6.22 kernel problem) but I left the code there anyway since my understanding was that it was safer anyway17:42
xivulonand did not seem to have any negatives17:42
evandCan I get another pair of eyes on this, does this look reasonably correct? cjwatson? http://pastebin.ubuntu.com/3610/18:31
evandxivulon: your patch failed in the case of there being nothing before / as NR is the number of lines processed which ends up being all of them18:32
cjwatsonevand: hmm, the second field of /proc/mounts isn't necessarily unique so I'm unsure about that18:35
evandxivulon: actually, that assertion is wrong, but it still fails18:35
evandah, hrm18:35
xivulonhmm it works for me18:36
xivulonyour version though returns only /18:36
evandxivulon: it fails if the second field is not unique, which as cjwatson points out, so does mine18:36
xivulonawk '$1!~"^rootfs" && $2=="/" {print NR}' /proc/mounts18:39
cjwatsonevand: instead of reading from /proc/mounts as it does, why not arrange to read from the output of sed -n '/^rootfs/,$p' /proc/mounts ?18:39
cjwatsonyou don't need to mess around with line numbers :)18:40
cjwatsonjust "print from ^rootfs to end of file" is what you want18:40
cjwatsonanyway, got to go, see you tomorrow18:40
evandah, good call, thanks!18:41
xivulonyou mean in the above you have more than 2 mntpoints as / ?18:41
evandenjoy your evening, goodbye18:41
evandxivulon: yes18:41
xivulonone being rootfs18:41
xivuloncan we have a list of devices that are not "real" devices?18:42
xivulondisk devices I mean18:42
evandxivulon: for example, I have:18:42
evandrootfs / rootfs rw 0 018:43
evand/dev/disk/by-uuid/0666f72f-99e1-4948-b718-220f48093423 / ext3 rw,errors=remount-ro,data=ordered 0 018:43
xivulonrootfs should be skipped18:43
evandyour command returns 6, the position of the latter18:43
xivulonwhich is correct18:43
xivulonshould return the position of the "real" root-device18:44
evandah, my mistake18:44
cjwatsonxivulon: you don't need to have a list of devices. you just need to trim everything above ^rootfs out of /proc/mounts before unmounting stuff. no complexity beyond that is required.18:45
xivulonI trimmed everything about "real" /18:45
xivulonas opposed to rootfs18:46
xivulonI trimmed everything ABOVE "real" root device18:47
xivuloni.e. in the case of evand everything above and including /dev/disk/by-uuid/0666f72f-99e1-4948-b718-220f48093423 is NOT unmounted18:47
xivulonI think that is correct18:48
cjwatsonthere's no need to explicitly skip rootfs because the code inside the loop already does that18:49
cjwatson                case "$MTPT" in18:49
cjwatson                  /|/proc|/dev|/.dev|/dev/pts|/dev/shm|/proc/*|/sys|/var/run|/var/lock)18:49
cjwatson                        continue18:49
xivulonhmm18:49
cjwatsonanyway, really gone18:49
xivulonthe root_line looks for the line number of the real root18:49
xivulonhence it has to ignore rootfs18:49
xivulonthat is the point to trim from18:50
xivulonwhatever is above that point is not unmounted, if rootfs happens to be above it will be skept18:50
xivulonin fact I think it was your suggestion to ignore rootfs and focusing on / when determining what chunk of /proc/mounts to skip18:51
xivulonevand any q on the code? I think it is correct20:11
xivuloncjwatson re list of devices, that is just another way of splitting /proc/mounts in 2, the list contains the devices of the first chunk of /proc/mounts (containg everything up to and including root) that have to be skept20:13
xivulonlooping through the remaing chunk of /proc/mounts would yield same results20:14
xivulonhttp://paste.ubuntu-nl.org/52193/ for instance does the same thing of the patch submitted20:15
evandxivulon: I don't see anything particularly wrong with it aside from it no longer being explicit in what mount points its skipping, but I want to wait for cjwatson to look it over before I commit it as this is a pretty important package we're messing with.20:28
xivulonThis is safer: http://paste.ubuntu-nl.org/52195/20:31
xivulonin case someone has 0 or 3+ root lines in /proc/mounts (for reasons I ignore)20:32
xivulonwe can move to the grub patches then =)20:33
evandheh ok20:33
xivulonhave to go now will be back in 1/2 hour or so20:33
evandok20:33
xivulonevand in autopartition-loop>setup_loop I would keep [ "$1" != 0 ] || return21:16
xivulonit avoids having a recipe with 0 sized /home21:16
xivulonfor instance21:17
evandah, then this also needs to be changed:21:17
evand        if [ ! -f "/host$path" ] && [ $1 -gt 0 ]; then21:18
evandas we've already established by that point that the size is not 0.21:18
evandok, fair enough21:18
xivulonthe one at the top catches both pre-existing images and images to be created21:18
xivulonthe one in the if sentence works only for new images21:19
evandright, I'm saying that the if statement can be shorted to just the file test21:19
evandas the size check is redundant21:20
CIA-22grub-installer: evand * r721 grub-installer.ubuntu/ (debian/changelog grub-installer): * Handle cases where /boot is bindmounted (LP: #181658).21:25
xivulonif the size check is on top sure21:27
evandindeed21:28
CIA-22partman-auto-loop: evand * r39 partman-auto-loop.ubuntu/autopartition-loop: Fix size test in setup_loop.21:28
Thugacationhey can someone help me with a problem21:48
evandplease don't ask to ask a question, just ask it.21:52
Thugacationok but it's stupid21:54
Thugacationwhen i try to start wubi-cdboot.exe it gives me error message "Could not find any appropriate CD"21:54
evandxivulon: ^21:55
Thugacationwhy does xivulon know all about the installer21:58
xivulonThugacation, the CD has to be in the tray21:58
evandThugacation: xivulon is the author of Wubi.21:58
cjwatsonxivulon is one of the wubi team21:58
Thugacationwhy can't i just boot the installer from windows21:59
cjwatsonwubi *is* booting the installer from Windows21:59
xivulonwubi-cdboot is designed to assist those people that cannot boot from CD21:59
xivulonit basically boots from HD and then continues off the CD22:00
xivulonwithout editing the bios22:00
cjwatsonif you prefer to boot it natively and are prepared to repartition, you can certainly also do that; set your BIOS to boot from CD and reboot22:00
cjwatsonthat is indeed the standard way to start Ubuntu22:00
xivulonwubi.exe (downloaded from the website) works off the HD solely22:00
Thugacationso i can install it without having to burn any CD's22:01
Thugacationbecause i dont have cd's22:01
cjwatsonfor that, you need wubi proper, not wubi-cdboot22:01
xivulonthat cjwatson reminds of bug #18173422:01
ubotuLaunchpad bug 181734 in casper "Prompt the user to insert a CD if a live media is not detected" [Undecided,New] https://launchpad.net/bugs/18173422:01
cjwatsonas xivulon says, you can download it from wubi-installer.org22:01
Thugacationok thanks for your helps22:02
xivulonnp22:03
Thugacationso if i have 2 hard drives... a 200gb for windows and a 80gb for ubuntu... i can install linux to the 80gb via wubi-installer right22:07
xivulonyes22:07
Thugacationyes i see the screenshots thank u22:08
xivulonwell in fact wubi is for installing ubuntu inside of windows22:08
xivulonwithout changing the partitions22:08
xivulonbut22:08
xivulonit you already have a partition allocated exclusively for ubuntu then a proper installation is better22:08
Thugacationa proper installation with a CD huh22:09
Thugacationdamn guess i shall go buy some22:09
xivulonyou can use unetbootin (a spinoff of wubi that allows to install via netboot to dedicated partition)22:10
xivulonI might add netboot to wubi but so far it's not planned22:10
xivulonnetinstall I mean22:11

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