[10:54] cjwatson, seems i found a better way than mangling diversions for flash-kernel ... http://paste.ubuntu.com/1137623/ [10:55] (just struck me that we re-introduced this in ubuntu for live-build) [11:07] I'm afraid that won't help, because it only affects direct children of live-installer.postinst [11:07] We need to suppress any update-initramfs calls until flash-kernel-installer.postinst gets round to running [11:08] If you do it that way, and pkgsel ends up installing anything that updates the initramfs, then it will fail [11:08] hmm, where can i set it globally ? [11:09] flash-kernel-installer can forcefully unset it then [11:10] ogra_: divert update-initramfs to /bin/true in preinst and finally remove that diversion in the flash-kernel-installer.postinst and run it again.... ugly but.... [11:10] and i dont mind update-initramfs calls ... i only mind the kernel and initramfs hooks (which that var specifically supresses) [11:11] oh. ok. [11:11] I did think about this. I believe the diversion is the best answer. [11:12] but then the diversion should also happen globally instead of having it done by single udebs imho [11:12] No, because the reason for it is specific to the needs of flash-kernel. [11:12] It's entirely reasonable for that to be done in flash-kernel-installer. [11:12] In fact, it is best for it to be entirely contained within flash-kernel-installer. [11:13] (Modulo the pkgsel tweak, which is really - IMO - a fix for something pkgsel was doing slightly wrong.) [11:13] that still means i need to hack up pkgsel to mangle DIVERTS= if the f-k diversion exists [11:13] You said you were going to do that. Are you having problems? [11:13] It should take about five minutes. [11:14] I am happy to help if you want. [11:14] no, but its a lot more code overall than the one export line :) [11:14] But the one export line is wrong. [11:33] cjwatson, http://paste.ubuntu.com/1137676/ [11:36] I'd suggest doing the check up top when setting DIVERTS instead. It should be easier and cleaner. [11:36] well, lazyness, there was a loop already ;) [11:36] * ogra_ puts it at the top [11:37] i.e. DIVERTS=; for divert in /usr/bin/fc-cache /usr/sbin/update-initramfs; do if chroot /target blah; then DIVERTS="$DIVERTS $divert"; fi; done [11:37] only with spacing and such [11:37] ah, saves the sed calls, ok [11:37] Anything where I have to count sed backslashes probably means there's a better way to write it :) [11:37] haha [11:43] k, so it boils down to http://paste.ubuntu.com/1137684/ [12:13] cjwatson, ^^ if you dont shout, i'll upload now :) [12:18] looks fine [12:19] uploaded :) === cjwatson_ is now known as cjwatson