New EFI config
BIN
.linux_items/include/EFI/boot/icons/wk_arch.png
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
BIN
.linux_items/include/EFI/boot/icons/wk_memtest.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
.linux_items/include/EFI/boot/icons/wk_win.png
Normal file
|
After Width: | Height: | Size: 2 KiB |
39
.linux_items/include/EFI/boot/refind.conf
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
# refind.conf
|
||||||
|
|
||||||
|
timeout 0
|
||||||
|
scanfor manual
|
||||||
|
showtools firmware,reboot,shutdown
|
||||||
|
default_selection MemTest86
|
||||||
|
csr_values 10,77
|
||||||
|
#use_graphics_for osx,linux,windows
|
||||||
|
|
||||||
|
# Theme
|
||||||
|
banner rEFInd.png
|
||||||
|
banner_scale fillscreen
|
||||||
|
selection_big selection_big.png
|
||||||
|
selection_small selection_small.png
|
||||||
|
hideui arrows,badges
|
||||||
|
|
||||||
|
# Entries
|
||||||
|
menuentry "MemTest86" {
|
||||||
|
icon /EFI/boot/icons/wk_memtest.png
|
||||||
|
loader /EFI/memtest86/memtestx64.efi
|
||||||
|
}
|
||||||
|
menuentry "Linux" {
|
||||||
|
icon /EFI/boot/icons/wk_arch.png
|
||||||
|
loader /arch/boot/x86_64/vmlinuz
|
||||||
|
initrd /arch/boot/intel_ucode.img
|
||||||
|
initrd /arch/boot/x86_64/archiso.img
|
||||||
|
options "archisobasedir=$INSTALL_DIR% archisolabel=%ARCHISO_LABEL% quiet copytoram loglevel=3"
|
||||||
|
submenuentry "Linux (i3)" {
|
||||||
|
add_options "i3"
|
||||||
|
}
|
||||||
|
submenuentry "Linux (CLI)" {
|
||||||
|
add_options "nox"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
menuentry "WindowsPE" {
|
||||||
|
ostype windows
|
||||||
|
icon /EFI/boot/icons/wk_win.png
|
||||||
|
loader /EFI/microsoft/bootx64.efi
|
||||||
|
}
|
||||||
BIN
.linux_items/include/EFI/boot/selection_big.png
Normal file
|
After Width: | Height: | Size: 538 B |
BIN
.linux_items/include/EFI/boot/selection_small.png
Normal file
|
After Width: | Height: | Size: 720 B |
|
|
@ -1,5 +1,5 @@
|
||||||
DEFAULT loadconfig
|
DEFAULT loadconfig
|
||||||
|
|
||||||
LABEL loadconfig
|
LABEL loadconfig
|
||||||
CONFIG wklive.cfg
|
CONFIG wk.cfg
|
||||||
APPEND ../../
|
APPEND ../../
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ COM32 boot/syslinux/whichsys.c32
|
||||||
APPEND -pxe- pxe -sys- sys -iso- sys
|
APPEND -pxe- pxe -sys- sys -iso- sys
|
||||||
|
|
||||||
LABEL pxe
|
LABEL pxe
|
||||||
CONFIG boot/syslinux/wklive_pxe.cfg
|
CONFIG boot/syslinux/wk_pxe.cfg
|
||||||
|
|
||||||
LABEL sys
|
LABEL sys
|
||||||
CONFIG boot/syslinux/wklive_sys.cfg
|
CONFIG boot/syslinux/wk_sys.cfg
|
||||||
8
.linux_items/include/syslinux/wk_pxe.cfg
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
INCLUDE boot/syslinux/wk_head.cfg
|
||||||
|
MENU BACKGROUND pxelinux.png
|
||||||
|
|
||||||
|
INCLUDE boot/syslinux/wk_pxe_linux.cfg
|
||||||
|
INCLUDE boot/syslinux/wk_pxe_winpe.cfg
|
||||||
|
INCLUDE boot/syslinux/wk_pxe_extras_entry.cfg
|
||||||
|
|
||||||
|
INCLUDE boot/syslinux/wk_tail.cfg
|
||||||
9
.linux_items/include/syslinux/wk_pxe_extras.cfg
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
INCLUDE boot/syslinux/wk_head.cfg
|
||||||
|
MENU BACKGROUND pxelinux.png
|
||||||
|
|
||||||
|
INCLUDE boot/syslinux/wk_pxe_linux.cfg
|
||||||
|
INCLUDE boot/syslinux/wk_pxe_linux_extras.cfg
|
||||||
|
INCLUDE boot/syslinux/wk_pxe_winpe.cfg
|
||||||
|
INCLUDE boot/syslinux/wk_hdt.cfg
|
||||||
|
|
||||||
|
INCLUDE boot/syslinux/wk_tail.cfg
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
LABEL wklive_sys_extras
|
LABEL wk_pxe_extras
|
||||||
TEXT HELP
|
TEXT HELP
|
||||||
Show extra boot options
|
Show extra boot options
|
||||||
ENDTEXT
|
ENDTEXT
|
||||||
MENU LABEL Extras
|
MENU LABEL Extras
|
||||||
KERNEL vesamenu.c32
|
KERNEL vesamenu.c32
|
||||||
APPEND boot/syslinux/wklive_sys_extras.cfg
|
APPEND boot/syslinux/wk_pxe_extras.cfg
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
LABEL wklive_http_linux
|
LABEL wk_http_linux
|
||||||
TEXT HELP
|
TEXT HELP
|
||||||
A live Linux environment
|
A live Linux environment
|
||||||
* HW diagnostics, file-based backups, data recovery, etc
|
* HW diagnostics, file-based backups, data recovery, etc
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
LABEL wklive_http_linux_i3
|
LABEL wk_http_linux_i3
|
||||||
TEXT HELP
|
TEXT HELP
|
||||||
A live Linux environment (i3)
|
A live Linux environment (i3)
|
||||||
* HW diagnostics, file-based backups, data recovery, etc
|
* HW diagnostics, file-based backups, data recovery, etc
|
||||||
|
|
@ -9,7 +9,7 @@ INITRD boot/intel_ucode.img,boot/x86_64/archiso.img
|
||||||
APPEND archisobasedir=%INSTALL_DIR% archiso_http_srv=http://${pxeserver}/ quiet i3
|
APPEND archisobasedir=%INSTALL_DIR% archiso_http_srv=http://${pxeserver}/ quiet i3
|
||||||
SYSAPPEND 3
|
SYSAPPEND 3
|
||||||
|
|
||||||
LABEL wklive_http_linux_cli
|
LABEL wk_http_linux_cli
|
||||||
TEXT HELP
|
TEXT HELP
|
||||||
A live Linux environment (CLI)
|
A live Linux environment (CLI)
|
||||||
* HW diagnostics, file-based backups, data recovery, etc
|
* HW diagnostics, file-based backups, data recovery, etc
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
LABEL wklive_http_winpe
|
LABEL wk_http_winpe
|
||||||
TEXT HELP
|
TEXT HELP
|
||||||
A live Windows environment
|
A live Windows environment
|
||||||
* Create partition backups, Install Windows, etc
|
* Create partition backups, Install Windows, etc
|
||||||
7
.linux_items/include/syslinux/wk_sys.cfg
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
INCLUDE boot/syslinux/wk_head.cfg
|
||||||
|
|
||||||
|
INCLUDE boot/syslinux/wk_sys_linux.cfg
|
||||||
|
INCLUDE boot/syslinux/wk_sys_winpe.cfg
|
||||||
|
INCLUDE boot/syslinux/wk_sys_extras_entry.cfg
|
||||||
|
|
||||||
|
INCLUDE boot/syslinux/wk_tail.cfg
|
||||||
8
.linux_items/include/syslinux/wk_sys_extras.cfg
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
INCLUDE boot/syslinux/wk_head.cfg
|
||||||
|
|
||||||
|
INCLUDE boot/syslinux/wk_sys_linux.cfg
|
||||||
|
INCLUDE boot/syslinux/wk_sys_linux_extras.cfg
|
||||||
|
INCLUDE boot/syslinux/wk_sys_winpe.cfg
|
||||||
|
INCLUDE boot/syslinux/wk_hdt.cfg
|
||||||
|
|
||||||
|
INCLUDE boot/syslinux/wk_tail.cfg
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
LABEL wklive_pxe_extras
|
LABEL wk_sys_extras
|
||||||
TEXT HELP
|
TEXT HELP
|
||||||
Show extra boot options
|
Show extra boot options
|
||||||
ENDTEXT
|
ENDTEXT
|
||||||
MENU LABEL Extras
|
MENU LABEL Extras
|
||||||
KERNEL vesamenu.c32
|
KERNEL vesamenu.c32
|
||||||
APPEND boot/syslinux/wklive_pxe_extras.cfg
|
APPEND boot/syslinux/wk_sys_extras.cfg
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
LABEL wklive_linux
|
LABEL wk_linux
|
||||||
TEXT HELP
|
TEXT HELP
|
||||||
A live Linux environment
|
A live Linux environment
|
||||||
* HW diagnostics, file-based backups, data recovery, etc
|
* HW diagnostics, file-based backups, data recovery, etc
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
LABEL wklive_linux_i3
|
LABEL wk_linux_i3
|
||||||
TEXT HELP
|
TEXT HELP
|
||||||
A live Linux environment (i3)
|
A live Linux environment (i3)
|
||||||
* HW diagnostics, file-based backups, data recovery, etc
|
* HW diagnostics, file-based backups, data recovery, etc
|
||||||
|
|
@ -9,7 +9,7 @@ INITRD boot/intel_ucode.img,boot/x86_64/archiso.img
|
||||||
APPEND archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% quiet copytoram loglevel=3 i3
|
APPEND archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% quiet copytoram loglevel=3 i3
|
||||||
SYSAPPEND 3
|
SYSAPPEND 3
|
||||||
|
|
||||||
LABEL wklive_linux_cli
|
LABEL wk_linux_cli
|
||||||
TEXT HELP
|
TEXT HELP
|
||||||
A live Linux environment (CLI)
|
A live Linux environment (CLI)
|
||||||
* HW diagnostics, file-based backups, data recovery, etc
|
* HW diagnostics, file-based backups, data recovery, etc
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
LABEL wklive_winpe
|
LABEL wk_winpe
|
||||||
TEXT HELP
|
TEXT HELP
|
||||||
A live Windows environment
|
A live Windows environment
|
||||||
* Create partition backups, Install Windows, etc
|
* Create partition backups, Install Windows, etc
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
INCLUDE boot/syslinux/wklive_head.cfg
|
|
||||||
MENU BACKGROUND pxelinux.png
|
|
||||||
|
|
||||||
INCLUDE boot/syslinux/wklive_pxe_linux.cfg
|
|
||||||
INCLUDE boot/syslinux/wklive_pxe_winpe.cfg
|
|
||||||
INCLUDE boot/syslinux/wklive_pxe_extras_entry.cfg
|
|
||||||
|
|
||||||
INCLUDE boot/syslinux/wklive_tail.cfg
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
INCLUDE boot/syslinux/wklive_head.cfg
|
|
||||||
MENU BACKGROUND pxelinux.png
|
|
||||||
|
|
||||||
INCLUDE boot/syslinux/wklive_pxe_linux.cfg
|
|
||||||
INCLUDE boot/syslinux/wklive_pxe_linux_extras.cfg
|
|
||||||
INCLUDE boot/syslinux/wklive_pxe_winpe.cfg
|
|
||||||
INCLUDE boot/syslinux/wklive_hdt.cfg
|
|
||||||
|
|
||||||
INCLUDE boot/syslinux/wklive_tail.cfg
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
INCLUDE boot/syslinux/wklive_head.cfg
|
|
||||||
|
|
||||||
INCLUDE boot/syslinux/wklive_sys_linux.cfg
|
|
||||||
INCLUDE boot/syslinux/wklive_sys_winpe.cfg
|
|
||||||
INCLUDE boot/syslinux/wklive_sys_extras_entry.cfg
|
|
||||||
|
|
||||||
INCLUDE boot/syslinux/wklive_tail.cfg
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
INCLUDE boot/syslinux/wklive_head.cfg
|
|
||||||
|
|
||||||
INCLUDE boot/syslinux/wklive_sys_linux.cfg
|
|
||||||
INCLUDE boot/syslinux/wklive_sys_linux_extras.cfg
|
|
||||||
INCLUDE boot/syslinux/wklive_sys_winpe.cfg
|
|
||||||
INCLUDE boot/syslinux/wklive_hdt.cfg
|
|
||||||
|
|
||||||
INCLUDE boot/syslinux/wklive_tail.cfg
|
|
||||||
|
|
@ -8,4 +8,5 @@ libewf
|
||||||
openssh
|
openssh
|
||||||
p7zip
|
p7zip
|
||||||
progsreiserfs
|
progsreiserfs
|
||||||
|
refind-efi
|
||||||
rsync
|
rsync
|
||||||
|
|
|
||||||
29
Build Linux
|
|
@ -126,18 +126,26 @@ function run_elevated() {
|
||||||
function update_live_env() {
|
function update_live_env() {
|
||||||
hostname="$(echo "${KIT_NAME_SHORT}-linux" | tr "[:upper:]" "[:lower:]")"
|
hostname="$(echo "${KIT_NAME_SHORT}-linux" | tr "[:upper:]" "[:lower:]")"
|
||||||
username="$(echo "${KIT_NAME_SHORT}tech" | tr "[:upper:]" "[:lower:]")"
|
username="$(echo "${KIT_NAME_SHORT}tech" | tr "[:upper:]" "[:lower:]")"
|
||||||
|
label="${KIT_NAME_SHORT}_LINUX"
|
||||||
|
install_dir="$(echo "${KIT_NAME_SHORT}linux" | tr "[:upper:]" "[:lower:]")"
|
||||||
|
|
||||||
# Boot config (legacy)
|
# Boot config (legacy)
|
||||||
mkdir -p "$LIVE_DIR/wklive"
|
mkdir -p "$LIVE_DIR/$install_dir"
|
||||||
cp "$ROOT_DIR/Images/Pxelinux.png" "$LIVE_DIR/wklive/pxelinux.png"
|
cp "$ROOT_DIR/Images/Pxelinux.png" "$LIVE_DIR/$install_dir/pxelinux.png"
|
||||||
cp "$ROOT_DIR/Images/Syslinux.png" "$LIVE_DIR/wklive/syslinux.png"
|
cp "$ROOT_DIR/Images/Syslinux.png" "$LIVE_DIR/$install_dir/syslinux.png"
|
||||||
sed -i -r "s/_+/$KIT_NAME_FULL/" "$LIVE_DIR/syslinux/wklive_head.cfg"
|
sed -i -r "s/_+/$KIT_NAME_FULL/" "$LIVE_DIR/syslinux/wk_head.cfg"
|
||||||
mkdir -p "$TEMP_DIR" 2>/dev/null
|
mkdir -p "$TEMP_DIR" 2>/dev/null
|
||||||
curl -Lo "$TEMP_DIR/wimboot.zip" "http://git.ipxe.org/releases/wimboot/wimboot-latest.zip"
|
curl -Lo "$TEMP_DIR/wimboot.zip" "http://git.ipxe.org/releases/wimboot/wimboot-latest.zip"
|
||||||
7z e "$TEMP_DIR/wimboot.zip" -o"$LIVE_DIR/wklive/boot" 'wimboot*/LICENSE.txt' 'wimboot*/README.txt' 'wimboot*/wimboot'
|
7z e "$TEMP_DIR/wimboot.zip" -o"$LIVE_DIR/$install_dir/boot" 'wimboot*/LICENSE.txt' 'wimboot*/README.txt' 'wimboot*/wimboot'
|
||||||
|
|
||||||
# Boot config (UEFI)
|
# Boot config (UEFI)
|
||||||
mkdir -p "$LIVE_DIR/EFI/boot"
|
mkdir -p "$LIVE_DIR/EFI/boot"
|
||||||
|
cp "/usr/share/refind/refind_x64.efi" "$LIVE_DIR/EFI/boot/bootx64.efi"
|
||||||
|
cp "$ROOT_DIR/Images/rEFInd.png" "$LIVE_DIR/EFI/boot/rEFInd.png"
|
||||||
|
rsync -aI "/usr/share/refind/drivers_x64/" "$LIVE_DIR/EFI/boot/drivers_x64/"
|
||||||
|
rsync -aI "/usr/share/refind/icons/" "$LIVE_DIR/EFI/boot/icons/" --exclude "/usr/share/refind/icons/svg"
|
||||||
|
sed -i "s/%ARCHISO_LABEL%/${label}/;
|
||||||
|
s/%INSTALL_DIR%/${install_dir}/" "$LIVE_DIR/EFI/boot/refind.conf"
|
||||||
|
|
||||||
# Memtest86
|
# Memtest86
|
||||||
mkdir -p "$LIVE_DIR/EFI/memtest86/Benchmark"
|
mkdir -p "$LIVE_DIR/EFI/memtest86/Benchmark"
|
||||||
|
|
@ -151,9 +159,9 @@ function update_live_env() {
|
||||||
mv "$TEMP_DIR/memtest86/UNIFONT.BIN" "$LIVE_DIR/EFI/memtest86/unifont.bin"
|
mv "$TEMP_DIR/memtest86/UNIFONT.BIN" "$LIVE_DIR/EFI/memtest86/unifont.bin"
|
||||||
|
|
||||||
# build.sh
|
# build.sh
|
||||||
if ! grep -iq 'wklive additions' "$LIVE_DIR/build.sh"; then
|
if ! grep -iq 'wizardkit additions' "$LIVE_DIR/build.sh"; then
|
||||||
sed -i -r 's/^(run_once make_iso)$/# wklive additions\n\1/' "$LIVE_DIR/build.sh"
|
sed -i -r 's/^(run_once make_iso)$/# wizardkit additions\n\1/' "$LIVE_DIR/build.sh"
|
||||||
sed -i '/# wklive additions/r .linux_items/build_additions.txt' "$LIVE_DIR/build.sh"
|
sed -i '/# wizardkit additions/r .linux_items/build_additions.txt' "$LIVE_DIR/build.sh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Hostname
|
# Hostname
|
||||||
|
|
@ -288,11 +296,12 @@ function build_iso() {
|
||||||
# Build ISO
|
# Build ISO
|
||||||
prefix="$(< "$LIVE_DIR/airootfs/etc/hostname")"
|
prefix="$(< "$LIVE_DIR/airootfs/etc/hostname")"
|
||||||
label="${KIT_NAME_SHORT}_LINUX"
|
label="${KIT_NAME_SHORT}_LINUX"
|
||||||
"$LIVE_DIR/build.sh" -N "$prefix" -V "$DATE" -L "$label" -D "wklive" -w "$TEMP_DIR/WKLive" -o "$OUT_DIR" -v | tee -a "$LOG_DIR/$DATETIME.log"
|
install_dir="$(echo "${KIT_NAME_SHORT}linux" | tr "[:upper:]" "[:lower:]")"
|
||||||
|
"$LIVE_DIR/build.sh" -N "$prefix" -V "$DATE" -L "$label" -D "$install_dir" -w "$TEMP_DIR/Linux" -o "$OUT_DIR" -v | tee -a "$LOG_DIR/$DATETIME.log"
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
echo "Removing temp files..."
|
echo "Removing temp files..."
|
||||||
rm "$TEMP_DIR/WKLive" -Rf | tee -a "$LOG_DIR/$DATETIME.log"
|
rm "$TEMP_DIR/Linux" -Rf | tee -a "$LOG_DIR/$DATETIME.log"
|
||||||
|
|
||||||
echo "Reverting permissions..."
|
echo "Reverting permissions..."
|
||||||
chown $REAL_USER:$REAL_USER "$LIVE_DIR" -R
|
chown $REAL_USER:$REAL_USER "$LIVE_DIR" -R
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 113 KiB After Width: | Height: | Size: 98 KiB |