/srv/irclogs.ubuntu.com/2007/10/28/#ubuntu-installer.txt

=== compbrai1 is now known as CompBrain
=== joejaxx_ is now known as joejaxx
xivulonevand ping18:01
xivuloncjwatson ping18:24
evandxivulon: pong18:26
xivulonhey evand couple of quick questions18:29
xivulona few users reported errors with m-a and wubi18:29
xivulonUnable to open the registry file at '/mnt/migrationassistant/WINDOWS/system32/config/software'18:30
xivulonI think the path case is the issue18:30
xivulonbut that make the installer stop18:30
xivulonhow can I go around that for the time being? Do you know the relevant file on top of your head?18:31
xivulonIssue 2: I'd like to silence the dialog that complains about security.ubuntu.com being unreachable, can I preseed that?18:31
cjwatsonapt-setup/security_host18:32
xivulonthanks chwatson18:32
cjwatsonactually, no18:32
cjwatsonapt-setup/service-failed18:33
cjwatsonexcept that's in hardy :)18:33
cjwatsonuse apt-setup/security-updates-failed in gutsy18:33
xivulonwhat value do I preseed to make it skip?18:33
evandxivulon: that error alone will not make the installer stop.  I'd need to see the full logs.18:33
cjwatsonanything, it just needs to be seen. the empty string would be traditional18:34
cjwatsond-i apt-setup/security-updates-failed note18:34
xivulonevand see http://ubuntuforums.org/showpost.php?p=3638010&postcount=10118:34
xivulondon't have the syslog but can ask the user that reported that18:35
xivulonm-a works well for me18:35
xivulonIssue 3 is that when ntfsresize fails, users are shown posix_filesystem_required18:36
xivulonthat message is quite confusing, since what they should see is "Please run chkdsk /r from windows and reboot again into Ubuntu"18:37
xivulonntfsresize --info18:37
xivulonIssue 4: not sure how to get right the grub-drive, the drive order of what is seen by grub4dos and what is seen from linux is not always the same18:39
xivulonthat's it!!18:39
xivuloncjwatson, can I show a custom message in ubiquity from autopartition-loop and force ubiquity to quit?18:42
xivulonthat is to go around #318:42
CompBrainSo, Two Questions: 1) is there a python parser or generator for preseed configuration files 2) Is there a python parser for template files, and whats the easiest way to amass a collection of them18:44
evandCompBrain: I am unaware of any tool to generate preseed files.  The closest thing is the kickstart GUI to generate kickstart files that the installer can handle.18:45
CompBrainOk, I borrowed pseudo code from debconf-(get,set)-selections and build a module for that purpose18:45
evandplease keep in mind that debconf doesn't have to be flat files forever, so it's best to interface directly with the existing tools so that you're well insulated from any changes to the underlying database format.18:47
CompBrainI'm mostly interested here in building a preseed configuration widget18:47
xivulonevand is the msg above enough for you?18:52
evandxivulon: what message?18:53
xivulonhttp://ubuntuforums.org/showpost.php?p=3638010&postcount=10118:57
evandxivulon: http://ubuntuforums.org/showpost.php?p=3655006&postcount=11318:58
xivulongood18:59
xivulonBy the way more than a failure I guess the installer would just sit there when in automatic-mode19:00
xivulonIf I wanted to display a message box in Ubiquity, from within autopartition-loop what would be a good route?19:01
xivulondb_input?19:01
xivulonAnd to make ubiquity exit?19:02
cjwatsonCompBrain: you'd have to develop it19:06
cjwatsonI doubt it would be in python; that's the implementation language of neither debconf nor cdebconf19:06
cjwatsonyou can use debconf-copydb to help19:06
xivuloncjwatson I notice that grub-installer uses an existing device.map, how is that generated?19:30
cjwatsonxivulon: grub-install (from grub) generates it19:31
xivulonhaving a look19:32
xivulonhmm cannot find where that is actually generated19:36
xivulonI can see line 413: echo "(hd0) $bootremovable" > "$device_map"19:36
xivulonbut that does not look like it...19:36
cjwatsonin turn, it gets grub to do it19:40
cjwatson    $grub_shell --batch $no_floppy --device-map=$device_map <<EOF >$log_file19:40
cjwatsonquit19:40
xivulonhmm that's similar to what I am using19:43
xivulonecho quit | grub --batch --device-map=/boot/grub/device.map19:43
xivulonbut I end up with disks that do not match what is seen by grub4dos (at least accordingly to user reports)19:43
xivulonhd0 as seen by grub4dos becomes hd1 by the time I generate device.map19:44
xivulonnothing I can reproduce on my machines...19:45
xivulonam I missing anything?19:46
foonuxHello all.  I've got a quetion related to installing ubuntu(specifically the gutsy ubuntustudio.iso) From a usb-stick.  I've got syslinux working and I'm using the initrd and vmlinuz from hd-media however the iso scan is failing to load the iso file on the stick.  I set the ramdisk_size to 850MB in my syslinux.cfg,22:06
foonuxAnyone had any issues getting this to work before?22:06
foonuxI'm wondering if there the debian-installer doesn't recognize the non-standard ubuntu iso?  Or mayber the iso should be renamed in 8.3 (dos) format...22:08
foonuxYes, the file name does in .iso. :)22:08
foonuxHello?22:18
xivulonwhat iso are you using? is it the alternate one?22:21
foonuxYeah, the alternate dvd iso.22:22
foonuxIt seems to be the only one to download too...22:22
foonuxIts the ubuntustudio-7.10-alternate-i386.iso22:23
xivulondon't remember on top of my head what checks are done, one sec22:24
foonuxCool, thanks!22:24
xivulonit checks for .disk/info (which should be there)22:27
xivulonand for the existence of /cdrom/dists/$distlink/Release22:28
foonuxI can mount the .iso real quick and double check...just a sec22:28
foonuxRelease is there.22:29
xivulonallowed distros are determined by the line "for distlink in stable testing unstable ; do" in iso-scan.postinst22:29
foonuxWhat did you mean by .disk/info though?22:29
xivulonit's a file that should be in the folder .disk within the cdrom22:30
xivulonbut the reason might be a mismatch between the distlink in the initrd and the one in /cdrom/dists22:31
foonuxTop-level of the iso contains the folders: dists, doc, install, isolinux, pics, pool, pressed and the files: cdromupgrade, md5sum.txt README.diskdefines22:31
xivulonls -al22:32
xivuloncat .disk/info22:32
foonuxYeah, .disk is there. cat output: Ubuntu-Studio 7.10 "Gutsy Gibbon" - Release i386 (20071015)22:33
xivulonas mentioned, you have to check distlink in iso-scan.postinst vs folders in /cdrom/dists22:34
foonuxAnyway I can make a modified initrd to match the distlink in the cdrom?  Or vice-versa?22:34
foonuxAh22:34
xivulonprobably easier to do an initrd... certainly much faster22:35
foonuxOk.  How do I check the distlink in the initrd?22:36
foonuxFind the source I'm guessing?22:36
xivulonor extract the initrd files22:38
foonuxIs there a quick way to do that from the term?22:40
foonuxKonqueror doesn't seem to want to do it.22:41
xivulongunzip -c -9 $initrd | cpio -i -d -H newc --no-absolute-filenames22:45
foonuxOk, cpio gave me two Operation not permitted errors for dev/console and dev/null but that shouldn't matter.22:47
foonuxI can't seem to find iso-scan.postinst22:57
xivulonIf my memory serves me well should be in /var/cache/lib/apt/23:01
foonuxHeh, /var/cache/anna contains nothing, but /var/lib/dpkg/info has it.23:04
xivulonyeah that's the one23:04
foonuxI'm lessing it now.23:04
foonuxunder the register_cd() funtion I've found the following line:23:05
foonuxfor distlink in stable testing unstable ; do23:05
foonuxrelfile=/cdrom/dists/$distlink/Release23:06
foonuxif [ --e $relfile ] &&23:06
foonuxegrep -q 'Architectures:.* '$(udpkg --print-architecture)'( |$)' $relfile23:07
foonuxthen23:07
foonuxComment are as follows:23:17
foonux        # Make sure that the iso is usable for the architecture. If so,23:17
foonux        # set the suite and codename to the suite/codename that is on the CD.23:17
foonux        # This assumes that there will be no more than one distribution on23:17
foonux        # the CD, and that one of the testing, stable, or unstable links will23:17
foonux        # point to it. Since the CDs currently have many links, parse the23:17
foonux        # Release file to get the actual suite name to use.23:17
foonuxWell from what I can tell they match.23:23
foonuxIt seems that it reads the Release file on the cdrom to see and then Checks to make sure the given iso file matches the Ubuntu release naming convention.23:25
foonuxAnd the Release file reports it as simply a standard release of Ubuntu 7.10.23:26
foonuxSince that's the case I'm going to shorten the name of the iso file on the usb-stick and see if that turns the trick.23:26
foonuxThanks for all the help!!23:27

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