/srv/irclogs.ubuntu.com/2010/06/04/#ubuntu-installer.txt

cjwatsoncwj: I'd suggest looking at the server logs to see which URL is 403ing09:45
=== ara_ is now known as ara
ogracjwatson, which installer part generates fstab, is that partman or something later (before i search my butt off)10:48
ogra(i dont want to write new code for the preinstalled images if something exists already)10:49
ograah, rootskel10:54
ograhmm, no, that seems to be d-i only10:56
cjwatsonpartman-target11:00
ograyeah, found it by grepping through ubiquity source now11:00
cjwatsonyou can't really run it in isolation from partman, if that's what you're thinking11:00
ogranope, i just wanted to see the code to get an idea for jasper (the initramfs tool for preinstalled images)11:01
CIA-4pkgsel: cjwatson * r161 ubuntu/debian/ (changelog postinst):11:44
CIA-4pkgsel: Install tasksel before doing anything else. This means that we can take11:44
CIA-4pkgsel: it out of the base system, thus saving space on the live CD.11:44
ograhmm, what part of the installer adds the default system groups ? (adm, dialout etc)11:48
cjwatsonuser-setup11:48
ograah, i was looking at user-setup-apply :)11:48
CIA-4pkgsel: cjwatson * r162 ubuntu/debian/changelog: releasing version 0.25ubuntu811:49
cjwatsonev: this works out as about 2MB off the .deb size contributing to the live CD12:00
cjwatsonso not quite as big as I'd hoped, but not to be sneezed at either12:00
cjwatsonit takes 10MB off minimal; 7MB just moves out to standard, and another MB or so to desktop12:01
evso, usb-creator is 1.9 MB :).  Mind if I steal that 2 MB away, or would you prefer it go somewhere else?12:02
cjwatson(methodology: two germinate runs with tasksel+aptitude moved from minimal/standard to d-i-requirements in the second run, and with a modified germinate that ignores the dependencies on those from ubuntu-minimal and ubuntu-standard; then diff -bru on the two outputs and scan visually)12:02
cjwatsonseems a reasonable use for it12:02
cjwatsonI have some other savings in mind anyway12:03
ograhmm, does oem-config make any use of the passwd/user-default-groups value ? or is it expected that this is already set when oem-config runs12:03
evawesome, thanks12:03
evthanks for elaborating as well.  Always good to know these things12:04
cjwatsonogra: it uses the value, in that the first user will be created with those groups; it doesn't set the value though, it's typically just the value from the debconf template unless somebody preseeds it12:05
ograah, cool, so i dont need to bother as long as i run oem-config ?12:05
cjwatsonright12:06
ograperfect12:06
ogramy work gets easier every day :)12:06
twb`Minor gripe: hardy's netboot.tar.gz includes a pxelinux.cfg/default.9600, but lucid's doesn't.12:59
twb`Hm, interesting.  I have two four-port cards, and lucid has managed to assign eth[0247] to one card and eth[1356] to the other.  Hardy at least had the four ports of each card in a row.13:01
cjwatsonpxelinux.9600> removed upstream, by the look of it.13:07
cjwatson  * Note that the pxelinux config file for serial terminals has been dropped,13:07
cjwatson    at least for now, since the split config files made it too difficult to13:07
cjwatson    set up.13:07
twb`upstream meaning debian?13:07
cjwatsonyes, that's as far upstream as the installer goes.13:09
ogracjwatson, am i right to assume that oem-config also sets up sudoers properly for me ?13:11
cjwatsonuser-setup does, yes13:11
ograheh, my jasper-setup sctip boiled down to two functions :)13:11
ogra*script13:11
ogragreat13:11
* ogra cant really belive he only needs to setup fstab and /etc/network/interfaces ... but i dont seem to find anything beyond that13:12
twb`ogra: the latter should be magicked by NM for desktops13:14
ogratwb`, not for loopback13:14
twb`Ah.13:14
ograactually i guess i also need to create /etc/hosts but that should be it13:15
twb`There's now a pam_thingyhost13:16
twb`Make that libnss-myhostname - nss module providing falback resolution for the current hostname13:16
twb`Meaning that you don't need to put yourself into /etc/hosts anymore13:16
ograwell, i'm talking about a preinstalled oem image13:17
ograand localhost needs to be resolved13:17
ograthe tool i'm writing is run from initramfs to do the basic setup before oem-config runs13:17
ogranetcfg in ubiquity relies on the squashfs to have /etc/network/interfaces /etc/networks /etc/hostname /etc/resolv.conf /etc/hosts and copies them over, i need to check which of these i need to manually create on boot13:18
ograhmm13:20
ograi should probably just run netcfg in oem-config and let it do its job :)13:20
cjwatsonnetcfg can be awkward to run directly for one reason or another13:20
twb`Huh.  Last time I looked, casper/live-initramfs generated resolv.conf on the fly iff there isn't one in a module.13:20
ogracjwatson, but oem-config can run the network part of ubiquity, no ?13:21
ograshouldnt that run netcfg-common and create loopback and friends ?13:21
cjwatsonlook at the network bit of ubiquity, it actually does it itself with a comment about how it would be nice not to need to13:22
ograah, great13:22
ograheh, that only leaves fstab then13:24
ograwhich i sadly have to handle in my script since i change the UUID during boot and partition resizing13:24
twb`BTW, why does priority=low now prompt me to choose locales "#" and "#" in addition to the usual ones (such as aa_DJ.UTF-8)?13:39
evcjwatson: what would be a good time for you to talk through this debconf stuff?  I'm free the rest of the day.13:59
cjwatsontwb`: moderately-long-standing localechooser bug, sorry14:00
cjwatsonit's been filed14:00
cjwatsonev: about 20 minutes?14:00
evsurely14:00
twb`cjwatson: OK, it's not bothering me.  So long as someone knows about it.14:00
cjwatsonI think it'll be fixed by a merge, it's just a big ugly complex merge14:01
cjwatsonbug 46512014:01
ubot2Launchpad bug 465120 in localechooser (Ubuntu) ""Choose language" dialog to select additional locales has two "#" locales (affects: 1) (heat: 6)" [Low,Confirmed] https://launchpad.net/bugs/46512014:01
twb`Does d-i use "PXEClient" as its vendor string in DHCP requests?14:02
twb`Because I told dnsmasq to only respond to that vendor, but it was hijacking d-i's DHCP requests14:02
cjwatson"d-i", I believe14:02
cjwatson./dhcp.c:186:                fprintf(dc, "send vendor-class-identifier \"d-i\";\n" );14:03
twb`That's what I thought14:03
twb`Obviously I messed up, or dnsmasq is buggy.  Most likely I messed up.14:03
twb`Hm.  As well as being able to opt-in to some udebs (e.g. sshd), I should be able to opt out of udebs like xfsprogs.14:06
twb`"Based on your present physical location, your time zone is None."14:08
twb`I'm pretty sure I told it I was in Australia already.14:08
twb`I don't like the new chooser where I have to scroll down lots instead of just picking "australia" and "melbourne" separately.14:09
evtwb`: can you put set -x at the top of /usr/sbin/tzsetup, run through the timezone step, and attach syslog to a new bug report?14:47
twb`ev: unfortunately, not right now.  This is my precious new mission-critical router.14:48
evtwb`: no worries14:48
twb`Unless it's acceptable to manually re-run tzsetup after I get to the "hit enter to reboot" step?14:48
twb`I can do that fine, because at that point I don't give a damn what happens in the tmpfs14:48
twb`WTF?  I passed pkgsel/language-pack-patterns= pkgsel/install-language-support= tasks=standard, but it's installing language-pack-en-base15:09
cjwatsonthat'd be pkgsel/install-language-support=false - it's a boolean15:10
twb`I used what the pxelinux.cfg default was15:10
cjwatson(don't know if that's the problem)15:10
twb`Looks like it's =false in text.cfg, I just mis-copied it into my notebook.15:12
twb`I suppose I must have fat-fingered it when I was adding in console=ttyS0 and friends.15:12
twb`Grmph15:14
twb`It's installing ppp now15:14
twb`Once upon a time the minimal install was actually minimal15:14
twb`I should've bothered to write a preseed file.15:16
twb`Is extlinux gonna get into d-i now that pantera wrote kernel.conf.d hooks for it?15:17
twb`Heh, I like how the "grub legacy or 2?" prompt says "don't use 2 in production" but defaults to 2.15:18
twb`ev: looks like geoip.ubuntu.com/lookup gives <TimeZone>Australia/Victoria</TimeZone> for 203.7.155.64, but it should be Australia/Melbourne.15:27
cjwatsonwe're on the point of getting down to a single boot loader - not wild about introducing extlinux to the mix15:30
cjwatsonyeah, the prompt text needs to be updated15:31
twb`Grmpg15:31
twb`grub sucks15:31
twb`It's too complicated and flaky to be doing something as low-level as bootstrapping the kernel15:32
cody-somervillecjwatson, Can grub do isohybrid images?15:32
twb`Anyway, my router is now booting 10.04, so I'm A-OK.15:33
twb`cody-somerville: hybrid as in multi-track?15:33
cody-somervilletwb`, http://syslinux.zytor.com/wiki/index.php/Doc/isolinux#HYBRID_CD-ROM.2FHARD_DISK_MODE15:34
twb`Oh, http://syslinux.zytor.com/wiki/index.php/Doc/isolinux (the BIOS pretends the CD is a ZIP/HDD)15:34
twb`Oh!  It means a single file is both an ISO 9660 .iso and a bootable USB mass storage .img.15:35
twb`That's neat15:35
cody-somervilleVery neat.15:36
cjwatsoncody-somerville: yes, in fact if you install grub-rescue-pc you'll find it's already done15:36
cody-somervilleschweet15:36
cody-somervillecjwatson, so I don't have to post-process the iso like I do with isolinux?15:37
cjwatsonwe need the complexity of grub in many places (sure, most people only need 10%, but they're different 10%s all over the place ...), and it's better to use the same code everywhere to reduce maintenance costs15:37
cjwatsonspeaking as the muggins who gets to do most of the maintenance, at least in Ubuntu, I think I'm not unqualified to comment :)15:37
cjwatsoncody-somerville: grub-mkrescue does it out of the box15:37
cjwatsonput another way: I'm fed up of all the different boot loaders working in four out of five situations.  I want to concentrate on one thing and make it work everywhere.15:39
twb`Yeah, I understand.15:40
twb`It's just annoying that when one drive in my md RAID1 dies, the systems fails to even BOOT because grub is trying to load (hd1,0)15:40
evtwb`: ah, nice catch!  I'll file a bug for that now.15:41
twb`Or when I can't install a new kernel because update-grub is trying to scan a CD drive that doesn't exist for Windows dual-boot partitions15:41
cjwatsonyes, obviously those kinds of things are stupid and I want to get them fixed15:41
cjwatsonbut the difference I've found is that I generally actually can fix them with grub2.  with everything else I generally had to give up.15:42
twb`The other awesome one was when I asked it to install the dos disk label, raid1, ext3 and lvm modules into the MBR, and it exploded because they didn't all fit15:42
cjwatsonyes, well, not much to be done about that except use a bigger embedding area (which in fact we do, if you partition from scratch with >=lucid) or use GPT and a BIOS Boot Partition15:43
twb`It's a PITA to use GPT with a conventional BIOS15:43
evright, bug 589708 created15:44
ubot2Launchpad bug 589708 in tzsetup (Ubuntu) "Wrong timezone location: Victoria (affects: 1) (heat: 6)" [High,Confirmed] https://launchpad.net/bugs/58970815:44
twb`ev: ty15:45
* twb` wonders what the lp-shell equivalent of "bts subscribe" is.15:45
twb`Urk, lp-shell just opens w3m15:45
cjwatsonthough that said the collection of modules you listed seems to work fine right noow15:46
cjwatsonnow15:46
twb`Goddamn web-based apps :-/15:46
cjwatson$ ./grub-mkimage -O i386-pc -d . -o cjwtest.img biosdisk ext2 part_msdos lvm raid search_fs_uuid15:46
cjwatson$ ls -l cjwtest.img15:46
cjwatson-rw-r--r-- 1 cjwatson cjwatson 29463 2010-06-04 15:45 cjwtest.img15:46
twb`cjwatson: yes, I got that particular failure back around 2005 :-)15:46
cjwatsonI wasn't under the impression that GPT was that hard to use with a normal BIOS.  You just need a protective MBR with an active partition in it, which is part of the GPT spec anyway.15:46
cjwatsonthe problem is more that people usually have some other OS installed already and it set things up with MBR15:47
twb`Back then I also had to patch the C code to not think LVM was a physical device15:47
cjwatsonwe couldn't reasonably have used grub2 in 2005 (we did look), but it's come on massively since then15:47
twb`The CD scanning thing, though, that happened a month ago15:48
cjwatsonbug?15:48
cjwatsonbug#, I mean15:48
twb`Um, I was in a hurry so I just dpkg-diverted the "look for other OSes" script15:48
cjwatsonso probably not even grub2 - it'll be a bug in os-prober15:48
twb`That's true15:49
cjwatsonp.s. GRUB_DISABLE_OS_PROBER=true in /etc/default/grub is easier15:49
cjwatson(and will be documented in 'info grub' with the next upload)15:49
twb`Or just uninstall os-prober15:49
cjwatsonwhatever15:49
cwjcjwatson: i don't control the apt repo i am trying to preseed into my install, so i can't reasonably get at the logs. can i turn up the debug in d-i somehow?16:06
cjwatsoncwj: DEBCONF_DEBUG=developer is sometimes useful but I don't know if it will show this16:06
cjwatsonyou could try that though16:07
cwjok16:08
cwji did review the apt-cacher-ng logs, nothing stood out there16:08
ogracjwatson, do you think it would do any harm if i added a dep on oem-config to jasper ?17:17
ograthat will definately make sure its removed with oem-config17:17
cwjcjwatson: now that i look at the installer syslog again, it appears that the 403 error is happening before the preseed configuration is retrieved. https://gist.github.com/8cdc39663420d986f7bd17:18
cjwatsonogra: sounds ok17:19
ogragreat17:19
ograi think then i have the core done :)17:19
ograjust need to test it17:19
cjwatsoncwj: yeah, but it was happening during apt-setup too17:19
cjwatsonI didn't even look at that part of your log earlier - I searched for 'apt-setup (leading apostrophe intentional) and went from there17:20
cwjwell i am going to have to address this via preseed/late_command for now, running out of time to debug17:38
cwjwhich question do i need to preseed to avoid being prompted about how much of the disk to use? i think its LVM that is asking. here's what i have now: http://gist.github.com/42563617:51
cwjsize of volume group to be used17:55
cjwatsonpartman-auto-lvm/guided_size17:56
cwjthanks17:56
CIA-4cdrom-detect: cjwatson * r462 ubuntu/debian/changelog: releasing version 1.32ubuntu518:25
CIA-4cdrom-detect: cjwatson * r462 ubuntu/debian/changelog: releasing version 1.32ubuntu518:32
cjwatsonwhoops, sorry for the dup there18:32
CIA-4cdrom-detect: cjwatson * r459 ubuntu.lucid/debian/ (cdrom-detect.postinst changelog):18:34
CIA-4cdrom-detect: usb-storage sometimes seems to take a while to settle to the point of18:34
CIA-4cdrom-detect: actually exposing block devices, despite the 'udevadm settle' in18:34
CIA-4cdrom-detect: hw-detect. I don't see an easy way to solve this, so, with18:34
CIA-4cdrom-detect: reservations, retry the detection loop three times with a 'sleep 3' in18:34
CIA-4cdrom-detect: between in the event that no devices are found, in the hope that that18:34
CIA-4cdrom-detect: improves matters (LP: #586036).18:34
CIA-4cdrom-detect: cjwatson * r460 ubuntu.lucid/debian/changelog: releasing version 1.32ubuntu3.10.0418:36
CIA-4cdrom-detect: cjwatson * r452 ubuntu.karmic/debian/ (cdrom-detect.postinst changelog):18:44
CIA-4cdrom-detect: usb-storage sometimes seems to take a while to settle to the point of18:44
CIA-4cdrom-detect: actually exposing block devices, despite the 'udevadm settle' in18:44
CIA-4cdrom-detect: hw-detect. I don't see an easy way to solve this, so, with18:44
CIA-4cdrom-detect: reservations, retry the detection loop three times with a 'sleep 3' in18:44
CIA-4cdrom-detect: between in the event that no devices are found, in the hope that that18:44
CIA-4cdrom-detect: improves matters (LP: #586036).18:44
CIA-4cdrom-detect: cjwatson * r453 ubuntu.karmic/debian/changelog: releasing version 1.31ubuntu3.9.1018:44
=== shtylman is now known as pinkrobot0003
=== pinkrobot0003 is now known as shtylman

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