Commit 09fe336e authored by Cyril Rohr's avatar Cyril Rohr
Browse files

Hard links are replaced by symbolic links. valid_on property for environments is now a scalar.

parent 96a512b5
environment 'sid-x64-base-1.0' do
state "stable"
file({:path => "/home/nancy/xdelaruelle/images/sid-x64-base-1.0.tgz", :md5 => "e39be32c087f0c9777fd0b0ad7d12050"})
valid_on "Dell PE1855, Dell PE1950, HP DL140G3, HP DL145G2, IBM e325, IBM e326, IBM e326m, Sun V20z, Sun X2200 M2, Sun X4100".split(", ")
valid_on "Dell PE1855, Dell PE1950, HP DL140G3, HP DL145G2, IBM e325, IBM e326, IBM e326m, Sun V20z, Sun X2200 M2, Sun X4100"
kernel "2.6.18-8"
based_on "Debian version sid for amd64"
consoles [{:port => "ttyS0", :bps => 34800}]
......@@ -16,7 +16,7 @@ end
environment 'sid-x64-base-1.1' do
state "stable"
file({:path => "/grid5000/images/sid-x64-base-1.1.tgz", :md5 => "756ccc2096e9feacde85500d33683dba"})
valid_on "Dell PE1855, Dell PE1950, HP DL140G3, HP DL145G2, HP DL385G2, IBM e325, IBM e326, IBM e326m, Sun V20z, Sun X2200 M2, Sun X4100".split(", ")
valid_on "Dell PE1855, Dell PE1950, HP DL140G3, HP DL145G2, HP DL385G2, IBM e325, IBM e326, IBM e326m, Sun V20z, Sun X2200 M2, Sun X4100"
kernel "2.6.24"
based_on "Debian version sid for amd64"
consoles [{:port => "ttyS0", :bps => 34800}]
......@@ -31,7 +31,7 @@ end
environment 'sid-x64-nfs-1.0' do
state "stable"
file({:path => "/home/nancy/xdelaruelle/images/sid-x64-nfs-1.0.tgz", :md5 => "6e004d1ac25e86a1dadc09d28f968eb5"})
valid_on "Dell PE1855, Dell PE1950, HP DL140G3, HP DL145G2, IBM e325, IBM e326, IBM e326m, Sun V20z, Sun X2200 M2, Sun X4100".split(", ")
valid_on "Dell PE1855, Dell PE1950, HP DL140G3, HP DL145G2, IBM e325, IBM e326, IBM e326m, Sun V20z, Sun X2200 M2, Sun X4100"
kernel "2.6.18-4"
based_on "Debian version sid for amd64"
consoles [{:port => "ttyS0", :bps => 34800}]
......@@ -46,7 +46,7 @@ end
environment 'sid-x64-nfs-1.1' do
state "stable"
file({:path => "/grid5000/images/sid-x64-nfs-1.1.tgz", :md5 => "4218f5a9bfea4a759fa684db1ec4d89c"})
valid_on "Dell PE1855, Dell PE1950, HP DL140G3, HP DL145G2, IBM e325, IBM e326, IBM e326m, Sun V20z, Sun X2200 M2, Sun X4100".split(", ")
valid_on "Dell PE1855, Dell PE1950, HP DL140G3, HP DL145G2, IBM e325, IBM e326, IBM e326m, Sun V20z, Sun X2200 M2, Sun X4100"
kernel "2.6.24.3"
based_on "Debian version sid for amd64"
consoles [{:port => "ttyS0", :bps => 34800}]
......@@ -61,7 +61,7 @@ end
environment 'sid-x64-big-1.1' do
state "stable"
file({:path => "/grid5000/images/sid-x64-big-1.1.tgz", :md5 => "d514bee74404ed5f64ff41b2f60c4f7f"})
valid_on "Dell PE1855, Dell PE1950, HP DL140G3, HP DL145G2, IBM e325, IBM e326, IBM e326m, Sun V20z, Sun X2200 M2, Sun X4100".split(", ")
valid_on "Dell PE1855, Dell PE1950, HP DL140G3, HP DL145G2, IBM e325, IBM e326, IBM e326m, Sun V20z, Sun X2200 M2, Sun X4100"
kernel "2.6.24.3"
based_on "Debian version sid for amd64"
consoles [{:port => "ttyS0", :bps => 34800}]
......@@ -76,7 +76,7 @@ end
environment 'etch-x64-base-1.0' do
state "stable"
file({:path => "/grid5000/images/etch-x64-base-1.0.tgz", :md5 => "adcd603db66d9e3da98926174f7d69aa"})
valid_on "Dell PE1855, Dell PE1950, HP DL140G3, HP DL145G2, IBM x3455,IBM e325, IBM e326, IBM e326m, Sun V20z, Sun X2200 M2, Sun X4100, Altix Xe 310".split(", ")
valid_on "Dell PE1855, Dell PE1950, HP DL140G3, HP DL145G2, IBM x3455, IBM e325, IBM e326, IBM e326m, Sun V20z, Sun X2200 M2, Sun X4100, Altix Xe 310"
kernel "2.6.18-6-amd64"
based_on "Debian version etch for amd64"
consoles [{:port => "ttyS0", :bps => 34800}]
......@@ -91,7 +91,7 @@ end
environment 'etch-x64-base-1.1' do
state "stable"
file({:path => "/grid5000/images/etch-x64-base-1.1.tgz", :md5 => "457cc632376c2c4cefd975b36bf65072"})
valid_on "Dell PE1855, Dell PE1950, HP DL140G3, HP DL145G2, IBM x3455,IBM e325, IBM e326, IBM e326m, Sun V20z, Sun X2200 M2, Sun X4100, Altix Xe 310".split(", ")
valid_on "Dell PE1855, Dell PE1950, HP DL140G3, HP DL145G2, IBM x3455, IBM e325, IBM e326, IBM e326m, Sun V20z, Sun X2200 M2, Sun X4100, Altix Xe 310"
kernel "2.6.18-6-amd64"
based_on "Debian version etch for amd64"
consoles [{:port => "ttyS0", :bps => 34800}]
......@@ -106,7 +106,7 @@ end
environment 'etch-x64-nfs-1.0' do
state "stable"
file({:path => "/grid5000/images/etch-x64-nfs-1.0.tgz", :md5 => "c76462698ae0480aaa48c9b707b96da5"})
valid_on "Dell PE1855, Dell PE1950, HP DL140G3, HP DL145G2, IBM x3455,IBM e325, IBM e326, IBM e326m, Sun V20z, Sun X2200 M2, Sun X4100, Altix Xe 310".split(", ")
valid_on "Dell PE1855, Dell PE1950, HP DL140G3, HP DL145G2, IBM x3455, IBM e325, IBM e326, IBM e326m, Sun V20z, Sun X2200 M2, Sun X4100, Altix Xe 310"
kernel "2.6.18-6-amd64"
based_on "Debian version etch for amd64"
consoles [{:port => "ttyS0", :bps => 34800}]
......@@ -121,7 +121,7 @@ end
environment 'etch-x64-nfs-1.1' do
state "stable"
file({:path => "/grid5000/images/etch-x64-nfs-1.1.tgz", :md5 => "303740c75b7a74c94bb5909d3aa8ac4f"})
valid_on "Dell PE1855, Dell PE1950, HP DL140G3, HP DL145G2, IBM x3455,IBM e325, IBM e326, IBM e326m, Sun V20z, Sun X2200 M2, Sun X4100, Altix Xe 310".split(", ")
valid_on "Dell PE1855, Dell PE1950, HP DL140G3, HP DL145G2, IBM x3455, IBM e325, IBM e326, IBM e326m, Sun V20z, Sun X2200 M2, Sun X4100, Altix Xe 310"
kernel "2.6.18-6-amd64"
based_on "Debian version etch for amd64"
consoles [{:port => "ttyS0", :bps => 34800}]
......@@ -136,7 +136,7 @@ end
environment 'etch-x64-big-1.0' do
state "stable"
file({:path => "/grid5000/images/etch-x64-big-1.0.tgz", :md5 => "5ddf6e898c11846dfb3eb9b2def2d2de"})
valid_on "Dell PE1855, Dell PE1950, HP DL140G3, HP DL145G2, IBM x3455,IBM e325, IBM e326, IBM e326m, Sun V20z, Sun X2200 M2, Sun X4100, Altix Xe 310".split(", ")
valid_on "Dell PE1855, Dell PE1950, HP DL140G3, HP DL145G2, IBM x3455, IBM e325, IBM e326, IBM e326m, Sun V20z, Sun X2200 M2, Sun X4100, Altix Xe 310"
kernel "2.6.18-6-amd64"
based_on "Debian version etch for amd64"
consoles [{:port => "ttyS0", :bps => 34800}]
......@@ -151,7 +151,7 @@ end
environment 'etch-x64-big-1.1' do
state "stable"
file({:path => "/grid5000/images/etch-x64-big-1.1.tgz", :md5 => "6c971c97eb2f62c056e343cbe9f4a71d"})
valid_on "Dell PE1855, Dell PE1950, HP DL140G3, HP DL145G2, IBM x3455,IBM e325, IBM e326, IBM e326m, Sun V20z, Sun X2200 M2, Sun X4100, Altix Xe 310".split(", ")
valid_on "Dell PE1855, Dell PE1950, HP DL140G3, HP DL145G2, IBM x3455, IBM e325, IBM e326, IBM e326m, Sun V20z, Sun X2200 M2, Sun X4100, Altix Xe 310"
kernel "2.6.18-6-amd64"
based_on "Debian version etch for amd64"
consoles [{:port => "ttyS0", :bps => 34800}]
......@@ -166,7 +166,7 @@ end
environment 'etch-x64-xen-1.0' do
state "testing"
file({:path => "/grid5000/images/etch-x64-xen-1.0.tgz", :md5 => nil})
valid_on "Dell PE1855, Dell PE1950, HP DL140G3, HP DL145G2, IBM x3455,IBM e325, IBM e326, IBM e326m, Sun V20z, Sun X2200 M2, Sun X4100, Altix Xe 310".split(", ")
valid_on "Dell PE1855, Dell PE1950, HP DL140G3, HP DL145G2, IBM x3455, IBM e325, IBM e326, IBM e326m, Sun V20z, Sun X2200 M2, Sun X4100, Altix Xe 310"
kernel "2.6.18-6-xen-amd64"
based_on "Debian version etch for amd64"
consoles [{:port => "ttyS0", :bps => 34800}]
......@@ -181,7 +181,7 @@ end
environment 'lenny-x64-base-0.9' do
state "stable"
file({:path => "/grid5000/images/lenny-x64-base-0.9.tgz", :md5 => "c1913bf8de22f52ef213151c25208a4a"})
valid_on "Dell PE1855, Dell PE1950, HP DL140G3, HP DL145G2, IBM x3455,IBM e325, IBM e326, IBM e326m, Sun V20z, Sun X2200 M2, Sun X4100, Altix Xe 310".split(", ")
valid_on "Dell PE1855, Dell PE1950, HP DL140G3, HP DL145G2, IBM x3455, IBM e325, IBM e326, IBM e326m, Sun V20z, Sun X2200 M2, Sun X4100, Altix Xe 310"
kernel "2.6.24.3"
based_on "Debian version lenny for amd64"
consoles [{:port => "ttyS0", :bps => 34800}]
......@@ -196,7 +196,7 @@ end
environment 'lenny-x64-base-1.0' do
state "build"
file({:path => "/grid5000/images/lenny-x64-base-1.0.tgz", :md5 => nil})
valid_on "Dell PE1855, Dell PE1950, HP DL140G3, HP DL145G2, IBM x3455,IBM e325, IBM e326, IBM e326m, Sun V20z, Sun X2200 M2, Sun X4100, Altix Xe 310".split(", ")
valid_on "Dell PE1855, Dell PE1950, HP DL140G3, HP DL145G2, IBM x3455, IBM e325, IBM e326, IBM e326m, Sun V20z, Sun X2200 M2, Sun X4100, Altix Xe 310"
kernel nil
based_on "Debian version lenny for amd64"
consoles [{:port => "ttyS0", :bps => 34800}]
......@@ -211,7 +211,7 @@ end
environment 'lenny-x64-nfs-0.9' do
state "stable"
file({:path => "/grid5000/images/lenny-x64-nfs-0.9.tgz", :md5 => "7975882dec6bde601346c0152e161638"})
valid_on "Dell PE1855, Dell PE1950, HP DL140G3, HP DL145G2, IBM x3455,IBM e325, IBM e326, IBM e326m, Sun V20z, Sun X2200 M2, Sun X4100, Altix Xe 310".split(", ")
valid_on "Dell PE1855, Dell PE1950, HP DL140G3, HP DL145G2, IBM x3455, IBM e325, IBM e326, IBM e326m, Sun V20z, Sun X2200 M2, Sun X4100, Altix Xe 310"
kernel "2.6.24.3"
based_on "Debian version lenny for amd64"
consoles [{:port => "ttyS0", :bps => 34800}]
......@@ -226,7 +226,7 @@ end
environment 'lenny-x64-big-0.9' do
state "stable"
file({:path => "/grid5000/images/lenny-x64-big-0.9.tgz", :md5 => "ead20673233d0b9162ba56481d596add"})
valid_on "Dell PE1855, Dell PE1950, HP DL140G3, HP DL145G2, IBM x3455,IBM e325, IBM e326, IBM e326m, Sun V20z, Sun X2200 M2, Sun X4100, Altix Xe 310".split(", ")
valid_on "Dell PE1855, Dell PE1950, HP DL140G3, HP DL145G2, IBM x3455, IBM e325, IBM e326, IBM e326m, Sun V20z, Sun X2200 M2, Sun X4100, Altix Xe 310"
kernel "2.6.24.3"
based_on "Debian version lenny for amd64"
consoles [{:port => "ttyS0", :bps => 34800}]
......
......@@ -164,11 +164,13 @@ class ReferenceGenerator
end
end
groups.has_key?(G5K::Link) and groups[G5K::Link].each do |link|
from = File.join(repository, "#{link.from}.json")
to = File.join(repository, link.path)
unless File.exists?(to)
puts "Hard link to be written = \t#{to} -> #{from}"
FileUtils.link(from, to, :force => true) unless options[:simulate]
FileUtils.cd(repository) do |dir|
to = File.join(".", link.path)
from = File.join([".."]*(to.count(File::SEPARATOR)-1), "#{link.from}.json")
unless File.exists?(to)
puts "Symbolic link to be written = \t#{to} -> #{from}"
FileUtils.ln_s(from, to, :force => true) unless options[:simulate]
end
end
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment