/srv/irclogs.ubuntu.com/2008/05/08/#ubuntu-installer.txt

Zeluterm, I get 'debugshell just booted' but I have no keyboard input..00:02
Zelutyeah, debugshell looks broken to me.. "sh: can't access tty; job control turned off"00:04
Zelutcjwatson: what would be the preferred way to run a command inside /target?  do I need to chroot /target; command(s) or...?00:08
cjwatsonthat's not broken00:10
cjwatsonthe can't access tty message is just a random warning, ignore it00:10
cjwatsonwell, ok, no keyboard input is broken :)00:10
cjwatsonthat might be due to using a USB keyboard00:10
ZelutI'd like to ignore it if my keyboard input would work00:10
cjwatsonif so, plug in a PS/2 keyboard if you can00:11
Zeluti doubt I have one00:11
cjwatsongenerally use 'chroot /target command' (NO SEMICOLON) unless the command uses debconf; if the latter is the case then talk to me00:11
cjwatsonwell, it's possible to build a new initrd but that's a whole lot more work00:11
Zelutthe reason I ask about the chroot is it would likely be simple to just run ufw commands directly to allow for the services in kickstart00:12
Zelutif its not possible I'd have to do a bunch of sed nonsense..00:12
Zelutcjwatson: ok, I've updated firewall.sh to use "chroot /target ufw allow <service>".  I notice you have --high, --medium, --dhcp listed as well but I don't see those on the kickstart documentation as valid?00:32
CIA-1ubiquity: cjwatson * r2679 ubiquity/ (bin/ubiquity-dm debian/changelog):00:40
CIA-1ubiquity: Add ubiquity-dm implementation for matchbox-window-manager (thanks,00:40
CIA-1ubiquity: Patrick Hétu; see LP #159363).00:40
Zelutcjwatson: I'm going to call it a day.  I sent you my changes to firewall.sh for testing.01:01
cjwatsonthanks01:08
cjwatsonyou can't run ufw in the handler directly, though you can register a post_firewall function01:08
cjwatson(because the handlers themselves are run long before /target exists)01:09
CIA-1debian-installer-utils: cjwatson * r656 ubuntu/debian/changelog: releasing version 1.57ubuntu101:29
Zelutcjwatson:  that makes sense. likely based on my limited knowlege of how it all falls together02:13
superm1evand, when --automatic is invoked, ok_handler doesn't get called at all right?,  just the run(self,priority,question) of each page08:05
=== ebel_ is now known as ebel
xivulonevand, we have collected quite a stack of fix committed, can push fixes into the releases?13:00
xivulonplan being that we release first fixes external to wubi, then we test wubi on new ISOs, then we get approval for new Wubi13:01
xivulonhere is a list of relevant non-wubi fixes http://paste.ubuntu.com/10907/13:01
xivulonthe ones left out are 225593 and 22254613:04
xivulonto be addressed by myself/seb128 and lamont respectively13:04
Zelutcjwatson: ok, got your email and I'm revisiting my obvious mistake.13:56
evandsuperm1: correct14:14
evandxivulon: ack'ed14:14
xivulonthx14:15
HopsNBarleyhi gang - i'm writing a package.  ideally, i'd like the postinst to create/populate a mysql database.  this deb works fine, *except* when it gets run via my preseed.cfg file.  any guidelines/clues/hints on how to handle this?15:42
Zelutcjwatson: I notice in auth.sh you're rewriting a conf file which is put in place in the POSTPOOL.  Considering I'm trying to run commands what is your suggestion on handling it?15:59
cjwatsonPOSTSPOOL is just for the early handler to leave notes for the post-handler later on16:00
cjwatsonyou can run whatever you like in the post-handler16:00
ZelutI guess my difficulty is not seeing how/where those tie together.16:03
cjwatsonZelut: basically the early handlers run before just about anything else in the installer; the post-handlers run from finish-install right at the end16:11
Zelutcjwatson: I'm using auth.sh as an example, you create $POSTPOOL/auth.handler and then populate the files with the variables and then dump those into /target in auth_post()16:13
Zelutcjwatson: assuming I'm reading it right that is..  If I were to follow a similar setup is it as simple as doing a test? if [ -f $POSTPOOL/firewall.handler/ssh ]; then run ufw command?16:15
Zelutcjwatson: basically create the dir and files in the case statement, as is done in auth.sh, and then in the _post() check for those files and run the commands as needed?16:16
cjwatsonsure, that sort of approach would be fine16:18
cjwatsonyou'll need to spell $POSTSPOOL correctly though ;-)16:18
cjwatsonalso it's a good habit to always quote shell variable expansions unless you have a good reason not to, so [ -f "$POSTSPOOL/firewall.handler/ssh" ]16:19
Zelutof course.  I take many code-shortcuts in IRC16:19
cjwatsonI just say 'cos it's a common thing I end up correcting in patches, that's all :)16:20
cjwatsonno offence intended16:20
Zelutok, I think I have the hang of it.. let me give it another try.16:21
Zelutcjwatson: best way to handle errors? ie; ufw enable || echo "something broke".  send via logger?16:30
cjwatsonfeeding errors to the warn function is about the best you have :-/16:34
Zelutcjwatson: ok, just about done.. do I still need to run commands in chroot /target?17:04
cjwatsonyeah17:05
Zelutcjwatson: ok, let me send you another revision.17:25
HopsNBarleyany help on the mysql at install time question?17:49
HopsNBarleyi've googled myself to death on this.17:49
cjwatsonHopsNBarley: (I have to go in a minute, but) posting /var/log/syslog from the installation, along with your preseed file minus any passwords, would help17:50
cjwatson/var/log/installer/syslog if you have a completed installation post-reboot17:50
HopsNBarleyis there a preferred pastebin for this room?17:53
HopsNBarleycjwatson, thanks.17:53
evandHopsNBarley: Nope, any pastebin will do.17:54
cjwatsonI normally use paste.ubuntu.com17:56
HopsNBarleygreat.  pastbin.ca just killed my firefox!17:57
* HopsNBarley starts over.17:57
HopsNBarleyhere's the error message in the syslog:   in-target: : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)17:58
HopsNBarleyjust prior to this, the postinst ran:  invoke-rc.d mysql start17:58
HopsNBarleymy intuition is that the chrooted environment isn't yet completely made enough to run mysql.17:59
HopsNBarleymissing /proc, for example?  I don't know yet.17:59
HopsNBarleyAgain, this deb works fine "normally" outside of the installer.17:59
cjwatsonoh, right, I understand better now18:01
cjwatsonthe installer deliberately disables starting up services18:01
HopsNBarleyokay, that seems a reasonable thing for it to do... so what's the workaround?   surely some other packages have this issue.18:02
cjwatsonsince normally it isn't appropriate18:02
cjwatsonactually, I've not encountered this before ...18:02
cjwatsonare you just feeding this into pkgsel/include?18:03
HopsNBarleywhat if it moved installation of the package to the late_script?18:03
cjwatsonlate_script?18:03
ZelutHopsNBarley: I've done a hack before where I've added a script to be called in rc.local so it finished on reboot..18:03
Zelutlikely not the best solution however18:03
cjwatsonso, if you did it in preseed/late_command, then that would work provided that (a) you don't need to interact with debconf, (b) you start up the mysql server manually and tear it down again at the end, and (c) you use chroot /target rather than in-target18:04
HopsNBarleycjwatson, the package is added like so:  d-i pkgsel/include string debconf-utils openssh-server apache2-mpm-prefork myapp18:04
cjwatsonotherwise Zelut's solution is actually not all that unreasonable (though certainly not elegant :-) )18:04
HopsNBarleycjwatson, could you briefly explain (a) ??18:06
cjwatsonif it needs explaining, it doesn't apply to you18:06
HopsNBarley(-;18:06
Zelutlol18:06
cjwatsongot to go18:06
HopsNBarleyhey, THANKS!18:07
HopsNBarleyone more, while ya'll are on the line: d-i base-installer/excludes doesn't seem to work.  i saw a bug on this.18:07
HopsNBarleythis is gutsy.18:08
HopsNBarleythanks also Zelut.18:12
Zelutcjwatson: do you have a list of completed kickstart compatible items?  I'm thinking about seeing what else I can knock out for Intrepid.19:38
tormodevand, xivulon: hi, I am done with bug #136682.21:56
xivulonhi tormod, yes I have already told evand early on today :)21:58
cjwatsonZelut: ISTR I put a list of incomplete bits in the installation guide21:58
xivulonit's in the list of the fixes that require approval and hopefully will be in new ISOs soon21:58
xivulonthanks again, that was really helpful21:59
cjwatsonHopsNBarley: err, there's no such question ...21:59
cjwatsonHopsNBarley: as in, doesn't work because it doesn't exist :-) What documentation recommended that?22:02

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