Re: setup-storage: set vgname to hostname

2009-10-19 Diskussionsfäden Thomas Neumann
On 09/30/2009 12:11 AM, Jean Spirat wrote: I think you don't use a proper hook. Let me try to elaborate: - Create a disk config disk_config/SOMETHING that has ##HOSTNAME## in the places you'd like to see $HOSTNAME to be replaced. - Add a hook hooks/partition.DEFAULT that does the

Re: setup-storage: set vgname to hostname

2009-10-18 Diskussionsfäden Darshaka Pathirana
On 10/15/2009 10:10 PM, Michael Tautschnig wrote: Darshaka Pathirana wrote: Hmm. I don't think I understand what you mean. I mean I HAVE tried using $HOSTNAME in my disk_config-layout with setup-storage and it did NOT work (at least for me - see my first post in this thread). Maybe I've done

Re: setup-storage: set vgname to hostname

2009-10-15 Diskussionsfäden Michael Tautschnig
On 09/30/2009 12:11 AM, Jean Spirat wrote: I prefer using my own variables in my own namespace and initialize them from a known good source - like $HOSTNAME. This may not be the most obvious solution, but this way you can guarantee that your variable has a valid value. And if $HOSTNAME

Re: setup-storage: set vgname to hostname

2009-09-29 Diskussionsfäden Jean Spirat
I prefer using my own variables in my own namespace and initialize them from a known good source - like $HOSTNAME. This may not be the most obvious solution, but this way you can guarantee that your variable has a valid value. And if $HOSTNAME turns out to be unrealiable - or undesired - then

Re: setup-storage: set vgname to hostname

2009-09-29 Diskussionsfäden Darshaka Pathirana
On 09/30/2009 12:11 AM, Jean Spirat wrote: I prefer using my own variables in my own namespace and initialize them from a known good source - like $HOSTNAME. This may not be the most obvious solution, but this way you can guarantee that your variable has a valid value. And if $HOSTNAME turns

Re: setup-storage: set vgname to hostname

2009-09-25 Diskussionsfäden Darshaka Pathirana
On 24.09.2009 12:30, Thomas Neumann wrote: On 24.09.2009 10:50, Thomas Lange wrote: You can write a hook that replaces $HOSTNAME with the current hostname. This is the easiest way. As a bonus: It even works! ;) Cool! Thx! I'll give it a try! Just to be sure: I am really supposed to

setup-storage: set vgname to hostname

2009-09-24 Diskussionsfäden Darshaka Pathirana
Hi! I have the following disk_config-layout using setup-storage: , | disk_config sda bootable:1 fstabkey:uuid | primary /boot 250 ext3 rw | primary - 1500- - - | disk_config lvm | vg faiclient sda2 | faiclient-root / 250- ext3

Re: setup-storage: set vgname to hostname

2009-09-24 Diskussionsfäden Thomas Lange
On Thu, 24 Sep 2009 10:47:50 +0200, Darshaka Pathirana d...@syn-net.org said: Is there a way to set the vg-name same as the current hostname? Something like this (which does NOT work): , | disk_config sda bootable:1 fstabkey:uuid | primary /boot 250