/srv/irclogs.ubuntu.com/2010/01/17/#edubuntu.txt

stgraberHedgeMage: getting whitelisted can be done by opening a ticket at: https://launchpad.net/launchpad/+addquestion if we don't get it done quick enough, feel free to poke me and I'll nag the right people ;)00:00
alkisgstgraber: I'm thinking of proposing a patch for 000-daemon-handling to also handle initctl of the upstart package, because I think it's the new acpid script that's using $ROOT/proc at the end of ltsp-build-client... is that OK?00:03
alkisg(Hi all, btw :))00:03
alkisgDebian is also (slowly) switching to upstart, so that script would be again common, right?00:05
stgraberalkisg: yeah, you'll probably need to verwrite initctl, start, stop, restart and status (assuming all these aren't simple symlink to initctl)00:06
alkisgsymlinks, so initctl should be enough00:06
stgraberok, they are symlinks to initctl ;)00:06
stgraberright, sounds good00:06
alkisgBut it won't have the same name, so I'll have to call it with initctl.real $action "$@"00:06
alkisgOK, will do that tomorrow, thanks00:07
alkisg*tommorow00:07
stgraberwell, I'm wondering why we actually have to overwrite the binary ...00:07
HedgeMagestgraber: thanks, I'll file it away and take a look as soon as I can.00:07
stgraberstgraber@castiana:~$ initctl() { echo "It's not really initctl"; }00:08
stgraberstgraber@castiana:~$ initctl blah00:08
stgraberIt's not really initctl00:08
stgraberalkisg: ^00:08
alkisgstgraber: what if some C program tries to execute /sbin/initctl?00:08
alkisg(or shell program, with an absolut path /sbin/initctl...)00:09
stgraberalkisg: they shouldn't, upstart uses dbus for communication and library exists for C programs, initctl is only there for shell scripts.00:09
stgraberyeah, calling with the full path is the only case where doing shell function overwrite won't work00:09
alkisgOooops so if someone uses dbus to start acpid, we can't block it?00:09
stgraberbut I don't know if we have any scripts doing that00:09
stgraberalkisg: indeed00:10
alkisgSo we probably *need* umount -l to be safe... :-/00:10
alkisg...or at the very least, to exclude /proc from the squashfs line00:10
stgraberalkisg: I did a quick check, on my laptop I don't have any software that's calling start/stop/restart or start-stop-daemon with a full path00:11
stgraberalkisg: well, then the issue is that we are actually starting process inside the chroot that should never have started00:11
alkisgWell, if they're started from a postinst script, what else can we do?00:12
stgraberalkisg: so ideally we should have: function overwrite for start/stop/restart/start-stop-daemon + kill all process started from within the chroot + umount -l00:12
stgraberthen we'd be safe00:12
alkisgstgraber: I think dpkg-divert is a little safer, because it also helps *after* the ltsp-build-client script, i.e. when the user wants to update his chroot00:12
alkisgexport LTSP_HANDLE_DAEMONS=false, chroot, update etc00:12
alkisg(but I'd prefer it if LTSP_HANDLE_DAEMONS was "autodetected", so that it worked automagically...)00:13
stgraberalkisg: right, though I'd be very very careful with initctl as I'd suspect it gets copied to the initrd and so you may end up with a non booting thin client00:14
alkisgOoops :(00:14
stgraberit's one thing to override a Debian helper software (start-stop-daemon), it's another to overwrite some part of init ;)00:14
* alkisg thinks it would be safer if he left this for stgraber, and just did the umount -l / squashfs etc stuff :D00:15
stgraberroot@ltsp-root01:~# ls -l /proc/[0-9]*/exe | grep "/opt/ltsp/" | awk '{print $8}' | cut -d / -f300:17
stgraberreplacing /opt/ltsp by $CHROOT00:17
stgraberthat'll list you all remaining process running from the chroot, you can then kill them and /proc will unmount just fine00:17
stgraberthat's probably the easiest until upstart starts causing us more issues00:18
stgraberls -l /proc/[0-9]*/exe | grep $CHROOT | awk '{print $8}' | cut -d / -f3 | xargs kill -900:18
* alkisg is thinking where that would fit best...00:19
stgraberls -l /proc/[0-9]*/exe | grep $CHROOT | awk '{print $8}' | cut -d / -f3 | xargs kill -9 2>/dev/zero || true00:19
stgraberactually ;)00:19
alkisgRight now, and excluding the fat client script, ltsp-update-image is what unmounts $ROOT/proc first00:19
stgraberas if we don't have any process to kill we don't want ltsp-build-client to fail00:19
stgraberok, ltsp-update-image would make sense00:20
stgraberas you also want all process to be killed before compressing an updated chroot00:20
alkisgBut then again, ltsp-update-image could be modified to not bother with $ROOT/proc at all, and just exclude that directory from the squashfs image00:20
stgraberyeah but usually you don't want a second cron running on your system ;)00:20
alkisgUhm care to clarify that?00:21
alkisgI mean for ltsp-update-image to pass an "exclude /proc" param to squashfs00:21
stgraberif you update your chroot and get a cron update which uses upstart, it'll update cron inside the chroot and start it00:21
stgraberso if you do a ps aux, you'll see two cron running00:21
stgraberone inside the chroot, one outside00:22
stgraberso even if you ignore /proc when doing the squashfs, you still end up with two cron running on your server00:22
stgraberwhich can't be good ;)00:22
stgraberumount -l and mksquashfs -e only workaround the fact that you have some process running that shouldn't be running00:22
alkisgWell, that problem would also be faced by someone who doesn't use nbd/ltsp-update-image00:23
stgraberso that fixes the issue of compressing the squashfs but not the fact that you have some process running from within the chroot and that should never happen00:23
stgraberindeed and we won't be able to do much for them00:23
stgraberwhat we can do is call that command line once at the end of ltsp-build-client and in ltsp-update-image00:24
alkisg"ltsp-enter-chroot" "ltsp-exit-chroot" commands would be helpful :D00:24
stgraberso for nbd users that will be working perfectly and for NFS users, that'll be fine during the chroot build process but they'll need to be careful when updating00:24
alkisgOK, I'll try to put that in ltsp-update-image00:25
alkisgI'll also try to bypass the daemon starting by defining an initctl in the fat client script00:26
alkisgThanks man :)00:26
stgraberok, if you use the shell hack, remember that you'll need to also define start, stop and restart00:26
stgrabereven if they are symlinks00:26
alkisgOK, I'll try them and see if they work00:27
sbalneavevening all02:20
stgraberevening sbalneav02:29
sbalneavHmmm, new pulseaudio seems flaky03:03
sbalneavAt least, I think it's pulse.03:03
stgrabervolume mixer was a bit broken here and video playback got a bit laggy afterwards (as if audio couldn't catch up with video and mplayer would drop frames to sync)03:04
stgraberso I reverted to the previous version for now03:04
sbalneavWhen I play a game under Wine, pulse disappears entirely03:05
sbalneavit's still running, but only shows the dummy device.03:05
Ahmuckthank goodness pulse is getting tested ...03:15
sbalneavAhmuck: Anything else you'd like tested?03:25
Ahmucki deserved that03:26
sbalneavThe sniping's getting a little annoying, quite frankly.03:27
sbalneavIf you've got a complaint, I wish you'd make it plain.03:27
sbalneavSo we can deal with it, and move on.03:27
Ahmuckso there is a pulse issue in edubuntu?03:29
sbalneavThere's a pulse issue, period.03:29
Ahmucknm03:29
sbalneavPulse is a great peice of software, but like all peices of software, it has bugs.03:30
Ahmucksorry, i need a break for a while03:30
sbalneavYou know, Ahmuck's passive-agressive baloney's really getting to be a nuisance.03:31
sbalneavIf he has a complaint about something, I sure wish he'd just make the complaint, we could deal with the complaint, and move on.03:32
sbalneavInstead, he just makes vague hints and sarcastic remarks.03:32
stgraberyeah ... it's getting boring03:54
CarlitoI3riganteis anyone live?04:55
* CarlitoI3rigante shout for a live person04:55
dhillon-v10CarlitoI3rigante, that's a tough question ;)04:59
sbalneavCarlitoI3rigante: Hello05:11
HedgeMageI'm alive.  Awake is debatable, but I'm definitely alive.05:21
dhillon-v10HedgeMage, hi there :) I thought you were going to sleep :P05:22
HedgeMageYeah, that didn't happen...well, sort of...I dozed off cuddling in front of a movie with LF, almost ruined dinner, rescued dinner, ate dinner, played with a treasure I found while unpacking, and now can't sleep.05:23
dhillon-v10HedgeMage, nice :)05:23
HedgeMageheh05:24
HedgeMageOn the up side, there's something incredibly relaxing about typing on a good manual typewriter.05:24
HedgeMageI love computers, but they can't come close to that sound and feel.05:24
* HedgeMage gets all nostalgic and makes people think she's crazy.05:25
dhillon-v10HedgeMage, gotta go, bye and good night :)05:29
HedgeMageGood night05:31
HedgeMageoops, too late05:31
crimsunsbalneav: which version of pulseaudio are you using?05:32
crimsunsbalneav: the fixed one is 1:0.9.22~0.9.21+stable-queue-24-gfa64-0ubuntu105:33
sbalneav1:0.9.22~0.9.21+stable-queue-24-gfa64-0ubuntu105:38
sbalneavcrimsun: ^^^05:38
crimsunsbalneav: what sort of behaviour?05:39
crimsunsbalneav: also, a verbose PA log might help debug (https://wiki.ubuntu.com/PulseAudio/Log)05:39
sbalneavWell, I've got an old windows game I like to play from time to time (homeworld), and after I play it, pulse kind of... stops responding.05:40
sbalneavcrimsun: Ah, thanks, I'll maybe produce a log.05:40
crimsunsbalneav: so this is using Wine /without/ Neil's Winepulse ppa, I presume05:40
sbalneavYes.05:41
crimsunsbalneav: and otherwise all completely current 10.04?05:41
sbalneavyup.05:41
sbalneavI updated an hour or so.05:41
crimsunyes, a verbose log would be helpful05:41
sbalneavOkiedokie, I'll produce one tomorrow.05:41
crimsunthanks05:41
sbalneavI was trying to find something else I could make it die with05:42
crimsuntry anything using alsa05:42
sbalneavSince "Dies on playing a windows game produced in 1999 under wine" isn't a use case that'll get taken too seriously :)05:42
crimsuni.e., anything that would route through the pulse pcm+ctl alsa-plugin05:42
sbalneavok, will do.05:42
crimsunmy most simple tests are speaker-test, ogg123, and mpg12305:43
sbalneavogg123's a good one.  I got oodles of oggs. I'll try that.05:44
sbalneavThanks!05:44
=== highvolt2ge is now known as highvoltage
alkisgHmmm dpkg-reconfigure edubuntu-artwork gives 3 choices: default, young, and plain. Would it be possible to also have an "ubuntu" choice there? :)21:41
alkisgOr, could we modify "plain" to use the ubuntu icons instead of the gnome icons, etc?21:43
alkisgRelevant files are in /usr/share/edubuntu-artwork/gconf21:43
alkisgMaybe the best thing to do would be to lower "atomix, edubuntu-artwork, gnome-icon-theme-gartoon, khelpcenter4, kolourpaint4, xaos" from "Depends:" to "Recommends:" in edubuntu-desktop.22:00
alkisgThis way if someone doensn't want one of those, he can still keep the rest of the edubuntu-desktop.22:00
sbalneavalkisg: Makes sense22:12
alkisgOK, filed there: https://bugs.launchpad.net/ubuntu/+source/edubuntu-meta/+bug/50892322:13
ubottuUbuntu bug 508923 in edubuntu-meta "Lower some dependencies to recommentations" [Undecided,New]22:13

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