We don't need *_latest and *_lts files as we have a single image which can install any version We don't need a separate templates for a CE version Change-Id: Iffc94a892b96d54fbbaddb40e62101e4bab5dc5echanges/42/19742/8
parent
35c1f299d0
commit
0616bb953a
@ -1,13 +0,0 @@
|
||||
menuentry "Install ##VERSION## sip:providerCE - DHCP" {
|
||||
echo 'Loading kernel...'
|
||||
linux /boot/%SHORT_NAME%/vmlinuz live-media-path=/live/%GRML_NAME%/ boot=live bootid=%BOOTID% apm=power-off mgag200.modeset=0 vga=791 quiet nomce net.ifnames=0 noquick distri=grml-sipwise ngcpce ssh=sipwise debianrelease=##DIST## ngcpvers=##VERSION## scripts ngcphostname=spce ngcpnw.dhcp
|
||||
echo 'Loading initrd...'
|
||||
initrd /boot/%SHORT_NAME%/initrd.img
|
||||
}
|
||||
|
||||
menuentry "Install ##VERSION## sip:providerCE - static NW config" {
|
||||
echo 'Loading kernel...'
|
||||
linux /boot/%SHORT_NAME%/vmlinuz live-media-path=/live/%GRML_NAME%/ boot=live bootid=%BOOTID% apm=power-off mgag200.modeset=0 vga=791 quiet nomce net.ifnames=0 noquick distri=grml-sipwise ngcpce ssh=sipwise debianrelease=##DIST## ngcpvers=##VERSION## scripts ngcphostname=spce nodhcp ip=192.168.1.100::192.168.1.1:255.255.255.0:spce:eth0:off dns=8.8.8.8,8.8.4.4
|
||||
echo 'Loading initrd...'
|
||||
initrd /boot/%SHORT_NAME%/initrd.img
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
menuentry "Install ##VERSION## LTS sip:providerCE - DHCP" {
|
||||
echo 'Loading kernel...'
|
||||
linux /boot/%SHORT_NAME%/vmlinuz initrd=/boot/%SHORT_NAME%/initrd.img live-media-path=/live/%GRML_NAME%/ boot=live bootid=%BOOTID% apm=power-off mgag200.modeset=0 vga=791 quiet nomce net.ifnames=0 noquick distri=grml-sipwise ngcpce ssh=sipwise debianrelease=##DIST## ngcpvers=##VERSION## scripts ngcphostname=spce ngcpnw.dhcp
|
||||
echo 'Loading initrd...'
|
||||
initrd /boot/%SHORT_NAME%/initrd.img
|
||||
}
|
||||
|
||||
menuentry "Install ##VERSION## LTS sip:providerCE - static NW" {
|
||||
echo 'Loading kernel...'
|
||||
linux /boot/%SHORT_NAME%/vmlinuz live-media-path=/live/%GRML_NAME%/ boot=live bootid=%BOOTID% apm=power-off mgag200.modeset=0 vga=791 quiet nomce net.ifnames=0 noquick distri=grml-sipwise ngcpce ssh=sipwise debianrelease=##DIST## ngcpvers=##VERSION## scripts ngcphostname=spce nodhcp ip=192.168.1.100::192.168.1.1:255.255.255.0:spce:eth0:off dns=8.8.8.8,8.8.4.4
|
||||
echo 'Loading initrd...'
|
||||
initrd /boot/%SHORT_NAME%/initrd.img
|
||||
}
|
@ -1,25 +0,0 @@
|
||||
label ce##VERSION##
|
||||
menu label Install ##VERSION## sip:providerCE - DHCP
|
||||
kernel /boot/%SHORT_NAME%/vmlinuz
|
||||
append initrd=/boot/%SHORT_NAME%/initrd.img live-media-path=/live/%GRML_NAME%/ boot=live bootid=%BOOTID% apm=power-off mgag200.modeset=0 vga=791 quiet nomce net.ifnames=0 noquick distri=grml-sipwise ngcpce ssh=sipwise debianrelease=##DIST## ngcpvers=##VERSION## scripts ngcphostname=spce ngcpnw.dhcp
|
||||
|
||||
text help
|
||||
Install sip:provider community edition,
|
||||
latest/##VERSION## available stable release.
|
||||
|
||||
Retrieve network configuration via DHCP.
|
||||
endtext
|
||||
|
||||
label cenw##VERSION##
|
||||
menu label Install ##VERSION## sip:providerCE - static NW
|
||||
kernel /boot/%SHORT_NAME%/vmlinuz
|
||||
append initrd=/boot/%SHORT_NAME%/initrd.img live-media-path=/live/%GRML_NAME%/ boot=live bootid=%BOOTID% apm=power-off mgag200.modeset=0 vga=791 quiet nomce net.ifnames=0 noquick distri=grml-sipwise ngcpce ssh=sipwise debianrelease=##DIST## ngcpvers=##VERSION## scripts ngcphostname=spce nodhcp ip=192.168.1.100::192.168.1.1:255.255.255.0:spce:eth0:off dns=8.8.8.8,8.8.4.4
|
||||
|
||||
text help
|
||||
Install sip:provider community edition,
|
||||
latest/##VERSION## available stable release.
|
||||
|
||||
Use static IP configuration, adjust
|
||||
ip=... and dns=... options in boot
|
||||
command line as necessary.
|
||||
endtext
|
@ -1,25 +0,0 @@
|
||||
label celts##VERSION##
|
||||
menu label Install ##VERSION## LTS sip:providerCE - DHCP
|
||||
kernel /boot/%SHORT_NAME%/vmlinuz
|
||||
append initrd=/boot/%SHORT_NAME%/initrd.img live-media-path=/live/%GRML_NAME%/ boot=live bootid=%BOOTID% apm=power-off mgag200.modeset=0 vga=791 quiet nomce net.ifnames=0 noquick distri=grml-sipwise ngcpce ssh=sipwise debianrelease=##DIST## ngcpvers=##VERSION## scripts ngcphostname=spce ngcpnw.dhcp
|
||||
|
||||
text help
|
||||
Install sip:provider community edition,
|
||||
LTS version ##VERSION##.
|
||||
|
||||
Retrieve network configuration via DHCP.
|
||||
endtext
|
||||
|
||||
label celtsnw##VERSION##
|
||||
menu label Install ##VERSION## LTS sip:providerCE - static NW
|
||||
kernel /boot/%SHORT_NAME%/vmlinuz
|
||||
append initrd=/boot/%SHORT_NAME%/initrd.img live-media-path=/live/%GRML_NAME%/ boot=live bootid=%BOOTID% apm=power-off mgag200.modeset=0 vga=791 quiet nomce net.ifnames=0 noquick distri=grml-sipwise ngcpce ssh=sipwise debianrelease=##DIST## ngcpvers=##VERSION## scripts ngcphostname=spce nodhcp ip=192.168.1.100::192.168.1.1:255.255.255.0:spce:eth0:off dns=8.8.8.8,8.8.4.4
|
||||
|
||||
text help
|
||||
Install sip:provider community edition,
|
||||
LTS version ##VERSION##.
|
||||
|
||||
Use static IP configuration, adjust
|
||||
ip=... and dns=... options in boot
|
||||
command line as necessary.
|
||||
endtext
|
Before Width: | Height: | Size: 6.2 KiB |
@ -1,74 +0,0 @@
|
||||
## grub2 configuration - important for [U]EFI boot
|
||||
source /boot/grub/header.cfg
|
||||
|
||||
# main entries
|
||||
menuentry "Rescue system boot (%VERSION%)" {
|
||||
echo 'Loading kernel...'
|
||||
linux /boot/%SHORT_NAME%/vmlinuz live-media-path=/live/%GRML_NAME%/ boot=live bootid=%BOOTID% apm=power-off mgag200.modeset=0 vga=791 quiet nomce net.ifnames=0 noquick distri=grml-sipwise ssh=sipwise
|
||||
echo 'Loading initrd...'
|
||||
initrd /boot/%SHORT_NAME%/initrd.img
|
||||
}
|
||||
|
||||
source /boot/grub/sipwise_latest.cfg
|
||||
source /boot/grub/sipwise_lts.cfg
|
||||
|
||||
menuentry "Install plain Debian/stretch 64bit - DHCP" {
|
||||
echo 'Loading kernel...'
|
||||
linux /boot/%SHORT_NAME%/vmlinuz live-media-path=/live/%GRML_NAME%/ boot=live bootid=%BOOTID% apm=power-off mgag200.modeset=0 vga=791 quiet nomce net.ifnames=0 noquick distri=grml-sipwise ssh=sipwise debianrelease=stretch scripts
|
||||
echo 'Loading initrd...'
|
||||
initrd /boot/%SHORT_NAME%/initrd.img
|
||||
}
|
||||
|
||||
menuentry "Install plain Debian/stretch 64bit - static NW" {
|
||||
echo 'Loading kernel...'
|
||||
linux /boot/%SHORT_NAME%/vmlinuz live-media-path=/live/%GRML_NAME%/ boot=live bootid=%BOOTID% apm=power-off mgag200.modeset=0 vga=791 quiet nomce net.ifnames=0 noquick distri=grml-sipwise ssh=sipwise debianrelease=stretch scripts ip=192.168.1.100::192.168.1.1:255.255.255.0:debian:eth0:off dns=8.8.8.8,8.8.4.4
|
||||
echo 'Loading initrd...'
|
||||
initrd /boot/%SHORT_NAME%/initrd.img
|
||||
}
|
||||
|
||||
menuentry "Install plain Debian/jessie 64bit - DHCP" {
|
||||
echo 'Loading kernel...'
|
||||
linux /boot/%SHORT_NAME%/vmlinuz live-media-path=/live/%GRML_NAME%/ boot=live bootid=%BOOTID% apm=power-off mgag200.modeset=0 vga=791 quiet nomce net.ifnames=0 noquick distri=grml-sipwise ssh=sipwise debianrelease=jessie scripts
|
||||
echo 'Loading initrd...'
|
||||
initrd /boot/%SHORT_NAME%/initrd.img
|
||||
}
|
||||
|
||||
menuentry "Install plain Debian/jessie 64bit - static NW" {
|
||||
echo 'Loading kernel...'
|
||||
linux /boot/%SHORT_NAME%/vmlinuz live-media-path=/live/%GRML_NAME%/ boot=live bootid=%BOOTID% apm=power-off mgag200.modeset=0 vga=791 quiet nomce net.ifnames=0 noquick distri=grml-sipwise ssh=sipwise debianrelease=jessie scripts ip=192.168.1.100::192.168.1.1:255.255.255.0:debian:eth0:off dns=8.8.8.8,8.8.4.4
|
||||
echo 'Loading initrd...'
|
||||
initrd /boot/%SHORT_NAME%/initrd.img
|
||||
}
|
||||
|
||||
menuentry "Install plain Debian/wheezy 64bit - DHCP" {
|
||||
echo 'Loading kernel...'
|
||||
linux /boot/%SHORT_NAME%/vmlinuz live-media-path=/live/%GRML_NAME%/ boot=live bootid=%BOOTID% apm=power-off mgag200.modeset=0 vga=791 quiet nomce net.ifnames=0 noquick distri=grml-sipwise ssh=sipwise debianrelease=wheezy scripts
|
||||
echo 'Loading initrd...'
|
||||
initrd /boot/%SHORT_NAME%/initrd.img
|
||||
}
|
||||
|
||||
menuentry "Install plain Debian/wheezy 64bit - static NW" {
|
||||
echo 'Loading kernel...'
|
||||
linux /boot/%SHORT_NAME%/vmlinuz live-media-path=/live/%GRML_NAME%/ boot=live bootid=%BOOTID% apm=power-off mgag200.modeset=0 vga=791 quiet nomce net.ifnames=0 noquick distri=grml-sipwise ssh=sipwise debianrelease=wheezy scripts ip=192.168.1.100::192.168.1.1:255.255.255.0:debian:eth0:off dns=8.8.8.8,8.8.4.4
|
||||
echo 'Loading initrd...'
|
||||
initrd /boot/%SHORT_NAME%/initrd.img
|
||||
}
|
||||
|
||||
menuentry "Install plain Debian/squeeze 64bit - DHCP" {
|
||||
echo 'Loading kernel...'
|
||||
linux /boot/%SHORT_NAME%/vmlinuz live-media-path=/live/%GRML_NAME%/ boot=live bootid=%BOOTID% apm=power-off mgag200.modeset=0 vga=791 quiet nomce net.ifnames=0 noquick distri=grml-sipwise ssh=sipwise debianrelease=squeeze scripts
|
||||
echo 'Loading initrd...'
|
||||
initrd /boot/%SHORT_NAME%/initrd.img
|
||||
}
|
||||
|
||||
menuentry "Install plain Debian/squeeze 64bit - static NW" {
|
||||
echo 'Loading kernel...'
|
||||
linux /boot/%SHORT_NAME%/vmlinuz live-media-path=/live/%GRML_NAME%/ boot=live bootid=%BOOTID% apm=power-off mgag200.modeset=0 vga=791 quiet nomce net.ifnames=0 noquick distri=grml-sipwise ssh=sipwise debianrelease=squeeze scripts ip=192.168.1.100::192.168.1.1:255.255.255.0:debian:eth0:off dns=8.8.8.8,8.8.4.4
|
||||
echo 'Loading initrd...'
|
||||
initrd /boot/%SHORT_NAME%/initrd.img
|
||||
}
|
||||
|
||||
source /boot/grub/addons.cfg
|
||||
source /boot/grub/footer.cfg
|
||||
|
||||
# EOF
|
@ -1,240 +0,0 @@
|
||||
## background image
|
||||
menu background sipwise.png
|
||||
|
||||
## size
|
||||
menu width 50
|
||||
menu margin 0
|
||||
menu rows 13
|
||||
menu tabmsgrow 18
|
||||
menu helpmsgrow 21
|
||||
menu cmdlinerow 22
|
||||
menu timeoutrow 26
|
||||
menu hshift 2
|
||||
menu vshift 1
|
||||
|
||||
## colors
|
||||
# menu color element ansi foreground background shadow
|
||||
menu color border 30;44 #00000000 #00000000 none
|
||||
menu color cmdline 0 #ff000000 #00000000 none
|
||||
menu color cmdmark 1;36;40 #ffff0000 #00000000 none
|
||||
menu color disabled 0 #ff006600 #00000000
|
||||
menu color help 0 #ff000000 #00000000 none
|
||||
menu color hotkey 0 #ff000000 #00000000 none
|
||||
menu color hotsel 0 #ff000000 #ff006600
|
||||
menu color screen 37;40 #00000000 #00000000 none
|
||||
menu color scrollbar 30;44 #00000000 #00000000 none
|
||||
menu color sel 7 #00000000 #ff006600
|
||||
menu color tabmsg 0 #ffffffff #00000000 none
|
||||
menu color timeout 0 #ff000000 #00000000
|
||||
menu color timeout_msg 0 #ff808080 #00000000
|
||||
menu color title 0 #ff000000 #00000000 none
|
||||
menu color unsel 0 #ff000000 #00000000 none
|
||||
|
||||
## text
|
||||
menu title Grml-Sipwise - The VoIP experts
|
||||
menu tabmsg Press ENTER to boot or TAB to adjust menu entries
|
||||
|
||||
## source files
|
||||
default grml
|
||||
label grml
|
||||
menu DEFAULT
|
||||
menu label Rescue system boot (%VERSION%)
|
||||
kernel /boot/%SHORT_NAME%/vmlinuz
|
||||
append initrd=/boot/%SHORT_NAME%/initrd.img live-media-path=/live/%GRML_NAME%/ boot=live bootid=%BOOTID% apm=power-off mgag200.modeset=0 vga=791 quiet nomce net.ifnames=0 noquick distri=grml-sipwise ssh=sipwise
|
||||
text help
|
||||
Automatic deployment system for the
|
||||
Sipwise Next Generation Communication
|
||||
Platform. http://sipwise.com/
|
||||
|
||||
Boot into live rescue system.
|
||||
|
||||
Based on http://grml.org/
|
||||
endtext
|
||||
|
||||
include sipwise_latest.cfg
|
||||
|
||||
include sipwise_lts.cfg
|
||||
|
||||
menu separator
|
||||
|
||||
label stretch
|
||||
menu label Install plain Debian/stretch 64bit - DHCP
|
||||
kernel /boot/%SHORT_NAME%/vmlinuz
|
||||
append initrd=/boot/%SHORT_NAME%/initrd.img live-media-path=/live/%GRML_NAME%/ boot=live bootid=%BOOTID% apm=power-off mgag200.modeset=0 vga=791 quiet nomce net.ifnames=0 noquick distri=grml-sipwise ssh=sipwise debianrelease=stretch scripts
|
||||
|
||||
text help
|
||||
Install Debian stretch, 64bit.
|
||||
Does NOT install sip:provider platform.
|
||||
|
||||
Retrieve network configuration via DHCP.
|
||||
endtext
|
||||
|
||||
|
||||
label stretchnw
|
||||
menu label Install plain Debian/stretch 64bit - static NW
|
||||
kernel /boot/%SHORT_NAME%/vmlinuz
|
||||
append initrd=/boot/%SHORT_NAME%/initrd.img live-media-path=/live/%GRML_NAME%/ boot=live bootid=%BOOTID% apm=power-off mgag200.modeset=0 vga=791 quiet nomce net.ifnames=0 noquick distri=grml-sipwise ssh=sipwise debianrelease=stretch scripts ip=192.168.1.100::192.168.1.1:255.255.255.0:debian:eth0:off dns=8.8.8.8,8.8.4.4
|
||||
|
||||
text help
|
||||
Install Debian stretch, 64bit.
|
||||
Does NOT install sip:provider platform.
|
||||
|
||||
Use static IP configuration, adjust
|
||||
ip=... and dns=... options in boot
|
||||
command line as necessary.
|
||||
endtext
|
||||
|
||||
|
||||
label jessie
|
||||
menu label Install plain Debian/jessie 64bit - DHCP
|
||||
kernel /boot/%SHORT_NAME%/vmlinuz
|
||||
append initrd=/boot/%SHORT_NAME%/initrd.img live-media-path=/live/%GRML_NAME%/ boot=live bootid=%BOOTID% apm=power-off mgag200.modeset=0 vga=791 quiet nomce net.ifnames=0 noquick distri=grml-sipwise ssh=sipwise debianrelease=jessie scripts
|
||||
|
||||
text help
|
||||
Install Debian jessie, 64bit.
|
||||
Does NOT install sip:provider platform.
|
||||
|
||||
Retrieve network configuration via DHCP.
|
||||
endtext
|
||||
|
||||
|
||||
label jessienw
|
||||
menu label Install plain Debian/jessie 64bit - static NW
|
||||
kernel /boot/%SHORT_NAME%/vmlinuz
|
||||
append initrd=/boot/%SHORT_NAME%/initrd.img live-media-path=/live/%GRML_NAME%/ boot=live bootid=%BOOTID% apm=power-off mgag200.modeset=0 vga=791 quiet nomce net.ifnames=0 noquick distri=grml-sipwise ssh=sipwise debianrelease=jessie scripts ip=192.168.1.100::192.168.1.1:255.255.255.0:debian:eth0:off dns=8.8.8.8,8.8.4.4
|
||||
|
||||
text help
|
||||
Install Debian jessie, 64bit.
|
||||
Does NOT install sip:provider platform.
|
||||
|
||||
Use static IP configuration, adjust
|
||||
ip=... and dns=... options in boot
|
||||
command line as necessary.
|
||||
endtext
|
||||
|
||||
|
||||
label wheezy
|
||||
menu label Install plain Debian/wheezy 64bit - DHCP
|
||||
kernel /boot/%SHORT_NAME%/vmlinuz
|
||||
append initrd=/boot/%SHORT_NAME%/initrd.img live-media-path=/live/%GRML_NAME%/ boot=live bootid=%BOOTID% apm=power-off mgag200.modeset=0 vga=791 quiet nomce net.ifnames=0 noquick distri=grml-sipwise ssh=sipwise debianrelease=wheezy scripts
|
||||
|
||||
text help
|
||||
Install Debian wheezy, 64bit.
|
||||
Does NOT install sip:provider platform.
|
||||
|
||||
Retrieve network configuration via DHCP.
|
||||
endtext
|
||||
|
||||
|
||||
label wheezynw
|
||||
menu label Install plain Debian/wheezy 64bit - static NW
|
||||
kernel /boot/%SHORT_NAME%/vmlinuz
|
||||
append initrd=/boot/%SHORT_NAME%/initrd.img live-media-path=/live/%GRML_NAME%/ boot=live bootid=%BOOTID% apm=power-off mgag200.modeset=0 vga=791 quiet nomce net.ifnames=0 noquick distri=grml-sipwise ssh=sipwise debianrelease=wheezy scripts ip=192.168.1.100::192.168.1.1:255.255.255.0:debian:eth0:off dns=8.8.8.8,8.8.4.4
|
||||
|
||||
text help
|
||||
Install Debian wheezy, 64bit.
|
||||
Does NOT install sip:provider platform.
|
||||
|
||||
Use static IP configuration, adjust
|
||||
ip=... and dns=... options in boot
|
||||
command line as necessary.
|
||||
endtext
|
||||
|
||||
label squeeze
|
||||
menu label Install plain Debian/squeeze 64bit - DHCP
|
||||
kernel /boot/%SHORT_NAME%/vmlinuz
|
||||
append initrd=/boot/%SHORT_NAME%/initrd.img live-media-path=/live/%GRML_NAME%/ boot=live bootid=%BOOTID% apm=power-off mgag200.modeset=0 vga=791 quiet nomce net.ifnames=0 noquick distri=grml-sipwise ssh=sipwise debianrelease=squeeze scripts
|
||||
|
||||
text help
|
||||
Install Debian squeeze, 64bit.
|
||||
Does NOT install sip:provider platform.
|
||||
|
||||
Retrieve network configuration via DHCP.
|
||||
endtext
|
||||
|
||||
|
||||
label squeezenw
|
||||
menu label Install plain Debian/squeeze 64bit - static NW
|
||||
kernel /boot/%SHORT_NAME%/vmlinuz
|
||||
append initrd=/boot/%SHORT_NAME%/initrd.img live-media-path=/live/%GRML_NAME%/ boot=live bootid=%BOOTID% apm=power-off mgag200.modeset=0 vga=791 quiet nomce net.ifnames=0 noquick distri=grml-sipwise ssh=sipwise debianrelease=squeeze scripts ip=192.168.1.100::192.168.1.1:255.255.255.0:debian:eth0:off dns=8.8.8.8,8.8.4.4
|
||||
|
||||
text help
|
||||
Install Debian squeeze, 64bit.
|
||||
Does NOT install sip:provider platform.
|
||||
|
||||
Use static IP configuration, adjust
|
||||
ip=... and dns=... options in boot
|
||||
command line as necessary.
|
||||
endtext
|
||||
|
||||
|
||||
## begin of other bootoptions menu {{{
|
||||
menu separator
|
||||
menu begin other-options
|
||||
menu title Further bootoptions (local/PXE boot) ...
|
||||
|
||||
label mainmenu
|
||||
menu label ^Back to main menu...
|
||||
menu exit
|
||||
menu separator
|
||||
|
||||
label memtest
|
||||
menu label Run ^Memtest86+
|
||||
kernel /boot/addons/memtest
|
||||
append BOOT_IMAGE=memtest
|
||||
|
||||
text help
|
||||
Start memory test using memtest86+.
|
||||
endtext
|
||||
|
||||
label ipxe
|
||||
menu label Boot from network (iP^XE)
|
||||
kernel /boot/addons/ipxe.lkrn
|
||||
|
||||
text help
|
||||
Start Etherboot/iPXE for booting via
|
||||
network (PXE).
|
||||
endtext
|
||||
|
||||
label hd1
|
||||
menu label ^Boot from primary local boot device
|
||||
localboot 0x80
|
||||
text help
|
||||
Boot from 1st local boot device -
|
||||
if present and bootable.
|
||||
endtext
|
||||
|
||||
label hd2
|
||||
menu label ^Boot from secondary local boot device
|
||||
localboot 0x81
|
||||
text help
|
||||
Boot from 2nd local boot device -
|
||||
if present and bootable.
|
||||
endtext
|
||||
|
||||
label hd3
|
||||
menu label ^Boot from third local boot device
|
||||
localboot 0x82
|
||||
text help
|
||||
Boot from 3rd local boot device -
|
||||
if present and bootable.
|
||||
endtext
|
||||
|
||||
label hd4
|
||||
menu label ^Boot from fourth local boot device
|
||||
localboot 0x83
|
||||
text help
|
||||
Boot from 4th local boot device -
|
||||
if present and bootable.
|
||||
endtext
|
||||
|
||||
# back to main menu
|
||||
label quit
|
||||
menu hide
|
||||
kernel isolinux.bin
|
||||
|
||||
menu end
|
||||
## end of other bootoptions menu }}}
|
||||
|
||||
# EOF
|
||||
default vesamenu.c32
|
Before Width: | Height: | Size: 206 KiB |
@ -1,29 +0,0 @@
|
||||
#!/bin/bash
|
||||
################################################################################
|
||||
|
||||
. /etc/grml/lsb-functions
|
||||
|
||||
if [ $(id -ru) -ne 0 ] ; then
|
||||
echo "Error: please run this script with uid 0 (root)." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
einfon "Checking network status... "
|
||||
|
||||
STATUS="Offline"
|
||||
EXIT_CODE=1
|
||||
|
||||
GW="$(echo $(route -n | awk '/^0\.0\.0\.0/{print $2}'))"
|
||||
GWDEV="$(echo $(route -n | awk '/^0\.0\.0\.0/{print $NF}'))"
|
||||
NMAP="$(nmap -sP --host_timeout 4000 --max_rtt_timeout 4000ms $GW 2>/dev/null)"
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
if ! echo "$NMAP" | grep -q "0 hosts up" ; then
|
||||
STATUS="Online (${GWDEV})"
|
||||
EXIT_CODE=0
|
||||
fi
|
||||
fi
|
||||
|
||||
printf "%s\n" "$STATUS"
|
||||
eend $EXIT_CODE
|
||||
exit $EXIT_CODE
|
@ -1,172 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
export LANG=C
|
||||
export LC_ALL=C
|
||||
|
||||
working_dir="$(dirname $0)"
|
||||
scripts_dir="${working_dir}/includes/"
|
||||
netscript_dir="${scripts_dir}/netscript/"
|
||||
|
||||
RC=0
|
||||
|
||||
RED="$(tput setaf 1)"
|
||||
GREEN="$(tput setaf 2)"
|
||||
YELLOW="$(tput setaf 3)"
|
||||
BLUE="$(tput setaf 4)"
|
||||
NORMAL="$(tput op)"
|
||||
|
||||
. /etc/grml/lsb-functions
|
||||
|
||||
einfo "Executing grml-sipwise specific checks..."
|
||||
eindent
|
||||
|
||||
install_sipwise_keyring() {
|
||||
if [ -f "${scripts_dir}/sipwise.gpg" ]; then
|
||||
einfo "Installing sipwise keyring to '/etc/apt/trusted.gpg.d/sipwise.gpg'..."; eend 0
|
||||
cp "${scripts_dir}/sipwise.gpg" /etc/apt/trusted.gpg.d/sipwise.gpg
|
||||
else
|
||||
ewarn "Sipwise keyring '${scripts_dir}/sipwise.gpg' not found, continuing anyway." ; eend 0
|
||||
fi
|
||||
}
|
||||
|
||||
network_check() {
|
||||
if ${scripts_dir}/check-for-network ; then
|
||||
einfo "Looks like we have working network, continuing..." ; eend 0
|
||||
else
|
||||
if dialog --yes-label Yes --no-label Exit --yesno "It looks like you don't have a working network connection yet. Do you want to configure the network now?" 0 0 ; then
|
||||
if ! netcardconfig ; then
|
||||
ewarn "Failed to configure network, continuing anyway." ; eend 0
|
||||
fi
|
||||
else
|
||||
ewarn "Cancelling as requested by user." ; eend 0
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
report_ssh_password() {
|
||||
local rootpwd=$(grep -Eo '\<ssh=[^ ]+' /proc/cmdline || true)
|
||||
|
||||
if [ "$rootpwd" ]; then
|
||||
rootpwd=${rootpwd#*=}
|
||||
|
||||
local user=$(getent passwd 1000 | cut -d: -f1)
|
||||
[ -n "$user" ] || user="grml"
|
||||
|
||||
local local_if=$(ip -o route show | sed -nre '/^default /s/^default .*dev ([^ ]+).*/\1/p' | head -1)
|
||||
if [ -n "$local_if" ] ; then
|
||||
local ipaddr=$(ip -o addr show $local_if | grep ' inet ' | head -n 1 | sed -e 's/.*inet \([^ ]*\) .*/\1/' -e 's/\/.*//')
|
||||
fi
|
||||
|
||||
local local_if6=$(ip -6 -o route show | sed -nre '/^default /s/^default .*dev ([^ ]+).*/\1/p' | head -1)
|
||||
if [ -n "$local_if6" ] ; then
|
||||
local ipaddr6=$(ip -6 -o addr show $local_if6 | grep ' inet6 ' | head -n 1 | sed -e 's/.*inet6 \([^ ]*\) .*/\1/' -e 's/\/.*//')
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
if [ -n "$ipaddr" ] ; then
|
||||
einfo "You can connect to this system with SSH to: ${YELLOW}$ipaddr $ipaddr6${NORMAL}" ; eend 0
|
||||
fi
|
||||
|
||||
if [ -n "$rootpwd" ] ; then
|
||||
einfo "The password for user root/$user is: ${YELLOW}${rootpwd}${NORMAL}"; eend 0
|
||||
fi
|
||||
}
|
||||
|
||||
check_for_existing_pvs()
|
||||
{
|
||||
# make sure we don't have a PV named "ngcp" on a different disk,
|
||||
# otherwise partitioning and booting won't work
|
||||
local EXISTING_VGS=$(pvs | awk '/\/dev\// {print $2 " " $1}')
|
||||
|
||||
if echo $EXISTING_VGS | grep -q '^ngcp ' ; then
|
||||
# which disk has the PV named "ngcp"?
|
||||
local NGCP_DISK="$(echo $EXISTING_VGS | awk '/^ngcp/ {print $2}')"
|
||||
# drop any trailing digits, so we get e.g. /dev/sda for /dev/sda1
|
||||
NGCP_DISK="${NGCP_DISK%%[0-9]*}"
|
||||
|
||||
# if the user tries to (re)install to the disk that provides an "ngcp"
|
||||
# PV already we should allow overwriting data
|
||||
if [[ "${NGCP_DISK}" == "/dev/${TARGET_DISK}" ]] ; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
dialog --title "LVM PVS check" \
|
||||
--msgbox "Sorry, there seems to be a physical volume named 'ngcp' on disk $NGCP_DISK present already. Installation can't continue, please remove/detach the disk and rerun installation procedure." 0 0
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
prompt_for_target()
|
||||
{
|
||||
AVAILABLE_DISKS=$(awk '/[a-z]$/ {print $4}' /proc/partitions | grep -v '^name$' | sort -u)
|
||||
|
||||
if [ -z "$AVAILABLE_DISKS" ] ; then
|
||||
dialog --title "Disk selection" \
|
||||
--msgbox "Sorry, no disks found. Please make sure to have a hard disk attached to your system/VM." 0 0
|
||||
return 1
|
||||
fi
|
||||
|
||||
# display disk ID next to the disk name
|
||||
DISK_LIST=$(for i in $AVAILABLE_DISKS ; do
|
||||
for file in /dev/disk/by-id/* ; do
|
||||
case "$(realpath $file)" in
|
||||
(/dev/"$i") disk_info="${file#/dev/disk/by-id/}" ; break ;;
|
||||
(*) disk_info="$file" ;;
|
||||
esac
|
||||
done
|
||||
echo ${i} ${disk_info}
|
||||
done)
|
||||
|
||||
if ! TARGET_DISK=$(dialog --title "Disk selection" --single-quoted --stdout \
|
||||
--ok-label OK --cancel-label Exit \
|
||||
--menu "Please select the target disk for installing Debian/ngcp:" 0 0 0 \
|
||||
$DISK_LIST) ; then
|
||||
ewarn "Cancelling as requested by user during disk selection." ; eend 0
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
# }}}
|
||||
|
||||
|
||||
deploy() {
|
||||
# deploy only if we have the ngcpce or debianrelease boot option present
|
||||
if ! grep -q ngcpce /proc/cmdline && ! grep -q debianrelease /proc/cmdline ; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
# choose appropriate deployment.sh script:
|
||||
local version=$(grep -Eo '\<ngcpvers=[^ ]+' /proc/cmdline || true)
|
||||
if [ "$version" ]; then
|
||||
version=${version#*=}
|
||||
else
|
||||
version="master"
|
||||
fi
|
||||
|
||||
einfo "Running ${YELLOW}${version}${NORMAL} of deployment.sh..."; eend 0
|
||||
RC=0
|
||||
TARGET_DISK=$TARGET_DISK /bin/bash ${netscript_dir}/${version}/deployment.sh || RC=$?
|
||||
if [ $RC -eq 0 ] ; then
|
||||
if dialog --yes-label Reboot --no-label Exit --yesno "Successfully finished deployment, enjoy your sip:provider CE system. Reboot system now?" 0 0 ; then
|
||||
reboot
|
||||
else
|
||||
ewarn "Not rebooting as requested, please don't forget to reboot your system." ; eend 0
|
||||
fi
|
||||
elif [ $RC -eq 2 ] ; then
|
||||
ewarn "Installation was cancelled by user. Switching into rescue mode." ; eend 0
|
||||
else
|
||||
dialog --msgbox "Looks like running the deployment script didn't work. Please provide a bug report to support@sipwise.com, providing information about your system and the files present in /tmp/*.log and /tmp/*.txt - dropping you to the rescue system for further investigation." 0 0
|
||||
fi
|
||||
}
|
||||
|
||||
install_sipwise_keyring
|
||||
prompt_for_target
|
||||
check_for_existing_pvs
|
||||
network_check
|
||||
report_ssh_password
|
||||
deploy
|
||||
|
||||
eend $RC
|
Loading…
Reference in new issue