[04:36] I'm having a bit of trouble getting 10.04's installer working right with the serial console on my soekris board here. Anyone here have any experience w/ that and/or can recommend another group? [09:20] hello! [09:21] I am trying to install ubuntu server (natty daily) in some servers with preseed, but in most of the systems it is stuck because it asks for a partition table to use [09:22] could it be that the prior installation (also natty) corrupted the partition table somehow? [09:24] this is the preseed file that I am using: http://paste.ubuntu.com/556098/ [11:10] Not sure this is the place to ask, but this channel seems to be the best place to find technical assistance. [11:13] I'm remastering Ubuntu. One of my very last steps before creating my new ISO, is upgrading all packages (apt-get upgrade). Unfortunately this results in a lot of errors/warnings from dpkg: "dpkg: error processing gconf2-common (--configure): dependency problems - leaving unconfigured". Another common error is this: "dpkg: dependency problems prevent configuration of compiz-gnome: compiz-gnome depdends on libgconf2-4 (>= 2.31.1); however: [11:13] package libgconf2-4 is not configured yet". Are these just warnings, or actual errors which may render my remastered edition of Ubuntu buggy ? [11:38] ara: I'll need to see logs [11:39] Jemt: they're actual errors (unless they got cleaned up later - see whether 'dpkg --configure -a' still produces errors). are you sure you should be using 'apt-get upgrade' rather than 'apt-get dist-upgrade'? [11:39] cjwatson, let me get them for you, thanks [11:40] cjwatson: Nope, not sure. I'm actually trying dist-upgrade now. I'll post the result when it's done [11:41] However, apt-get reported an estimated use of additionally 200 MB disk space. If that's true, upgrading the remastered edition is not an option. [11:41] But let's see how it goes [11:44] cjwatson, http://paste.ubuntu.com/556126/ [11:44] cjwatson, I tried in several servers with the same results [11:48] Jemt: you could remove stale packages afterwards ... [11:48] stale ? [11:48] (that might be mostly a new kernel) [11:48] well, do you understand why dist-upgrade might produce different results from upgrade? [11:48] Actually apt-get removed kernel-headers after upgrading, so it released almost 95 MB [11:49] cjwatson: According to the man it has better conflict resolution. Other then that, I don't know much about it [11:50] Jemt: dist-upgrade is willing to install packages that aren't installed yet, if dependencies require it [11:50] (and also to remove packages if conflicts require it, but that's less important in this case) [11:50] I see [11:50] Yes [11:50] upgrade will only ever install new versions of packages you already have [11:51] this means that if, say, the linux-image-generic package starts depending on linux-image-2.6.35-23-generic rather than linux-image-2.6.35-22-generic, then dist-upgrade will install linux-image-2.6.35-23-generic [11:51] however, it will generally leave the old packages installed too, unless there's a specific reason to remove them [11:51] But I don't see how "apt-get upgrade" can result in dependency problem. I have never experienced anything like that in a normal environment [11:51] that's what I mean by stale packages [11:51] 'apt-get autoremove' may remove some of those [11:52] Ah, okay, I see [11:52] Well, dist-upgrade is what I want then. Never the less, I still get lots of errors. [11:52] it shouldn't normally; I was suggesting dist-upgrade because it's slightly less likely to run into bugs [11:52] ok, if dist-upgrade does the same, then probably what's happening is that some package's maintainer script is failing [11:52] you haven't given me enough of the output from dpkg for me to be able to tell what that is [11:52] I doubt it. I upgraded my host environment without problems [11:53] can I see the full output from 'apt-get upgrade', please? [11:53] Hang on, placing it on pastebin :) [11:54] ubiquity: superm1 * r4483 ubiquity/ (bin/oem-config-remove-gtk debian/changelog): Fix oem-config-remove-gtk for changes in AptClient's commit_packages. [11:55] Unfortunately I didn't pipe the output to a file, so I don't have the entire output, only what's available in my console buffer: http://pastebin.com/Tz6ysqNr [11:55] If you want, I can run the upgrade again on a clean ISO, to produce all the output [11:56] And again, I'm performing the upgrade while remastering Ubuntu (I "chrooted" into the squash-fs) [11:57] Well, the _extracted_ squash FS [11:57] I can't tell from that log - the initial error is before the start [11:58] what you need to look for is the *first* failure [11:58] did you remember to bind-mount /dev, /proc, and /sys into the chroot? [11:58] I don't know if all of those will be necessary, but I wouldn't generally want to try to upgrade things without that [11:58] ara: thanks, this looks rather odd, I'll investigate [11:59] ara: I might be wrong, but I don't think it can have anything to do with the prior partition table [11:59] ara: can I have /var/log/partman as well, in case that's necessary? [11:59] Hm, no, I only bind mount /dev [11:59] cjwatson, sure, do you want me to file a bug against debian-installer? [11:59] I'll try bind mounting your suggestions too, and re-run the upgrade. I'll post the result afterwards [12:03] cjwatson, http://paste.ubuntu.com/556135/ [12:03] I'm away for about 30 minutes. The upgrade should be done then [12:08] ara: sure, this is pretty bizarre [12:08] ara: it should be reproducible without any preseeding, I think? [12:08] cjwatson, I haven't tried [12:08] * ara files a bug against d-i [12:11] ubiquity: evand * r4484 trunk/ (156 files in 3 dirs): Update translations from Launchpad. [12:15] cjwatson, bug https://bugs.launchpad.net/ubuntu/+source/debian-installer/+bug/705377 [12:15] Launchpad bug 705377 in debian-installer (Ubuntu) "Debian installer prompts for partition type when installing Ubuntu server (affects: 1) (heat: 6)" [Undecided,New] [12:15] cjwatson, thanks! [12:16] I'll try it interactively and see what happens [12:39] cjwatson: Alright, update result is now available at http://pastebin.com/rh51MafV [12:40] Initial error seems to be related to dbus [12:40] (Line 1615) [12:41] it might be worth bind-mounting /var/lock and /var/run as well then. however, I don't actually know very much about dbus, and it isn't part of the installer [12:42] all your other problems seem to arise from that [12:42] Okay, I was thinking about trying that too. Wasn't sure whether it could cause other problems though. [12:43] I'm not sure about that, I'm afraid [12:43] After all, the "guest environment" (into which I "chrooted") share resources with the host environment. But it's not a critical computer, so if something breaks, it can easily be restored [12:44] I'll give it a try. Thanks :) [12:59] ara: broken by superm1's latest change to partman-partitioning [12:59] I'll fix it up [13:02] superm1: perhaps check with me before changing d-i components, sometimes they can be subtle ... [13:03] * cjwatson rebases partman-partitioning onto the git migration first [13:07] (though of course it was my fault that ubiquity broke ...) [13:09] partman-partitioning: cjwatson * r899 ubuntu/ (debian/changelog lib/disk-label.sh): [13:09] partman-partitioning: Use 'type' to check for archdetect on PATH, not 'which', which isn't [13:09] partman-partitioning: available in d-i (LP: #705377). [13:10] partman-partitioning: cjwatson * r900 ubuntu/debian/ (7 files in 2 dirs): merge from Debian 79 [13:12] cjwatson: Thank you very much for your help. Bind mounting /var/run and /var/lock solved the problem. I took a look at UCK (Ubuntu Customization Kit), which seems to do the same (except mounting /var/lock - probably not necessary). However, UCK doesn't do bind mounts - it mounts the resources without the --bind argument. Not sure why. But using --bind ensure the use of the same mount options, so I'll stick to that [13:14] cjwatson: Did you find time to look at the e-mail I sent you ? [13:15] not yet, sorry [13:16] No problem. The problem was not as urgent as the one we just solved :-) [13:18] ev: looks like you forgot to push your casper change to lp:ubuntu/casper? [13:18] ev: I've just committed a few other things and got a reject on upload - can you push your branch somewhere and I'll merge and fix it up? [13:18] partman-partitioning: cjwatson * r901 ubuntu/debian/changelog: releasing version 79ubuntu1 [13:30] cjwatson, thanks [13:54] "mount --bind /dev/ extracted_squash_fs/dev" <= Wouldn't you guys expect /dev/pts to be mounted in squash fs too ? [13:54] INstalling a package gave me this error: "Can not write log, openpty() failed (/dev/pts not mounted?)" [13:56] that's a warning you can ignore [13:56] /dev/pts is a separate filesystem; bind-mounting /dev won't bind-mount it too. See the documentation for mount --bind. If you want to bind submounts too then you can use --rbind [13:56] Yes, but I'm still confused. Bind mounting /dev should give me everything in dev, right ? [13:56] Oh [13:56] Thank you [13:57] cjwatson: will do. Sorry about that. I normally have the branch bound, but I had to recreate it recently. [13:58] cjwatson: lp:~ev/casper/whoops [13:58] ta [14:00] cjwatson, oh sorry. i didn't realize something like which wouldn't be available in d-i. [14:00] i'll make sure to test both d-i and ubiquity in the future if changing something that will affect both rather than just ubiquity [14:00] yeah, tools are often pretty restricted [14:00] thanks [15:39] How is /boot/initrd.img-[version]-generic compressed ? The .img extension puzzles me, since .lz is used in LiveCD/Casper [15:40] gzip [15:40] (use the 'file' command) [15:40] the file naming is more or less historical; changing it would have tentacles all over the place so we'd rather not [15:42] I see [15:43] file didn't reveal the compression though [15:43] output: initrd.lz: data [15:45] it might not work on lzma - it works on /boot/initrd.img-blah [15:45] anyway, .lz is lzma compression [15:46] we recompressed the initrd for the live CD to save space, since the space/time tradeoff is different on live cDs [15:46] CDs [15:47] Mmm, okay. The thing is, I just upgraded the remastered edition, which gave me a more recent kernel. I'd better copy that kernel to LiveCD/Casper, to have it boot with the new kernel. But I should probably use the more recent initrd too [15:48] I guess I have to decompress the new initrid.img file and recompress it as lzma [15:49] right, although it's certainly possible to copy it to initrd.gz and change isolinux.cfg if you don't want to bother recompressing it [15:49] Even better. I can simply copy it to .gz ? Why not keep the .lz extension ? [15:50] sorry, .img extension - why not keep that ? [15:50] er, well, it would be pretty confusing to call it .lz if it's gzip-compressed :-) [15:50] Yes, sorry. I wanted to keep the .img extension :) [15:51] I wouldn't advise it - I'm not certain that isolinux can cope with filenames outside the 8.3 format in all cases [15:51] Okay, I'll use .gz :) [15:51] of course it'll be bigger, I don't know what your space pressures are like [15:52] Wow, yes - much much bigger - almost 10 times [15:52] lzma sure is effective [15:53] Well, I think I can squeeze it to fit on the CD [15:54] Hm, an alternative solution would be to hold back the kernel during upgrade, to keep the kernel used on the Live CD [15:54] I'll take a moment to think it over [15:55] 10x would be pretty unusual; it's only 1.4 times bigger with gzip versus lzma here [15:55] (real system initrd, not live CD initrd) [15:56] Mine is 10.762.373 bytes (initrd.img-2.6.35-22-generic) [15:56] Odd [15:57] Do you have the same version ? [15:58] what did you do to test that it's 10x smaller when lzma-ing? [15:59] "ls -la /boot" on my laptop vs "ls -la /LiveCDMounted/casper" on the mounted ISO [15:59] Oh, sorry [16:00] I missed a digit in one of them. Sorry, they are almost identical in size [16:00] Actually the new .img is a bit smaller [16:02] also they don't contain the same things. [16:02] Yes, probably not [16:02] the initrd is built dynamically [16:02] hence why I didn't answer your version question, because it's mostly irrelevant :) [16:02] So it would be different on different computers ?? [16:03] I didn't see any build processes running during upgrade [16:10] yes. that's what update-initramfs does [16:10] Hm, I wonder whether it's a good idea to upgrade the kernel then [16:10] in particular, casper - the component that deals with the special arrangements needed to boot a live CD - lives in the initramfs [16:11] it is not possible to boot a live CD with the same initrd that you use to boot an installed system [16:11] Okay, important point :) [16:11] I would still like to get the most recent kernel, but will it boot with the "old" initrd.lz on the Live CD ? [16:12] no [16:12] at least not if the ABI (the 2.6.35-22 part) has changed [16:12] Upgrading the kernel sounds like a really bad idea then. I'll keep it back while upgrading then [16:13] I'm glad we had this conversation. Otherwise I would have shipped a mess to the school waiting for this customized version of Ubuntu :) [16:59] ev: do you have any ideas on what to do about bug 562312? difficult problem ... [17:02] * ev reads [17:05] I don't suppose we could do something clever with grub2 like get the kernel and initramfs out of the casper-rw ext3 image? Forgive me if that's nonsensical, I'm running almost entirely off coffee today. [17:06] cjwatson: ^ [17:06] ev: yes, but relies on switching to grub2, and we ought to do something about older releases if possible [17:07] it even bit pitti when he was trying to validate a casper SRU [17:07] sure, but we should do both :) [17:07] as in I'm happy to make the UI change as a backport, but want a better solution than handling it in the UI [17:08] actually your suggestion would rely on some kind of union filesystem handling in grub2 [17:08] which seems ... likely to be interesting [17:08] I suppose you could just conditionalise it or something [17:43] can you elaborate? My thought was to try to read it from inside casper-rw if it exists, otherwise look in the normal location. [17:43] is that what you mean by conditionalize? [17:43] sorry for the delay, I was trying to play around with aufs, but it just doesn't like me today [17:44] that's what I meant, yes [17:44] are you happy with that? (If so, I can brain dump onto the bug) [17:44] it's ok for whenever we manage to get to grub2 on the live images, just don't bank on that being soon :( [17:45] sure, I just want to make it clear to everyone that it's the end goal, rather than the ugly UI living forever [17:45] yeah [17:46] could we just cap the amount of space you're allowed to use in casper-rw to allow enough space for a kernel and initrd? [17:46] rather than further uglifying the UI [17:46] sure [17:46] I realise the size is not entirely constant but it doesn't vary all that much really [17:48] I've updated the bug [17:48] thank [17:48] s [17:48] sure thing === charlie-tca is now known as charlie-tca__ === charlie-tca__ is now known as charlie-tca [20:35] cjwatson: Hello again. You mentioned that update-initramfs builds an image specific to my box. Do you know where I can find more information about this? I wonder how the initrd.lz was build for the Live CD, which must be some sort of "generic" ram disk. [20:37] I didn't say it was necessarily *very* specific to your box, just that in principle it can be. [20:37] depends on what's in initramfs.conf [20:37] (/etc/initramfs-tools/) [20:37] we generally use MODULES=most which is pretty generic, but some people have particular needs and strip it down or add stuff or whatever [20:38] Okay, I will take a look at the configuration file [20:38] I see [20:38] the real difference though is that the casper package is installed when building the initramfs for the live CD. [20:38] Oh yes, I forgot [20:38] genericness isn't likely to be a problem; I just wanted to steer you away from the incorrect notion that there was just one initramfs for any given kernel version [20:40] Yes, I get it now. I'll have my computer compile a new custom Ubuntu edition tomorrow. It takes well over an hour, and I'm on my way to bed. Hopefully holding back the kernel when upgrading works. [20:41] ev: could you update umenu/wubi/whatever for the upcoming 10.04.2 point release, please? [20:53] I'm off. Thanks for all your help, watson [20:55] console-setup: cjwatson * r374 ubuntu/debian/ (3 files): [20:55] console-setup: Correct fix for LP: #634402: explicitly check readability of [20:55] console-setup: /etc/default/keyboard and /etc/default/console-setup in initramfs hooks, [20:55] console-setup: rather than trying to guard '.' with '||' which doesn't work [20:55] console-setup: (LP: #701954). [20:56] console-setup: cjwatson * r375 ubuntu/debian/changelog: releasing version 1.57ubuntu3