Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
RapidSpace Autoinstall OS
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
RapidSpace Autoinstall OS
Commits
9388785a
Commit
9388785a
authored
Mar 19, 2020
by
Thomas Gambier
🚴🏼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
several fixes for Xinzhou setup
parent
e3ee5ca8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
dnsmasq
dnsmasq
+4
-5
gen_xinzhou.sh
gen_xinzhou.sh
+3
-1
No files found.
dnsmasq
View file @
9388785a
...
...
@@ -4,11 +4,9 @@
MY_IF_NAME
=
ens9f1
MY_IP_ADDR
=
10.0.45.51
DHCP_RANGE
=
10.0.45.100,10.0.45.200,255.255.255.0
ROUTER_ADDR
=
10.0.45.
5
1
ROUTER_ADDR
=
10.0.45.1
DNS_SERVER
=
1.2.4.8
LOCAL_SCRIPT
=
gen_xinzhou.sh
# apt install -y dnsmasq-base
LOCAL_SCRIPT
=
$(
realpath
`
dirname
"
$0
"
`
)
/gen_xinzhou.sh
if
[
!
-f
version.info
]
then
...
...
@@ -35,4 +33,5 @@ exec dnsmasq -d --port=0 --log-dhcp \
--dhcp-option
=
option:router,
$ROUTER_ADDR
\
--dhcp-option
=
option:dns-server,
$DNS_SERVER
\
--dhcp-boot
=
debian-installer/amd64/grubx64.efi
\
--enable-tftp
--tftp-root
=
$(
realpath
`
dirname
"
$0
"
`
)
--enable-tftp
--tftp-root
=
$(
realpath
`
dirname
"
$0
"
`
)
\
--conf-file
=
/dev/null
gen_xinzhou.sh
View file @
9388785a
...
...
@@ -6,6 +6,7 @@ common=console=ttyS1,57600
mac
=
'
b8:59:9f:07:7d:f3
b8:59:9f:07:7f:c3
b8:59:9f:07:7f:bb
'
i
=
2
hostname_prefix
=
xinzhou-tiogapass-
...
...
@@ -61,7 +62,7 @@ iface eno1 inet static
allow-hotplug ens9f1
iface ens9f1 inet static
address 10.0.45.
$((
50
+
$i
))
/24
gateway 10.0.45.
5
1
gateway 10.0.45.1
dns-nameservers 1.2.4.8
#allow-hotplug ens9f0
...
...
@@ -70,4 +71,5 @@ iface ens9f1 inet static
# address 113.24.192.26/30
# gateway 113.24.192.25
EOF
i
=
`
expr
$i
+ 1
`
done
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment