/srv/irclogs.ubuntu.com/2009/07/13/#ubuntu-installer.txt

CarlFKcjwatson: yeah, I guess the kernel folks would know... and care, etc.  never mind :)05:58
CIA-8grub-installer: cjwatson * r792 ubuntu/ (6 files in 3 dirs): merge from Debian 1.3912:02
CIA-8grub-installer: cjwatson * r793 ubuntu/ (debian/changelog grub-installer):12:10
CIA-8grub-installer: If using grub2, then use ordinary grub-install for mdadm-managed RAID12:10
CIA-8grub-installer: /boot rather than trying to implement it ourselves.12:10
CIA-8grub-installer: cjwatson * r794 ubuntu/debian/changelog: releasing version 1.39ubuntu112:14
merkur2khey all16:30
merkur2kI am trying to run a script from preseed/late_command that needs to give feedback to the user and might need to ask questions. is there a way to get the installer to let the script be interactive, or is there a better way to do this?16:31
cjwatsonwelcome back16:32
cjwatsonwhat release of Ubuntu are you running? (this is relevant to my answer ...)16:32
merkur2kintrepid16:32
cjwatsonhmm, can you consider an upgrade to jaunty? it gets a lot easier if you can :)16:33
merkur2kunfortunately no, not yet. its been a long road getting to intrepid :)16:33
merkur2kif it is of any interest to you, I am working on an installer for LinuxMCE16:35
cjwatsonthat's unfortunate. In that case either some hackiness or some more complex development on your part will be required16:36
cjwatsonthe hacky approach would be to try using debconf-disconnect; it won't clean up the terminal very well, and you won't get a sensible terminal type, so you won't be able to run anything full-screen16:36
cjwatsonyou prefix a command with that and it runs it with stdio disconnected from debconf16:37
merkur2kmy idea is to provide feedback using dialog16:37
merkur2kthis is the alternate installer btw16:37
cjwatsonyou won't be able to do that with intrepid unless you do it the Proper Way16:37
cjwatsonthat being to turn your script into a udeb that ships debconf templates and interacts with the user using debconf16:38
cjwatson(udeb => installer component)16:38
cjwatsonthat will give you something that looks just like the rest of the installer16:38
cjwatsonand you'd have all the same facilities16:39
cjwatsonbut it's undeniably more work than a preseed/late_command script16:39
merkur2kthat is fine, as long as it fits the needs.16:39
merkur2kin all my travels looking for preseed info, i havent seen anything about udebs, is there any documentation you can point me to?16:39
cjwatsonhttp://bazaar.launchpad.net/~ubuntu-core-dev/debian-installer/ubuntu/annotate/head%3A/doc/devel/modules.txt is a technical description, but it assumes you already know about Debian-style packaging16:43
merkur2ki know a little, but maybe thats enough16:44
cjwatsonbasically you build a Debian-style package with some special flags that make it spit out a udeb rather than a deb; the udeb will include some scripts that hook into appropriate places in the installer16:44
merkur2kone of my attempts was a simple deb that contained nothing but a postinst script16:45
merkur2kheh16:45
cjwatsondebconf-devel(7) describes how you talk to debconf16:45
cjwatsonthe hook that corresponds roughly to preseed/late_command is that you drop a script into /usr/lib/finish-install.d/16:47
cjwatsonthe file name should start with a number between 00 and 99 - you'll probably want it to be quite small, preseed/late_command runs at 0716:48
cjwatsonyou write a debian/YOURPACKAGENAME.templates file describing the various dialogs you want to display16:49
merkur2kideally i want to run this after all packages are installed, but before any changes have been made to apt sources.list16:49
cjwatson/etc/apt/sources.list is modified before all packages are installed, so that isn't possible ;-)16:51
cjwatsoncould you be more precise?16:51
merkur2kwell i will be installing a number of packages from an extras pool on the cd, i just want to prevent it from downloading any newer ones that might happen to exist in the repositories16:52
cjwatsonwhere does your user interaction come in?16:52
merkur2kright now there isnt any, but depending on how many network cards are detected it may need to ask the user some questions16:53
merkur2ka few of the steps take a very long time to run too, just want to let the user know whats going on16:54
cjwatsoncould those questions just be asked in the config/postinst script for some package installations?16:54
cjwatsonwhat takes a long time other than package installation?16:54
cjwatson(if anything)16:54
merkur2kat one point it tarballs most of the system, for use as a diskless boot nfs root later16:55
merkur2kthat takes awhile :)16:55
cjwatsonI think it would help me if you could explain everything you're trying to do in one go, rather than in bits and pieces16:55
cjwatsonyou see, what I'm trying to do here is to see whether I can advise you of existing hooks that you could use, which would make your life simpler16:56
cjwatsonyou don't necessarily have to do everything in one piece16:56
cjwatsonfor instance, there are certainly existing hooks for installing extra packages, which take care of displaying progress information and so on ...16:56
merkur2kas far as i am concerned the existing install script itself for this project is a huge kludge and im just trying to hack something together so we can get a beta out the door. i am sure the "right" way is to make more use of pre- and post- install actions in the debs16:57
merkur2kbut as to what it actually does... hmmm16:58
purefusionevand1, mind if I bug you about installing to usb?16:58
evand1purefusion: bug away16:58
merkur2kits really just installing a bunch of packages, with some glue shell script bits inbetween16:58
purefusionevand1, there doesn't seem to be any clear-cut instructions on this page: https://wiki.ubuntu.com/usb-creator16:59
purefusionah, I think I clicked too early17:00
purefusiondidn't realize it was a GUI utility :)17:00
merkur2kwe have been desparately trying to attract qualified developers to the project, but it hasnt been happening :(17:00
cjwatsonmerkur2k: the bunch of packages could fairly easily be installed using the pkgsel/include hook, assuming that you also set up /etc/apt/sources.list using apt-setup's preseeding facilities17:01
cjwatsonthat'll make the rest of the problem a lot simpler, I'm sure17:01
purefusionwait, am I confusing Live USB Creator and USB Creator, evand1?17:01
evand1purefusion: liveusb-creator is Fedora's tool17:02
evand1but it's in the Ubuntu archive, I believe17:02
purefusionah, ok... so I've got the live disc for 9.04 running, how do I use your utility? command line?17:02
evand1System -> Administration -> USB Startup Disk Creator17:03
purefusionok17:03
merkur2kcjwatson: that may help, thanks17:04
purefusionis it possible to install grub on its own, right to the hdd without installing ubuntu on the hdd itself?17:04
purefusion(separate topic)17:04
evand1purefusion: sudo grub-install /dev/THE_DEVICE17:06
purefusionTHE_DEVICE being the active partition of the main hdd, right?17:07
purefusionor do I need to install it to the boot sector?17:07
cjwatsoneither is possible, although there are lots of hidden gotchas with installing to a partition17:07
merkur2kcjwatson: as an example of one of the weird things this install script does, it creates a temporary /etc/default/nis file for the express purpose of preventing ypbind starting after it is installed17:17
=== dpm is now known as dpm-afk
=== robbiew is now known as robbiew-afk
flaviosnmcould some  help me with ERROR 5 - ubuntu installation??20:17
flaviosnmcould some  help me with ERROR 5 - ubuntu installation??20:21
flaviosnmDoes any one know how to repair error 5 during installation? when it has 24% it drop and i have to reboot the machine20:27
charlie-tca!patience20:27
ubottuDon't feel ignored and repeat your question quickly; if nobody knows your answer, nobody will answer you. You can search  https://help.ubuntu.com or http://ubuntuforums.org while you wait.20:27
flaviosnmsorry. it is my first time here....20:29
charlie-tcano problem20:29
charlie-tcaAlmost everybody is a volunteer, and a lot of people are working.20:30
flaviosnmok charlie. I will waiting and searching. thanks20:33
NCommandercjwatson_, any good ideas on what would cause the ia64 livecd to dump into d-i instead of starting the image?21:10
=== robbiew-afk is now known as robbiew
cjwatson_NCommander: I expect it either doesn't have the correct initrd on the CD, or the boot loader is configured to boot the wrong initrd21:41
NCommandercjwatson_, are there any architecture specific bits outside of the kernel needed to start the CD?21:42
davmor2cjwatson_: is it known that ubiquity in karmic has underscores on quit back and forward?21:43
=== cjwatson_ is now known as cjwatson
cjwatsonNCommander: kernel, initrd, boot loader21:44
cjwatsonNCommander: should all be in debian-cd/tools/boot/karmic/boot-ia6421:44
cjwatsondavmor2: not by me :)21:44
NCommandercjwatson, woo, sounds like I get the fun of setting up ubuntu-cd \o/!21:45
NCommanderand setting up a livefs builder21:46
davmor2cjwatson: http://www.davmor2.co.uk/_install.png21:46
cjwatsonok, guess somebody gets the fun of debugging that at some point :)21:46
davmor2cjwatson: should I put a bug together so it doesn't get forgotten?21:47
cjwatsonplease do, yes21:47
davmor2np's21:48
davmor2cjwatson: bug 399005 I added the png to :)21:54
ubottuLaunchpad bug 399005 in ubiquity "Karmic: Ubiquity has developed some underscores on buttons" [Undecided,New] https://launchpad.net/bugs/39900521:54
davmor2cjwatson: on intel because the kms is in the text for hit enter and eject cd are tiny is there anyway this can be altered or is it a set font size?22:13
cjwatsondon't know, sorry22:15
cjwatsonit's probably in the usplash theme22:15
CIA-8user-setup: cjwatson * r194 ubuntu/ (debian/changelog user-setup-apply):22:16
CIA-8user-setup: If a root user is being created so we aren't in sudo mode, configure22:16
CIA-8user-setup: libgksu to use su rather than sudo.22:16
davmor2cjwatson: ta :)22:18
CIA-8partman-lvm: cjwatson * r1217 ubuntu/ (choose_partition/lvm/do_option lib/lvm-base.sh): offer free space for automatic PV setup as well22:23
CIA-8partman-lvm: cjwatson * r1218 ubuntu/lib/lvm-base.sh: local variable tidy-up22:31
CIA-8partman-lvm: cjwatson * r1219 ubuntu/choose_method/lvm/choices: choose_method/lvm/choices needs lvm-base.sh, not just base.sh22:41
CIA-8partman-md: cjwatson * r931 mdcfg-merge/choose_partition/md/choices: drop requirement for mdcfg to exist22:43
xivulonevand hi23:14

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