[04:40] torkel_ (torkel@ip64.degernas.se) joined #fai. [04:40] torkel (torkel@ip64.degernas.se) left irc: Remote host closed the connection [04:50] torkel_ (torkel@ip64.degernas.se) left irc: Ping timeout: 480 seconds [04:54] torkel (torkel@ip64.degernas.se) joined #fai. [06:17] vineeth (~vineeth@setnip02.ericsson.net) joined #fai. [06:19] hey.. has anybody tried encrypted root filesystem with FAI? [06:46] vineeth (~vineeth@setnip02.ericsson.net) left irc: Read error: Connection reset by peer [08:17] msc (~msc@gw1.cgn3.hosteurope.de) joined #fai. [08:32] vineeth (~vineeth@setnip01.ericsson.net) joined #fai. [08:44] vineeth (~vineeth@setnip01.ericsson.net) left irc: Read error: Connection reset by peer [09:00] siggg (~jean@tra78-5-88-172-128-32.fbx.proxad.net) joined #fai. [09:09] vineeth (~vineeth@setnip01.ericsson.net) joined #fai. [09:11] ErKa (keryell@keryell.pck.nerim.net) joined #fai. [09:27] vineeth (~vineeth@setnip01.ericsson.net) left irc: Read error: Connection reset by peer [09:53] mikap (~mika@mail.michael-prokop.at) left irc: Ping timeout: 480 seconds [10:01] mikap (~mika@mail.michael-prokop.at) joined #fai. [10:34] ErKa (keryell@keryell.pck.nerim.net) left irc: Ping timeout: 480 seconds [10:49] justleen (~leen@rev-131-102.virtu.nl) joined #fai. [10:58] Mrfai (~lange@kueppers.informatik.uni-koeln.de) joined #fai. [11:09] vineeth (~vineeth@194.237.142.17) joined #fai. [11:46] hello when i was trying luks in disk_config for root file system, i got an error saying "Boot partition cannot be encrypted" [11:46] Error in task partition. Traceback: task_error task_partition task task_install task task_action task main [11:46] FATAL ERROR. Installation stopped. [11:46] bash: no job control in this shell" [11:52] with all ur helps I could make FAI installation working fine... only the cryptsetup is pending.:) [12:03] vineeth (~vineeth@194.237.142.17) left irc: Read error: Connection reset by peer [12:47] justleen (~leen@rev-131-102.virtu.nl) left irc: Remote host closed the connection [12:54] justleen (~leen@rev-131-102.virtu.nl) joined #fai. [14:25] I have a new bug. It's a timing problem with the scripts. [14:26] I have a script that runs that copies over our special grub/menu.lst. it runs at number 53-grub [14:26] but when i log into the box before rebooting (after a fresh reimage) i see the system automagical kernel list is what's in menu.lst and not mine. [14:26] all the rest of my scripts ran correctly. [14:27] how do i make my "cp menu.lst /target/boot/grub/menu.lst" happen _AFTER_ the system created grub/menu.lst happens [14:27] because right now it's happening _before_ and then getting overwritten by the systems version. [14:32] ballison: maybe a script from another class is being run later [14:32] mgoetze: This script is running before the system even installs grub. [14:33] because I typo'ed my script at first and created /target/boot/grub as a file and not a directory and it never installed anything under grub because it couldn't. [14:33] so the system grub isn't installing until -after- my script [14:33] which means my script's output is getting overwritten by the system's installation of grub [14:34] and i'm left with a system default grub/menu.lst [14:34] so, uhm, how are you installing grub? is it not mentioned in your package_config directory? [14:34] good question - let me check [14:36] grub's in my package_config for the class [14:37] then i don't see how your script can be run before it gets installed, if it's a normal script in the scripts/ directory [14:38] yes. it's just a script in the class [14:38] the rest of my scripts run fine too [14:39] you must be misanalyzing the problem somehow, then [14:39] is this normal? to have grub like this twice in the DEFAULT package_config ? [14:39] DEFAULT:grub lilo- [14:39] DEFAULT:lilo grub- [14:39] you should add a -B1 to that grep [14:40] and maybe read up on the syntax of the package_config files again ;) [14:41] I'm not misanalyzing the problem. i've watched the install realtime with a find /target/boot [14:41] and i see the grub directory gets created _AFTER_ my script runs [14:42] probably it isn't done by the mere installation of the package, but by the invocation of grub-install or update-grub [14:45] check your shell.log, i'm sure you'll see there what's going on [14:48] reinstalling now and running "watch find /target/boot" [14:49] yep - scripts are running and all packages have been installed and there's no /target/boot/grub directory yet. [14:50] ok the script from class GRUB runs last [14:51] GRUB/10-setup runs last [14:51] but that makes no sense. all that script does is copy over a menu.lst [14:51] so what's creating the grub directoy and all the grub parts? [14:53] all that script does is "fcopy -Uv boot/grub/menu.lst [14:58] so even if my script ran correctly (which it can't because there's no /target/boot/grub when it runs), it would still get overwritten by GRUB/10-setup which copies over a menu.lst.... [14:59] i just need a different menu.lst for the single class, so I really don't want to edit the GRUB class for this one special class. [15:02] so how do i get my script to run last. after GRUB/10-setup ? [15:07] justleen (~leen@rev-131-102.virtu.nl) left irc: Remote host closed the connection [15:13] is GRUB/10-setup part of the default fai server install? [15:14] i inheretted this system so i don't know what's standard vs what was added by a previous admin [15:20] oddly enough when grub installs itself it does not create a /boot/grub directory [15:22] i really don't think GRUB/10-setup is needed. [15:26] anyone know why that's there? [15:31] cp /srv/fai/config/cba/menu.lst boot/grub/menu.lst/INSITE [15:35] mgoetze: i found where grub-install is getting called. [15:35] mgeotze: /srv/fai/config/files/boot/grub/menu.lst/postinst [15:42] but that still doesn't explain why GRUB/10-setup runs at all. or how to use my menu.lst for my class instead of the GRUB class menu.lst. [15:46] i added ./boot/grub/menu.lst/MYCLASS for my class that i'm using... and testing to see if that will install or not. [15:50] nope didn't work. [15:50] anyone know how to install a unique menu.lst for a class, and not have it overwritten by the GRUB class at the end? [16:06] ok... sent my questions to the list... [16:26] ErKa (keryell@keryell.pck.nerim.net) joined #fai. [16:28] oz_ (~oz@anubis.coresystems.de) left irc: Ping timeout: 480 seconds [16:28] can anyone tell me how to get FAI to install a different menu.lst for a special CLASS of machines? right now GRUB/10-setup is running and kicking off install-grub and the fcopy is moving my menu.lst out of the way ... [16:54] ErKa (keryell@keryell.pck.nerim.net) left irc: Ping timeout: 480 seconds [17:01] ErKa (keryell@keryell.pck.nerim.net) joined #fai. [17:45] ErKa (keryell@keryell.pck.nerim.net) left irc: Ping timeout: 480 seconds [18:31] Guest2618 (~oz@anubis.coresystems.de) joined #fai. [18:32] Nick change: Guest2618 -> oz_ [18:32] msc (~msc@gw1.cgn3.hosteurope.de) left irc: Quit: msc [18:51] ballison (ballison@209.156.160.90) left #fai. [19:40] ballison (~ballison@209.156.160.90) joined #fai. [19:41] mgoetze: Since I couldn't find a way to do it "the right way" I'm gonna just drop my script into the GRUB class and have it run after GRUB that way. Since i'm editing the menu.lst it kinda makes sense. I'll have it just exit if it's not on the correct type system. [19:42] ballison, I just wonder whether you are aware of the meaning of the order of classes [19:43] ballison: you just put your menu.lst under files/boot/grub/menu.lst/MYCLASS [19:43] I haven't fully read your mailing list post nor all of the earlier conversation [19:43] mt: I am. They are defined in order in the 50-host-classes file [19:43] mt: the GRUB class runs last [19:43] are you also aware of a possible postinst file in files/boot/grub/menu.lst ? [19:44] mt: I am, and I included that in my email. [19:44] ok, so is maybe mgoetze's solution all you need to know? [19:45] mt: grub-install is getting called in the postinst in files/boot/grub/menu.lst [19:45] mgoetze: I tried that and it doesn't work. [19:45] mgoetze: Because there's already a files/boot/grub/menu.lst/GRUB there [19:46] mgoetze: and GRUB class is the last to run with the fcopy of /boot/grub/menu.lst so it moves mine to menu.lst.pre-fcopy [19:46] it's really strange that GRUB is so late in the order of classes [19:47] I believe that the hostname and "LAST" are always the last ones [19:47] mt: read the 50-host-classes file. You'll see at the bottom it echo's GRUB last onto the list [19:48] mt: so class GRUB is last [19:50] mgoetze: I thought files/boot/grub/menu.lst/MYCLASS would work too. but the fcopy in the GRUB/10-setup is being called from the GRUB class so you get the GRUB version not the MYCLASS version [19:50] but it doesn't matter really because that file gets blown away when the postinst script run and kicks off the install-grub which generates a new menu.lst anymore [19:52] i think for what i'm trying to do i'm gonna have to just create a GRUB/20-my-menu-lst and have it copy over my menu.lst IF it's on my class of systems... which kinda defeats of the point of having classes to begin with. [19:52] because it runs out of the GRUB class. [19:53] in my early scripts I'm gonna touch a file on the system called /etc/MYCLASS and if that file exist when my script runs, i'll copy over my special meny.lst for that class... [19:53] only way I can think of doing it. since the GRUB/10-setup blows away my menu.lst [20:11] ballison, could you paste the list of classes being defined for your host from the logs? [20:33] mt: checking. (was reimaging to test my change) [20:34] mt: i don't see a fai.log in /var or /target/var [20:35] mt: It's installing right now. [20:41] should i see a log while it's installing? [20:42] Interesting - > variables.log:classes=$'DEFAULT\nLINUX\nI386\nOS_LENNY\nINSITE\nDHCPC\nGRUB\ninsite10-2\nLAST' [20:42] So I guess I could have added the script to the class called LAST [20:44] the one thing i don't understand about fcopy is which class version does it copy over IF the classes match multiple versions. [20:45] meaning if LAST/50-misc calls "fcopy -i /etc/apt/sources.list" and files/etc/apt/sources.list has two class names under it, "FAIBASE" and "OS_LENNY" which one wins? [21:09] I have another "who wins" question: If you have two package_config classes, and one says to install a list of packages, and the other has a different list of packages and both classes are in the classes variable, which one wins? or does it just concatenate the two lists? [21:09] i'm assuming it just concatenates the two lists. [22:00] mt: I did find the LAST class... which could have worked as well. Thanks. [22:02] ballison: if the GRUB class is last it has the highest priority [22:02] ballison: you need to put your more specific classes behind the standard GRUB class [22:03] ballison: package_config stuff cats, yes. maybe you should read the fai guide. ;) [22:07] siggg (~jean@tra78-5-88-172-128-32.fbx.proxad.net) left irc: Ping timeout: 480 seconds [23:29] ballison (~ballison@209.156.160.90) left irc: Ping timeout: 480 seconds [00:00] --- Thu Dec 30 2010