[13:43] hi! [13:43] i am trying to get nvidia and ati restricted drivers work from the installer [13:44] I want the auto-detection to choose any of those two, and then and only then fall back to the free one [13:45] Now I have this: [13:45] xserver-xorg xserver-xorg/config/device/driver select nvidia [13:45] that will probably not work so good with any other restricted driver, like ati :) [14:12] holst: hmm, I guess you will need to create a script and have it called during the install [14:13] because you can only install one of the two drivers (both cary libGL and only one can be installed at once) [14:13] and then update the xorg.conf [14:14] so basically have a script looking at lspci (best would be to use the same code as jockey to detect the best driver for the hardware), then installing the right driver and finally update xorg.conf [14:17] hmm, not optimal... [14:17] would rather give a "priority list" [14:19] this is all up to the X packaging rather than the installer as such; you'd be better off asking its maintainers [19:46] how do the big companies do this? [19:46] how do they install ubuntu/whatever linux efficiently on heterogeneous computers? [20:06] well paid admins [20:06] :P [20:10] that go around installing by hand? :) [20:10] i generally think that peoplare are lazy [20:10] and generally, stupid [20:10] thats what I am anyway :) [20:11] I'd guess most that can do the job are experienced enough to do it efficiently, whatever that solution may be. [20:12] yes, but they solution is mostly ugly [20:12] I'm not sure what we are arguing about anymore. [20:12] I am saying: there must be a good way to do it [20:12] and there probably is [20:12] read up. [20:18] hardwire: um, that isn't terribly helpful [20:18] if you aren't prepared to understand users' problems, please let somebody else answer [20:20] I suspect, that said, that big companies doing this kind of thing either (a) buy hardware in bulk and therefore they're not all that heterogeneous, or (b) divide their installations into classes, each of which have distinct preseed files [20:21] there are a number of hooks available to preseed files that let you run arbitrary scripts during the installation [20:22] the best one to use here is probably dropping scripts into /usr/lib/post-base-installer.d/ - those are run after the base system has been installed, but before X is installed [20:22] so you can chroot into the target system and use facilities from there [20:22] it's not as neat as just specifying a priority list, but it would make it feasible [20:24] I find myself identifying unique information between base installs, then imaging everything after creating a one-off script to set up that system as a unique machine. [20:24] so you could key your driver selection based on PCI IDs [20:24] the nvidia and ati vendor ids are well-known, and that's probably all you need [20:25] can you use those scripts to feed more preseeing data as well? [20:25] yes [20:25] as long as they run before whatever's going to consume it, obviously [20:25] hmm, that can actually solve both the xorg problem as well as the partitioning problem [20:25] the clumsy but simple way is to use the debconf-set utility; the neater but slightly longer way is to do '. /usr/share/debconf/confmodule' at the top of the script and then use db_set [20:26] (and possibly db_fset if you want to mark the question seen as well) [20:26] or you can feed preseed-file-syntax input to debconf-set-selections [20:26] partitioning is fiddly in hardy, unfortunately [20:26] you can do it, it's just awkward [20:27] you have to have a preseed/early_command script that writes out a second script in /lib/partman/display.d/ and makes it executable [20:27] in intrepid, there'll be a direct partman/early_command preseed to short-cut that [20:27] I might actually try to come up with something more generic [20:27] yes, I will probably not be done with this before intrepid is released [20:27] main-menu/hook/ [20:28] (hypothetical) [20:39] thanks very much for the advices; I have kept them in my /lastlog [20:39] I think that using debconf-set-selections in a hook is the way I will go [20:40] then I can make some fancy scripts that prove for a /NOBACKUP partition as well (my other problem) [20:40] probe*