Commit b0ecfc51 authored by Joanne Hugé's avatar Joanne Hugé

fix

parent 2bbac719
......@@ -10,10 +10,10 @@ download_debian_10_if_needed
#download_sysrescuecd_if_needed
#UPDATE THOSE VARIABLES DEPENDING ON YOUR SITE
MY_IF_NAME=eth0
MY_IP_ADDR=192.168.46.2
DHCP_RANGE=192.168.46.100,static,255.255.255.0
ROUTER_ADDR=192.168.46.2
MY_IF_NAME=VLAN100
MY_IP_ADDR=195.90.118.194
DHCP_RANGE=195.90.118.194,static,255.255.255.224
ROUTER_ADDR=195.90.118.193
DNS_SERVER=1.1.1.1
common=console=ttyS1,57600
......@@ -84,7 +84,7 @@ iface lo inet loopback
allow-hotplug eno1
#iface eno1 inet dhcp
iface eno1 inet static
address 192.168.46.$(( 50 + $i ))/24
address 195.90.118.$(( 50 + $i ))/24
allow-hotplug ens9f1
iface ens9f1 inet static
......@@ -115,19 +115,18 @@ exec dnsmasq -d --port=0 --log-dhcp \
--dhcp-boot=debian-installer/amd64/grubx64.efi \
--enable-tftp --tftp-root=$(realpath `dirname "$0"`) \
--conf-file=/dev/null \
--dhcp-host=00:22:4D:DD:64:39,192.168.46.101,1h \
--dhcp-host=00:22:4D:DD:65:35,192.168.46.102,1h \
--dhcp-host=00:22:4D:DD:64:C5,192.168.46.103,1h \
--dhcp-host=00:22:4D:DD:64:CD,192.168.46.104,1h \
--dhcp-host=00:22:4D:DD:64:85,192.168.46.105,1h \
--dhcp-host=00:22:4D:DD:65:41,192.168.46.106,1h \
--dhcp-host=00:22:4D:DD:64:5B,192.168.46.107,1h \
--dhcp-host=00:22:4D:DD:65:37,192.168.46.108,1h \
--dhcp-host=00:22:4D:DD:64:2D,192.168.46.109,1h \
--dhcp-host=00:22:4D:DD:64:B7,192.168.46.110,1h \
--dhcp-host=00:22:4D:DD:65:09,192.168.46.111,1h \
--dhcp-host=00:22:4D:DD:64:71,192.168.46.112,1h \
--dhcp-host=00:22:4D:DD:64:CB,192.168.46.113,1h \
--dhcp-host=00:22:4D:DD:64:D9,192.168.46.114,1h \
--dhcp-host=00:22:4D:DD:64:FF,192.168.46.115,1h
--dhcp-host=00:22:4D:DD:64:39,195.90.118.195,1h \
--dhcp-host=00:22:4D:DD:65:35,195.90.118.196,1h \
--dhcp-host=00:22:4D:DD:64:C5,195.90.118.197,1h \
--dhcp-host=00:22:4D:DD:64:CD,195.90.118.198,1h \
--dhcp-host=00:22:4D:DD:64:85,195.90.118.199,1h \
--dhcp-host=00:22:4D:DD:65:41,195.90.118.200,1h \
--dhcp-host=00:22:4D:DD:64:5B,195.90.118.201,1h \
--dhcp-host=00:22:4D:DD:65:37,195.90.118.202,1h \
--dhcp-host=00:22:4D:DD:64:2D,195.90.118.203,1h \
--dhcp-host=00:22:4D:DD:64:B7,195.90.118.204,1h \
--dhcp-host=00:22:4D:DD:65:09,195.90.118.205,1h \
--dhcp-host=00:22:4D:DD:64:71,195.90.118.206,1h \
--dhcp-host=00:22:4D:DD:64:CB,195.90.118.207,1h \
--dhcp-host=00:22:4D:DD:64:D9,195.90.118.208,1h \
--dhcp-host=00:22:4D:DD:64:FF,195.90.118.209,1h \
......@@ -33,10 +33,10 @@ d-i pkgsel/include string ssh aptitude bwm-ng ca-certificates dbus-user-session
# - enable page up/down to search the history
d-i preseed/late_command string set -e; \
cd /target/root; sed -i /^mesg/q .profile; \
mkdir -m 0700 .ssh; cd .ssh; tftp -g -r authorized_keys 192.168.46.2; \
mkdir -m 0700 .ssh; cd .ssh; tftp -g -r authorized_keys 195.90.118.194; \
cd ../../etc; rm -f grub.d/30_otheros; echo LANG=C.UTF-8 >default/locale; \
sed -i '/history-search-/s/# //' inputrc; \
cd network; tftp -g -r `hostname`/interfaces 192.168.46.2; \
cd network; tftp -g -r `hostname`/interfaces 195.90.118.194; \
in-target sh -ec 'passwd -ld root; sed -i /^GRUB_CMDLINE_LINUX_DEFAULT=/s/quiet// /etc/default/grub; update-grub'
d-i time/zone string UTC
tasksel tasksel/first string
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