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
Lu Xu
RapidSpace Autoinstall OS
Commits
9245b18f
Commit
9245b18f
authored
Sep 08, 2020
by
Thomas Gambier
🚴🏼
Browse files
Options
Browse Files
Download
Plain Diff
Centos
See merge request
tomo/rapidspace-autoinstall-os!1
parents
0982beb4
82abfc40
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletion
+21
-1
dnsmasq_kuklen.sh
dnsmasq_kuklen.sh
+13
-1
download_boot_systems.sh
download_boot_systems.sh
+8
-0
No files found.
dnsmasq_kuklen.sh
View file @
9245b18f
#!/bin/bash
#!/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
=
eth0
MY_IF_NAME
=
eth0
...
@@ -40,10 +48,14 @@ cat <<EOF
...
@@ -40,10 +48,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_kuklen.cfg language=C country=SE keymap=us hostname=
\$
hostname domain= --- mitigations=off
$common
linux /debian-installer/amd64/linux vga=788 url=tftp://
\$
pxe_default_server/preseed_kuklen.cfg language=C country=SE keymap=us hostname=
\$
hostname 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
...
...
download_boot_systems.sh
View file @
9245b18f
...
@@ -16,3 +16,11 @@ then
...
@@ -16,3 +16,11 @@ then
mount
-o
loop systemrescuecd-amd64-6.1.1.iso sysresccd
mount
-o
loop systemrescuecd-amd64-6.1.1.iso sysresccd
fi
fi
}
}
download_centos_8_if_needed
()
{
if
[
!
-f
version.info
]
then
wget http://mirrors.neterra.net/centos/8.2.2004/isos/x86_64/CentOS-8.2.2004-x86_64-minimal.iso
mkdir
-p
centos-installer
mount
-o
loop CentOS-8.2.2004-x86_64-minimal.iso centos-installer
fi
}
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