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
668ba452
Commit
668ba452
authored
Sep 15, 2020
by
Thomas Gambier
🚴🏼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add CentOS installation option to Xinzhou Unicom rack
parent
6e9a2f5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
dnsmasq_xinzhou_unicom.sh
dnsmasq_xinzhou_unicom.sh
+14
-2
No files found.
dnsmasq_xinzhou_unicom.sh
View file @
668ba452
#!/bin/sh
#!/bin/bash
# To install CentOS apache must be installed and server CentOS base
# root@raspberrypi:/ apt install apache2 -y
# root@raspberrypi:/ systemctl start httpd
# root@raspberrypi:/var/www/html# cp -a /root/rapidspace-autoinstall-os/centos-installer/ .
# root@raspberrypi:/var/www/html# chown pi: -R centos-installer/
# root@raspberrypi:/var/www/html# wget http://192.168.46.2/centos-installer/media.repo # just check
set
-e
set
-e
SCRIPT_DIR
=
$(
realpath
`
dirname
"
$0
"
`
)
SCRIPT_DIR
=
$(
realpath
`
dirname
"
$0
"
`
)
...
@@ -8,6 +15,7 @@ SCRIPT_DIR=$(realpath `dirname "$0"`)
...
@@ -8,6 +15,7 @@ SCRIPT_DIR=$(realpath `dirname "$0"`)
download_debian_10_if_needed
download_debian_10_if_needed
download_sysrescuecd_if_needed
download_sysrescuecd_if_needed
download_centos_8_if_needed
#UPDATE THOSE VARIABLES DEPENDING ON YOUR SITE
#UPDATE THOSE VARIABLES DEPENDING ON YOUR SITE
MY_IF_NAME
=
ens9f1
MY_IF_NAME
=
ens9f1
...
@@ -47,10 +55,14 @@ cat <<EOF
...
@@ -47,10 +55,14 @@ cat <<EOF
else unset timeout
else unset timeout
fi
fi
menuentry 'Install Debian' {
menuentry 'Install Debian
10
' {
linux /debian-installer/amd64/linux vga=788 url=tftp://
\$
pxe_default_server/preseed_xinzhou_unicom.cfg language=C country=CN keymap=us hostname=
${
hostname_prefix
}
\$
i domain= --- mitigations=off
$common
linux /debian-installer/amd64/linux vga=788 url=tftp://
\$
pxe_default_server/preseed_xinzhou_unicom.cfg language=C country=CN keymap=us hostname=
${
hostname_prefix
}
\$
i domain= --- mitigations=off
$common
initrd /debian-installer/amd64/initrd.gz
initrd /debian-installer/amd64/initrd.gz
}
}
menuentry 'Install CentOS' {
linux /centos-installer/images/pxeboot/vmlinuz checksum ip=dhcp inst.text inst.repo=http://
\$
pxe_default_server/centos-installer/
$common
initrd /centos-installer/images/pxeboot/initrd.img
}
menuentry 'SystemRescueCd' {
menuentry 'SystemRescueCd' {
linux /sysresccd/sysresccd/boot/x86_64/vmlinuz archisobasedir=sysresccd archiso_http_srv=http://
\$
pxe_default_server:69/sysresccd/ checksum ip=dhcp
$common
linux /sysresccd/sysresccd/boot/x86_64/vmlinuz archisobasedir=sysresccd archiso_http_srv=http://
\$
pxe_default_server:69/sysresccd/ checksum ip=dhcp
$common
initrd /sysresccd/sysresccd/boot/intel_ucode.img /sysresccd/sysresccd/boot/amd_ucode.img /sysresccd/sysresccd/boot/x86_64/sysresccd.img
initrd /sysresccd/sysresccd/boot/intel_ucode.img /sysresccd/sysresccd/boot/amd_ucode.img /sysresccd/sysresccd/boot/x86_64/sysresccd.img
...
...
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