/srv/irclogs.ubuntu.com/2012/10/02/#ubuntu-installer.txt

=== sivatharman_ is now known as psivaa
stgrabercjwatson: did you have a chance to look at that diff I pasted yesterday? or do you prefer a MP for it?13:11
cjwatsonOh, right, one sec13:11
cjwatsonYeah, I think that's fine13:12
stgraberok, I'll commit it then, hopefully that'll be the end of the weird langpacks related bugs :)13:13
cjwatsonI've said that before ;-)13:14
* xnox *giggles*13:14
stgraber:)13:15
=== sivatharman_ is now known as psivaa
GioyikHello14:16
GioyikI have a question14:16
Gioyiki like to port the ubuntu installer to ArchLinux, how can i do it? Any guide?14:17
xnoxGioyik: there are two: ubiquity (graphical) and debian-installer (text based). The graphical one, is more-or-less a frontend to the text based one.14:19
xnoxso it heavily relies on debian-installer, partman and apt14:19
xnoxand debian-installer in turn heavily relies on udebs and debconf based configuration.14:20
xnoxwhich is all very debian specific...14:20
xnoxGioyik: or you could take the UI, but then write your own backend logic for arch-way of installing. But you'll end up with something "inspired-by" or "rewritten-from-scratch".14:22
xnoxGioyik: just the design is outlined here http://goo.gl/Kokw514:22
Gioyiki like to port ubiquity, a graphical installer, is posible to do it in a easy way?14:24
cjwatsonThere is not likely to be any easy way, no.  It has a large number of Debian/Ubuntu-specific assumptions.14:26
cjwatsonThere has never been any effort to make it more portable than that.14:26
xnoxGioyik: no, because it simply constructs automatic-preseeding to the debian-installer. Ubiquity is pretty, but doesn't actually do any bits of the installation.14:26
cjwatsonOr at least nothing that resulted in code being merged into the mainline.14:26
cjwatsonxnox: Well, that's not true.  But the bits it does are done Debian-specifically.14:27
xnoxcjwatson: ok, true.14:27
stgraberjibel: can you still reproduce bug 960077?14:27
ubot2Launchpad bug 960077 in casper "live session with persistence - keyboard layout selected during first boot is used" [Medium,Incomplete] https://launchpad.net/bugs/96007714:27
stgraberjibel: I'm looking at it as a potential duplicate of bug 946406 but I'm having no luck reproducing the issue14:28
ubot2Launchpad bug 946406 in casper "suspect race condition Keyboard layout, oem-config not set on persistent USB image" [High,Incomplete] https://launchpad.net/bugs/94640614:28
cjwatsonGioyik: I'm not saying it's impossible, but it will be a long project and you'll have to do most of the legwork yourself.14:28
cjwatsonSince there's no precedent there's no guide.14:29
GioyikMmmmm Ok Thanks foy your answers!14:29
jibelstgraber, I'll try and tell you.14:51
stgraberjibel: thanks14:53
jibelstgraber, I can't reproduce 960077. the right layout is active every time. I'll close it.16:01
stgraberjibel: ok. I checked all the code again and can't find anything wrong with it, though it's a known problematic part of casper...16:02
stgrabermy guess is that in some cases, the keyboard layout ends up in the user's gsettings and so even if /etc/default/keyboard is correct, the layout still end up being wrong... but until I can reproduce it, I can't be sure and the various report of this are really blurry on what the user actually did...16:03
jibelstgraber, well compared to the bug report, there is only 1 layout listed in the keyboard settings and the applet is not displayed, while there were 4 before. So something changed here.16:04
stgraberyeah... having just one keyboard listed is the expected behaviour when you boot directly into the live session16:04
stgraberthe only case where you should have more than one is if you go through ubiquity-dm16:04
stgraberbut those bits are mostly owned by the desktop team, so things tend to change quite often... :)16:05
stgraberanyway, I did find quite a bunch of problems with persistence (though couldn't find bugs for those) which I fixed and a new casper is now in the upload queue waiting for review16:05
stgraberI'll kick a rebuild once that's approved and then prepare the next batch of fixes (trying to cleaup casper a bit so I don't have to do that on release week ;))16:06
cjwatson... again16:07
* xnox =)16:08
stgraberoh, that's a fun one... why is keyboard-configuration calling update-initramfs? :)16:20
stgraberthat's making the "try ubuntu" button take something like a minute on my i7 test laptop16:20
cjwatsonBecause the initramfs contains keyboard configuration16:21
cjwatsonMight make sense to divert update-initramfs around that, maybe16:23
stgraberoh right and as I'm using a persistent media, it can actually do something with an update initramfs...16:23
stgraberwe already divert update-initamfs to casper-update-initramfs16:23
cjwatsonMm, nested diversions probably won't wowrk16:23
cjwatson*work16:23
jibelI was blaming my netbook where it takes much more than 1 minute16:24
stgraberI'll have to dig what was the exact reason for casper-update-initramfs and if we can't simply have that script exit 0 and be done with it16:24
stgraberI'm not really sure I actually want the live image to update the initrd even if the boot media is writable16:25
cjwatsonupgrades of persistent live CDs16:25
cjwatsonplease don't revert that, it was a bug with Mark's attention on it16:25
cjwatsoncare needed16:25
cjwatsonthere were people running live images with persistence and wanting to be able to upgrade them across kernel ABI bumps and the like16:26
cjwatsonwhether this is a good idea or not, we have no real way to stop them doing this, so it's better to make it not explode16:26
stgraberwow, we have really weird users ;)16:26
cjwatsonyeah, some of them pay our salaries ;-)16:26
cjwatsonif we can't easily fix performance issues without breaking that, we'd better leave the performance issues in place until we figure it out properly16:27
stgraberok, so I guess I'll change that script to exit 0 if the target isn't writable, that should take care of the cdrom use csae16:27
stgraberfor the persistent media, well, it's apparently a "feature" that it's terribly slow, so I'll just leave it as is ;)16:27
cjwatsonjust be careful, I have a vague memory that [ -w ] didn't DTRT16:28
infinityIsn't -w just a permissions check?16:29
infinityYou likely want something like wrapping a touch in a break/rollback or some such.16:30
stgraberI'll probably copy/paste the hack I have in dhclient-script. : >> "$file" and check the return code16:30
infinityYeah, that. :P16:30
cjwatson-w is access(3) I think16:32
cjwatsonAnd doesn't work if the fs refuses after that16:33
* cjwatson peers at bug 1057485. I can't make that tooltip say anything other than AM or PM in Greek16:35
ubot2Launchpad bug 1057485 in ubiquity "ubiquity-kde codepage problem in Timezone map (Timezone.py)" [High,Triaged] https://launchpad.net/bugs/105748516:35
cjwatsonIn either 12.04 or 12.1016:35
* cjwatson tries to reproduce this indirectly instead ...16:36
stgraberok, I think http://paste.ubuntu.com/1256333/ will do the trick16:50
cjwatsonSeems reasonable16:55
stgraberjibel: bingo! reproduced the bug!18:26
stgraberjibel: or at least found a way to get the same symptoms.18:27
stgraber1) let it boot to ubiquity-dm, choose French and Essayer Ubuntu. 2) Reboot the system 3) Stop the boot in gfxboot, choose German and Ubuntu ohne Installation ausprobieren => you get an azerty layout instead of qwertz18:29
ogra_such a commmon usecase even !18:30
stgrabernow to figure out how to fix that...18:30
ogra_:)18:30
stgraberogra_: depends where. I have a lot of friends nagging me about it, but they are from the swiss loco and we have four languages and 2 keyboard layouts in the same country, so it happens...18:31
ogra_heh, yeah, but you are a weird country :)18:31
ogra_once seb and didrocks succeeded we'll all have to speak french anyway :)18:32
stgraberbut yeah, getting ch-fr instead of ch-de isn't nearly as problematic as my example with fr and de ;) (ch-fr and ch-de are both qwertz layouts with only some accents swapped)18:32
stgraberas long as we don't need to switch to azerty too, it's fine ;)18:33
ogra_++18:33
* ogra_ wants a kbd with ß on it 18:33
stgraberI'm extremely glad I never had to learn that one, it's already enough of a mess in my head when moving between qwertz and qwerty :)18:34
ogra_not that i ever use that char ... but it makes me feel warm and cosy :)18:34
stgraberogra_: my US int keyboard has it (not printed though, but alt-gr + s gives you ß)18:34
ogra_cool18:35
stgraberUS int with alt-gr dead keys (altgr-intl) is really quite good. I get most common accented letters pressing just two keys (without dead keys) and for the rest you can compose them with the dead keys. And everything else is standard US qwerty so everything just works ;)18:37
ogra_my prob with the germany layout (not sure its like that on others) is that deadkeys steals my tilde18:39
ogra_and indeed i always forget to hit space when i need a tilde ...18:40
infinityI'm a pretty big fan of compose keys.18:42
infinityCompose+s+s isn't all that hard.18:42
stgraberUS int is just shift + ` to get you ~, it's not a dead key. To get the matching dead key you need to do altgr+shift+`+key-to-put-the-~-on18:42
ogra_well, my finger memory is usually stronger than my fanboyship18:42
ogra_thats also my prob with unitys broken alt tab behavior18:43
stgraberso if you want ñ, you can use altgr+shift+`+n but then again, you could just use altgr+n which would give you the same thing :)18:43
infinityThat sentence gave me a headache.18:43
infinityI think it might be time to finally sleep for a bit.18:44
jibelstgraber, that's what I did but the other way around, german first then french, aber ohne Glück18:55
stgraberjibel: odd. Anyway, I know how to fix it, it just won't be really pretty as I'll need to wipe a gsettings key from casper...18:58
stgraberyay for ugly hacks in casper... http://paste.ubuntu.com/1256656/19:18
stgraberI initially wanted to do it the same way as the accessibility stuff by writing a script on the target, though that wouldn't work in all cases as I really want that key flushed before ubiquity-dm starts...19:19
stgraberthat's going to be one hell of a casper changelog...19:55
stgraberevery time I fix a bug I'm finding a couple others, though hopefully we'll be good for a while after that with people complaining of weirdness on persistent systems19:56
stgraberogra_: I took bug 984276 from you as I was messing with that code anyway.20:07
ubot2Launchpad bug 984276 in casper "installing casper on a non live system causes update-initramfs to fail" [High,Confirmed] https://launchpad.net/bugs/98427620:07
ogra_stgraber, thanks so much ...20:18
ogra_i'm pushing that bug since ages20:18
stgraberogra_: my guess is that removing the few lines in the postinst will do the trick20:19
stgraberogra_: it was trying to make the symlink and call update-initramfs from the postinst for some unknown (and AFAICS undocumented) reasons20:19
stgrabernowadays it's a casper hook making the symlink at boot time (+ a dpkg divert), so the one from postinst shouldn't be needed at all (I still need to test to be 100% sure)20:20
cjwatsonWell in general anything that ships code in /usr/share/initramfs-tools/ calls update-initramfs.20:20
ogra_well, it is helpful if you locally want to roll a live initrd if the postinst runs it20:20
stgrabercjwatson: yeah, that part is fine, it's the part about making /usr/sbin/update-initramfs a symlink from the postinst that wasn't20:20
cjwatsonOh, err, check bzr history for that, I added that20:20
cjwatsonCheck what bug I was fixing and make sure you aren't reintroducing it :-)20:21
stgrabercjwatson: yeah, the change was http://paste.ubuntu.com/1256798/ and that's linked with bug 591207. Though I fail to see the reason for the postinst part of the change.20:24
ubot2Launchpad bug 591207 in casper "Casper's USB update-initramfs shim should look for initrd.img in /boot" [High,Fix released] https://launchpad.net/bugs/59120720:24
stgraberI'll recheck in a bit, maybe it's something obvious I'm just not seeing20:25
cjwatsonIt was probably needed to handle live media with the previous broken update-initramfs.20:30
cjwatsonIt may no longer be necessary.20:30
cjwatsonSince nobody should still be running a system booted from code before that fix.20:31
cjwatsonAt least not and expect to upgrade it to quantal in one step.20:31
stgraberoh yeah, that makes sense. Will add a mention of that in the changelog.20:36
stgrabercjwatson: I see you are the one who moved bug 296129 from ubiquity to casper though I'm not really sure how we'd fix that in casper without causing huge log files for those using persistence. What do you think of getting ubiquity to chmod -x /usr/sbin/logrotate at the beginning of the install and restoring it post-install?20:51
ubot2Launchpad bug 296129 in casper "live Installer may rotate syslog during install and copy only a portion to /target/var/log/installer/syslog" [Medium,Triaged] https://launchpad.net/bugs/29612920:51
stgraberthe cron.daily script checks for the executable bit on /usr/sbin/logrotate and exits 0 if it's not set, so we wouldn't be getting an error from the cron job and unless we're horribly unlucky, the logs shouldn't have been rotated by the time apport is triggered (cron.daily would have to trigger in the few seconds after install for that to happen)20:52
cjwatsonstgraber: That sounds like a good option, yes21:42
cjwatsonI probably wasn't thinking about persistence at the time21:42

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