Commit eba01eb3 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼 Committed by Lu Xu

Update scripts to automatically install lille-edu-tiogapass-003 and lille-edu-tiogapass-004

parent ee8c8163
...@@ -23,17 +23,25 @@ then ...@@ -23,17 +23,25 @@ then
set hostname=lille-edu-leopard-000 set hostname=lille-edu-leopard-000
set interface=eno1 set interface=eno1
elif [ \$net_default_mac = 00:22:4d:d9:0a:aa ]; elif [ \$net_default_mac = 00:22:4d:d9:0a:aa ];
then then
set hostname=lille-edu-tiogapass-001 set hostname=lille-edu-tiogapass-001
set interface=ens9 set interface=ens9
elif [ \$net_default_mac = 00:22:4d:da:ca:87 ]; elif [ \$net_default_mac = 00:22:4d:da:ca:87 ];
then then
set hostname=lille-edu-capri-001 set hostname=lille-edu-capri-001
set interface=eno1 set interface=eno1
elif [ \$net_default_mac = 00:22:4d:da:ca:a7 ]; elif [ \$net_default_mac = 00:22:4d:da:ca:a7 ];
then then
set hostname=lille-edu-capri-002 set hostname=lille-edu-capri-002
set inteface=eno1 set inteface=eno1
elif [ \$net_default_mac = 00:22:4d:da:5b:a0 ];
then
set hostname=lille-edu-tiogapass-003
set inteface=ens9
elif [ \$net_default_mac = 00:22:4d:da:8a:42 ];
then
set hostname=lille-edu-tiogapass-004
set inteface=ens9
else else
set hostname= set hostname=
set interface= set interface=
...@@ -76,7 +84,7 @@ EOF ...@@ -76,7 +84,7 @@ EOF
) >debian-installer/amd64/grub/grub.cfg ) >debian-installer/amd64/grub/grub.cfg
for hostname in lille-edu-leopard-000 lille-edu-tiogapass-001 lille-edu-capri-001 lille-edu-capri-002 for hostname in lille-edu-leopard-000 lille-edu-tiogapass-001 lille-edu-capri-001 lille-edu-capri-002 lille-edu-tiogapass-003 lille-edu-tiogapass-004
do do
mkdir -p $hostname mkdir -p $hostname
cat > $hostname/interfaces <<EOF cat > $hostname/interfaces <<EOF
......
...@@ -12,7 +12,7 @@ d-i mirror/country string manual ...@@ -12,7 +12,7 @@ d-i mirror/country string manual
d-i mirror/http/hostname string ftp.fr.debian.org d-i mirror/http/hostname string ftp.fr.debian.org
d-i mirror/http/directory string /debian d-i mirror/http/directory string /debian
d-i mirror/http/proxy string d-i mirror/http/proxy string
d-i partman/early_command string set -e; x=`grep -l 488397168 /sys/block/*/size`; x=${x%/*}; x=/dev/${x##*/}; debconf-set partman-auto/disk $x; debconf-set grub-installer/bootdev $x # TODO d-i partman/early_command string set -e; x=`grep -l 468862128 /sys/block/*/size`; x=${x%/*}; x=/dev/${x##*/}; debconf-set partman-auto/disk $x; debconf-set grub-installer/bootdev $x # TODO
d-i partman-auto/expert_recipe string : 1024 1 1024 free method{ efi } format{ } . 1 1 -1 xfs method{ format } format{ } use_filesystem{ } filesystem{ xfs } mountpoint{ / } options/noatime{ } . d-i partman-auto/expert_recipe string : 1024 1 1024 free method{ efi } format{ } . 1 1 -1 xfs method{ format } format{ } use_filesystem{ } filesystem{ xfs } mountpoint{ / } options/noatime{ } .
d-i partman-auto/method string regular d-i partman-auto/method string regular
d-i partman-basicfilesystems/no_swap string false d-i partman-basicfilesystems/no_swap string false
......
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