/srv/irclogs.ubuntu.com/2007/04/24/#ubuntu-installer.txt

=== ubuntulog [i=ubuntulo@trider-g7.fabbione.net] has joined #ubuntu-installer
=== Topic for #ubuntu-installer: Development of d-i and ubiquity in Ubuntu | http://wiki.ubuntu.com/InstallerDevelopment
=== Topic (#ubuntu-installer): set by cjwatson at Fri Jan 5 15:12:40 2007
=== mpt [n=mpt@canonical/launchpad/mpt] has joined #ubuntu-installer
=== harrisony [n=Harrison@unaffiliated/harrisony] has joined #ubuntu-installer
harrisonyi have the live cd but would prefer not to use the gui too install (as my computer has 256mb of ram and dont have the bandwith for the alternate installer10:52
snoopsthe alternate installer is the one you need..01:29
snoopsxubuntu may be more suitable too01:30
harrisonydamn, spend 5 days downloading the installer!01:31
snoopsyou should be able to install it from the live cd with 256mb of ram..it'll just take awhile. From the sounds of it not as long as downloading the other edition01:32
cjwatson256MB installs took about 45 minutes in tests, I think01:41
cjwatsonwe only discovered that particular slowdown (and it's a recent slowdown) quite close to release, and the cause wasn't obvious01:42
=== cr3 [n=marc@pdpc/supporter/bronze/cr3] has joined #ubuntu-installer
=== harrisony [n=Harrison@unaffiliated/harrisony] has joined #ubuntu-installer
=== jetsaredim [n=jgreenwa@pool-141-149-184-76.bos.east.verizon.net] has joined #ubuntu-installer
=== jetsaredim [n=jgreenwa@pool-141-149-184-76.bos.east.verizon.net] has joined #ubuntu-installer
tepsipakkicjwatson: got a minute? I'm merging back to debian the changes in xorg, but jcristau want's to know if the change to x11-common.init ("Only source /etc/default/rcS if it exists, allowing x11-common to be installed by debootstrap.") would break, since the script is 'set -e'?04:56
cjwatsontepsipakki: he needs to read the documentation of 'set -e' more carefully ;-)05:13
cjwatson"When this option is on, if a simple command fails for any of the reasons listed in Consequences of Shell Errors or returns an exit status value >0, and is not part of the compound list following a while, until, or if keyword, and is not a part of an AND or OR list, and is not a pipeline preceded by the ! reserved word, then the shell shall immediately exit."05:13
cjwatsonhttp://www.opengroup.org/onlinepubs/009695399/utilities/set.html05:13
cjwatsonif it breaks then the shell is buggy05:13
cjwatsonif you want to be paranoid, though, then 'if [ -f /etc/default/rcS ] ; then . /etc/default/rcS; fi' is fine too05:14
cjwatsonseems to be a common misunderstanding of set -e ...05:14
tepsipakkiheh, ok. I'll educate him ;)05:17
tepsipakkiactually, he suggested using if, so maybe it's a good compromise :P05:18
cjwatsonfine by me, I'm not religious about using &&05:26
cjwatsonit's certainly not worth the time to persuade anyone about it :)05:26
tepsipakkiactually, he showed a test-case about it..05:27
tepsipakki18:19 < jcristau> $ cat foo.sh05:27
tepsipakki18:19 < jcristau> #!/bin/sh05:27
tepsipakki18:19 < jcristau> set -e05:27
tepsipakki18:19 < jcristau> [ -e /nonexistent ]  && echo a05:27
tepsipakki18:19 < jcristau> $ ./foo.sh05:27
tepsipakki18:19 < jcristau> $ echo $?05:27
tepsipakki18:19 < jcristau> 105:27
cjwatsonthat's only if it's the last command in the file05:28
tepsipakkiok, right05:28
cjwatson$ cat ./foo.sh05:29
cjwatson#!/bin/sh05:29
cjwatsonset -e05:29
cjwatson[ -e /nonexistent ]  && echo a05:29
cjwatsonecho hello05:29
cjwatson$ ./foo.sh05:29
cjwatsonhello05:29
cjwatson$ echo $?05:29
cjwatson005:29
cjwatsonpaste that back to him ;-)05:29
tepsipakkialready did :)05:29
cjwatsonthis is basically a consequence of http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_09_03_0505:32
tepsipakki"got a minute?" was obviously a wrong question.. "could you explain this comprehensively?" would've been correct :)05:34
cjwatsonhaha05:34
=== avoine [n=avoine@69.70.0.34] has joined #ubuntu-installer
cjwatsonyou made the mistake of asking a shell pedant ;-)05:34
tepsipakkiI'll be more careful the next time <g>05:35
=== cr3 [n=marc@pdpc/supporter/bronze/cr3] has joined #ubuntu-installer
=== stgraber [n=stgraber@ubuntu/member/stgraber] has joined #ubuntu-installer
phratmanWhen installing sun-java6-jdk, I have to accept a licensing agreement. Is there any way to tell apt to auto-accept it?07:47
phratmanI want my post installation script to automatically grab that and accept the terms so that the systems are all outfitted with the 1.6 JDK.07:48
phratmanI tried apt-get --force-yes -y install sun-java6-jdk07:48
cjwatsonpreseed the debconf question it's asking07:49
cjwatsonneither --force-yes nor -y will help you; those relate only to questions apt asks itself07:49
cjwatsonpreseeding the boolean question shared/accepted-sun-dlj-v1-1 to true ought to do it07:50
cjwatsonso 'sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true' in the preseed file07:51
phratmanHow would I do that through kickstart / kickseed?07:52
phratmanI can't pass d-i commands to it can I?07:52
phratmancjwatson: By the way, https://bugs.launchpad.net/ubuntu/+bug/10947507:52
cjwatsonyou certainly can pass preseeding commands via kickseed; I wrote a kickstart extension to do that07:53
phratmancjwatson: Is that available as a package or something? Where would I get this extension?07:53
cjwatsonhttps://help.ubuntu.com/6.10/ubuntu/installation-guide/i386/automatic-install.html07:53
phratmanIt's not available in system-config-kickstart from what I've seen.07:53
phratmanAh.07:53
cjwatsonthe bit that starts "A new preseed command ..."07:53
phratmanYeah, gotcha.07:54
cjwatsondon't worry about the 6.10 there; that command's been available since 5.1007:54
phratmanDoes this method also apply to something like krb5-user or anything else that demands user input?07:54
cjwatsonyes, as long as it does so using debconf07:54
phratmanOkay, perfect.07:54
cjwatsonany packages that ask for input using any other method have a serious bug, according to Debian policy for some time, so this is mostly not a problem07:55
phratmancjwatson: Did you get a chance to take a look at that bug listing by the way?07:55
cjwatsonI'm just doing so now07:55
phratmanUnderstood.07:55
phratmancjwatson: Also, do preseed commands apply to post installation scripts as well?07:56
=== stgraber_ [n=stgraber@ubuntu/member/stgraber] has joined #ubuntu-installer
cjwatsonphratman: could you clarify?07:58
phratmancjwatson: Consider if I install ubuntu-desktop through the kickstart menu option, and then apt-get install krb5-user through a post installation script. Will the preseed command cascade down from the installation of ubuntu-desktop to krb5-user as well?08:02
cjwatsonoh, certainly - in fact it doesn't work that way so there's no cascading to be done08:03
phratmancjwatson: In other words, if I want to bypass the debconf prompts in both packages that are prompted from ubuntu-desktop and from krb5-user, do I just enter one preseed command?08:03
phratmanAh, cool.08:03
cjwatsonone preseed command per question to preseed08:03
cjwatsonI would recommend installing krb5-user in %packages though, unless you have to do so conditionally for some reason08:03
cjwatsonthat way you'll get a progress bar and such08:04
cjwatson(well, you probably don't care. but it's still easier.)08:04
phratmanWell, I didn't see a %packages option in system-config-kickstart.08:04
phratmanIt exists in Redhat's configuration editor, but not Ubuntu's.08:04
cjwatsonsystem-config-kickstart is regrettably incomplete in Ubuntu, but you can just edit it into the .ks file08:04
phratmanIs there any documentation on what all I can preseed?08:04
cjwatsonit's in the installation guide08:05
cjwatsonhttps://help.ubuntu.com/6.10/ubuntu/installation-guide/i386/appendix-preseed.html08:05
cjwatsonthere is no authoritative complete list, though, because it's whatever packages choose to provide08:05
cjwatsonmaybe one day we will figure out a way to index it all and remove the non-preseedable cruft08:06
phratmanAre you the only person who works on kickstart / kickseed?08:07
phratmanI noticed someone else was recently added to your list of developers, but all the major fixes for the installer thus far have come from you.08:07
cjwatsonI'm the only person at the moment, but Evan is going to be full-time soon and I'm hoping he'll find time to do some work on automated installation08:09
cjwatsonhis primary responsibility is ubiquity though08:09
cjwatsonI am looking at your bug BTW, but need to knock together a test rig in order to respond, which I'm working on now08:09
phratmanI replicated it at home too, but I can't confirm my own bugs.08:09
phratmanI'll be back later.08:10
cjwatsonI'm not bothered about the confirmed state there08:10
cjwatsonshort answer is it's a known documented omission, but I'll try to find a workaround for you08:10
cjwatson(if you look at the logs you should see error messages in there noting that --onpart doesn't work)08:11
=== philwyett [n=philip@bb-87-81-146-45.ukonline.co.uk] has joined #ubuntu-installer
=== philwyett [n=philip@bb-87-81-146-45.ukonline.co.uk] has joined #ubuntu-installer
cjwatsonphratman: I've responded to your bug in (I hope) sufficient detail to let you work around it if you want09:34
cjwatson(nasty, nasty workaround, but still)09:36
=== avoine [n=avoine@69.70.0.34] has joined #ubuntu-installer

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