Merge remote-tracking branch 'upstream/dev' into dev
|
|
@ -116,47 +116,14 @@ function update_live_env() {
|
||||||
username="tech"
|
username="tech"
|
||||||
label="${KIT_NAME_SHORT}_LINUX"
|
label="${KIT_NAME_SHORT}_LINUX"
|
||||||
|
|
||||||
|
# Boot config
|
||||||
|
cp "$ROOT_DIR/images/Syslinux.png" "$PROFILE_DIR/syslinux/splash.png"
|
||||||
|
|
||||||
# MOTD
|
# MOTD
|
||||||
sed -i -r "s/KIT_NAME_SHORT/$KIT_NAME_SHORT/" "$PROFILE_DIR/profiledef.sh"
|
sed -i -r "s/KIT_NAME_SHORT/$KIT_NAME_SHORT/" "$PROFILE_DIR/profiledef.sh"
|
||||||
sed -i -r "s/KIT_NAME_FULL/$KIT_NAME_SHORT/" "$PROFILE_DIR/profiledef.sh"
|
sed -i -r "s/KIT_NAME_FULL/$KIT_NAME_SHORT/" "$PROFILE_DIR/profiledef.sh"
|
||||||
sed -i -r "s/SUPPORT_URL/$KIT_NAME_SHORT/" "$PROFILE_DIR/profiledef.sh"
|
sed -i -r "s/SUPPORT_URL/$KIT_NAME_SHORT/" "$PROFILE_DIR/profiledef.sh"
|
||||||
|
|
||||||
# Boot config (legacy)
|
|
||||||
mkdir -p "$TEMP_DIR" 2>/dev/null
|
|
||||||
git clone --depth=1 https://github.com/ipxe/wimboot "$TEMP_DIR/wimboot"
|
|
||||||
rsync -aI "$TEMP_DIR/wimboot"/{LICENSE.txt,README.md,wimboot} "$PROFILE_DIR/syslinux/wimboot/"
|
|
||||||
cp "$ROOT_DIR/images/Syslinux.jpg" "$PROFILE_DIR/syslinux/syslinux.jpg"
|
|
||||||
sed -i -r "s/__+/$KIT_NAME_FULL/" "$PROFILE_DIR/syslinux/syslinux.cfg"
|
|
||||||
|
|
||||||
# Boot config (UEFI)
|
|
||||||
curl -Lo "$TEMP_DIR/refind.zip" "https://sourceforge.net/projects/refind/files/latest/download"
|
|
||||||
7z x -aoa "$TEMP_DIR/refind.zip" -o"$TEMP_DIR/refind"
|
|
||||||
cp "$ROOT_DIR/images/rEFInd.png" "$PROFILE_DIR/EFI/boot/rEFInd.png"
|
|
||||||
cp "$TEMP_DIR/refind"/refind*/"refind/refind_x64.efi" "$PROFILE_DIR/EFI/boot/bootx64.efi"
|
|
||||||
rsync -aI "$TEMP_DIR/refind"/refind*/refind/drivers_x64/ "$PROFILE_DIR/EFI/boot/drivers_x64/"
|
|
||||||
rsync -aI "$TEMP_DIR/refind"/refind*/refind/icons/ "$PROFILE_DIR/EFI/boot/icons/"
|
|
||||||
sed -i "s/%ARCHISO_LABEL%/${label}/" "$PROFILE_DIR/EFI/boot/refind.conf"
|
|
||||||
|
|
||||||
# Memtest86+ (Open Source)
|
|
||||||
mkdir -p "$PROFILE_DIR/EFI/memtest86+"
|
|
||||||
mkdir -p "$TEMP_DIR/memtest86+"
|
|
||||||
curl -Lo "$TEMP_DIR/memtest86+/memtest86-binaries.zip" "https://memtest.org/download/v6.10/mt86plus_6.10.binaries.zip"
|
|
||||||
7z e "$TEMP_DIR/memtest86+/memtest86-binaries.zip" -o"$TEMP_DIR/memtest86+" "memtest64.efi"
|
|
||||||
mv "$TEMP_DIR/memtest86+/memtest64.efi" "$PROFILE_DIR/EFI/memtest86+/bootx64.efi"
|
|
||||||
|
|
||||||
# Memtest86 (Passmark)
|
|
||||||
mkdir -p "$PROFILE_DIR/EFI/memtest86/Benchmark"
|
|
||||||
mkdir -p "$TEMP_DIR/memtest86"
|
|
||||||
curl -Lo "$TEMP_DIR/memtest86/memtest86-usb.zip" "https://www.memtest86.com/downloads/memtest86-usb.zip"
|
|
||||||
7z e -aoa "$TEMP_DIR/memtest86/memtest86-usb.zip" -o"$TEMP_DIR/memtest86" "memtest86-usb.img"
|
|
||||||
7z e -aoa "$TEMP_DIR/memtest86/memtest86-usb.img" -o"$TEMP_DIR/memtest86" "MemTest86.img"
|
|
||||||
7z x -aoa "$TEMP_DIR/memtest86/MemTest86.img" -o"$TEMP_DIR/memtest86"
|
|
||||||
rm "$TEMP_DIR/memtest86/EFI/BOOT/BOOTIA32.efi"
|
|
||||||
mv "$TEMP_DIR/memtest86/EFI/BOOT/BOOTX64.efi" "$PROFILE_DIR/EFI/memtest86/bootx64.efi"
|
|
||||||
mv "$TEMP_DIR/memtest86/EFI/BOOT"/* "$PROFILE_DIR/EFI/memtest86"/
|
|
||||||
mv "$TEMP_DIR/memtest86/help"/* "$PROFILE_DIR/EFI/memtest86"/
|
|
||||||
mv "$TEMP_DIR/memtest86/license.rtf" "$PROFILE_DIR/EFI/memtest86"/
|
|
||||||
|
|
||||||
# Hostname
|
# Hostname
|
||||||
echo "$hostname" > "$PROFILE_DIR/airootfs/etc/hostname"
|
echo "$hostname" > "$PROFILE_DIR/airootfs/etc/hostname"
|
||||||
echo "127.0.1.1 $hostname.localdomain $hostname" >> "$PROFILE_DIR/airootfs/etc/hosts"
|
echo "127.0.1.1 $hostname.localdomain $hostname" >> "$PROFILE_DIR/airootfs/etc/hosts"
|
||||||
|
|
@ -175,9 +142,6 @@ function update_live_env() {
|
||||||
# MOTD
|
# MOTD
|
||||||
sed -i -r "s/_+/$KIT_NAME_FULL Linux Environment/" "$PROFILE_DIR/airootfs/etc/motd"
|
sed -i -r "s/_+/$KIT_NAME_FULL Linux Environment/" "$PROFILE_DIR/airootfs/etc/motd"
|
||||||
|
|
||||||
# Network
|
|
||||||
ln -s "/run/systemd/resolve/stub-resolv.conf" "$PROFILE_DIR/airootfs/etc/resolv.conf"
|
|
||||||
|
|
||||||
# Oh My ZSH
|
# Oh My ZSH
|
||||||
git clone --depth=1 https://github.com/robbyrussell/oh-my-zsh.git "$SKEL_DIR/.oh-my-zsh"
|
git clone --depth=1 https://github.com/robbyrussell/oh-my-zsh.git "$SKEL_DIR/.oh-my-zsh"
|
||||||
rm -Rf "$SKEL_DIR/.oh-my-zsh/.git"
|
rm -Rf "$SKEL_DIR/.oh-my-zsh/.git"
|
||||||
|
|
@ -350,16 +314,6 @@ function build_iso() {
|
||||||
-v "$PROFILE_DIR" \
|
-v "$PROFILE_DIR" \
|
||||||
| tee -a "$LOG_DIR/$DATETIME.log"
|
| tee -a "$LOG_DIR/$DATETIME.log"
|
||||||
|
|
||||||
# Build better ISO
|
|
||||||
rsync -aI "$PROFILE_DIR/EFI/" "${ISO_DIR:-safety}/EFI/"
|
|
||||||
rsync -aI --ignore-existing "$PROFILE_DIR/syslinux/" "${ISO_DIR:-safety}/syslinux/"
|
|
||||||
## Sketchy bit ##
|
|
||||||
. /usr/bin/mkarchiso -o "${OUT_DIR}" -w "${WORK_DIR}" "${PROFILE_DIR}"
|
|
||||||
isofs_dir="${ISO_DIR}"
|
|
||||||
image_name="${KIT_NAME_SHORT}-Linux-${DATE}-x86_64.iso"
|
|
||||||
rm "${OUT_DIR}/${image_name}"
|
|
||||||
_build_iso_image
|
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
echo "Removing temp files..."
|
echo "Removing temp files..."
|
||||||
rm "$TEMP_DIR/Linux" -Rf | tee -a "$LOG_DIR/$DATETIME.log"
|
rm "$TEMP_DIR/Linux" -Rf | tee -a "$LOG_DIR/$DATETIME.log"
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ bc
|
||||||
bind
|
bind
|
||||||
bluez
|
bluez
|
||||||
bluez-utils
|
bluez-utils
|
||||||
|
bolt
|
||||||
btrfs-progs
|
btrfs-progs
|
||||||
cbatticon
|
cbatticon
|
||||||
chntpw
|
chntpw
|
||||||
|
|
@ -31,15 +32,21 @@ dosfstools
|
||||||
dunst
|
dunst
|
||||||
e2fsprogs
|
e2fsprogs
|
||||||
edk2-shell
|
edk2-shell
|
||||||
|
efibootmgr
|
||||||
evince
|
evince
|
||||||
exfatprogs
|
exfatprogs
|
||||||
|
f2fs-tools
|
||||||
|
fatresize
|
||||||
feh
|
feh
|
||||||
ffmpeg
|
ffmpeg
|
||||||
firefox
|
firefox
|
||||||
|
foot-terminfo
|
||||||
gnome-keyring
|
gnome-keyring
|
||||||
|
gnu-netcat
|
||||||
gparted
|
gparted
|
||||||
gpicview
|
gpicview
|
||||||
gptfdisk
|
gptfdisk
|
||||||
|
grub
|
||||||
gsmartcontrol
|
gsmartcontrol
|
||||||
hardinfo-gtk3
|
hardinfo-gtk3
|
||||||
hexedit
|
hexedit
|
||||||
|
|
@ -50,6 +57,7 @@ intel-ucode
|
||||||
iwd
|
iwd
|
||||||
iwgtk
|
iwgtk
|
||||||
jfsutils
|
jfsutils
|
||||||
|
kitty-terminfo
|
||||||
ldns
|
ldns
|
||||||
leafpad
|
leafpad
|
||||||
less
|
less
|
||||||
|
|
@ -57,11 +65,14 @@ lha
|
||||||
libewf
|
libewf
|
||||||
libinput
|
libinput
|
||||||
libldm
|
libldm
|
||||||
|
libusb-compat
|
||||||
libxft
|
libxft
|
||||||
linux
|
linux
|
||||||
linux-firmware
|
linux-firmware
|
||||||
linux-headers
|
linux-headers
|
||||||
|
linux-firmware-marvell
|
||||||
lm_sensors
|
lm_sensors
|
||||||
|
lsscsi
|
||||||
lvm2
|
lvm2
|
||||||
lzip
|
lzip
|
||||||
man-db
|
man-db
|
||||||
|
|
@ -75,22 +86,31 @@ mesa-demos
|
||||||
mesa-utils
|
mesa-utils
|
||||||
mkinitcpio
|
mkinitcpio
|
||||||
mkinitcpio-archiso
|
mkinitcpio-archiso
|
||||||
|
mkinitcpio-nfs-utils
|
||||||
mkvtoolnix-cli
|
mkvtoolnix-cli
|
||||||
mprime-bin
|
mprime-bin
|
||||||
mpv
|
mpv
|
||||||
mtools
|
mtools
|
||||||
nano
|
nano
|
||||||
|
nbd
|
||||||
ncdu
|
ncdu
|
||||||
|
ndisc6
|
||||||
|
nfs-utils
|
||||||
|
nmap
|
||||||
noto-fonts
|
noto-fonts
|
||||||
noto-fonts-cjk
|
noto-fonts-cjk
|
||||||
|
ntfs-3g
|
||||||
numlockx
|
numlockx
|
||||||
nvme-cli
|
nvme-cli
|
||||||
|
open-iscsi
|
||||||
openbox
|
openbox
|
||||||
openssh
|
openssh
|
||||||
|
openssh
|
||||||
opensuperclone-git
|
opensuperclone-git
|
||||||
otf-font-awesome-4
|
otf-font-awesome-4
|
||||||
p7zip
|
p7zip
|
||||||
papirus-icon-theme
|
papirus-icon-theme
|
||||||
|
parted
|
||||||
perl
|
perl
|
||||||
picom
|
picom
|
||||||
pipes.sh
|
pipes.sh
|
||||||
|
|
@ -105,24 +125,26 @@ python-psutil
|
||||||
python-pytz
|
python-pytz
|
||||||
python-requests
|
python-requests
|
||||||
qemu-guest-agent
|
qemu-guest-agent
|
||||||
qemu-guest-agent
|
refind
|
||||||
reiserfsprogs
|
|
||||||
reiserfsprogs
|
reiserfsprogs
|
||||||
rfkill
|
rfkill
|
||||||
rng-tools
|
|
||||||
rofi
|
rofi
|
||||||
rsync
|
rsync
|
||||||
rxvt-unicode
|
rxvt-unicode
|
||||||
rxvt-unicode-terminfo
|
rxvt-unicode-terminfo
|
||||||
|
sdparm
|
||||||
smartmontools-svn
|
smartmontools-svn
|
||||||
smbclient
|
smbclient
|
||||||
|
sof-firmware
|
||||||
speedtest-cli
|
speedtest-cli
|
||||||
spice-vdagent
|
spice-vdagent
|
||||||
|
squashfs-tools
|
||||||
st
|
st
|
||||||
sudo
|
sudo
|
||||||
sysbench
|
sysbench
|
||||||
sysfsutils
|
sysfsutils
|
||||||
syslinux
|
syslinux
|
||||||
|
systemd-resolvconf
|
||||||
systemd-sysvcompat
|
systemd-sysvcompat
|
||||||
terminus-font
|
terminus-font
|
||||||
testdisk
|
testdisk
|
||||||
|
|
@ -132,6 +154,8 @@ tigervnc
|
||||||
tint2
|
tint2
|
||||||
tk
|
tk
|
||||||
tmux
|
tmux
|
||||||
|
tpm2-tools
|
||||||
|
tpm2-tss
|
||||||
tree
|
tree
|
||||||
ttf-font-awesome-4
|
ttf-font-awesome-4
|
||||||
ttf-hack
|
ttf-hack
|
||||||
|
|
@ -142,6 +166,8 @@ ufw
|
||||||
unarj
|
unarj
|
||||||
unrar
|
unrar
|
||||||
unzip
|
unzip
|
||||||
|
usb_modeswitch
|
||||||
|
usbmuxd
|
||||||
usbutils
|
usbutils
|
||||||
util-linux
|
util-linux
|
||||||
veracrypt
|
veracrypt
|
||||||
|
|
@ -149,6 +175,7 @@ vim
|
||||||
virtualbox-guest-utils
|
virtualbox-guest-utils
|
||||||
volumeicon
|
volumeicon
|
||||||
wd719x-firmware
|
wd719x-firmware
|
||||||
|
wezterm-terminfo
|
||||||
which
|
which
|
||||||
wimlib
|
wimlib
|
||||||
wmctrl
|
wmctrl
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 7.7 KiB |
|
Before Width: | Height: | Size: 3 KiB |
|
Before Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 3 KiB |
|
Before Width: | Height: | Size: 338 KiB |
|
Before Width: | Height: | Size: 373 KiB |
|
Before Width: | Height: | Size: 320 KiB |
|
Before Width: | Height: | Size: 116 KiB |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 2 KiB |
|
|
@ -1,160 +0,0 @@
|
||||||
# refind.conf
|
|
||||||
|
|
||||||
timeout 0
|
|
||||||
scanfor manual
|
|
||||||
showtools firmware,reboot,shutdown
|
|
||||||
default_selection Linux
|
|
||||||
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 "Linux" {
|
|
||||||
icon /EFI/boot/icons/wk_arch.png
|
|
||||||
loader /arch/boot/x86_64/vmlinuz-linux
|
|
||||||
initrd /arch/boot/intel_ucode.img
|
|
||||||
initrd /arch/boot/amd_ucode.img
|
|
||||||
initrd /arch/boot/x86_64/initramfs-linux.img
|
|
||||||
options "archisobasedir=arch archisolabel=%ARCHISO_LABEL% copytoram loglevel=3"
|
|
||||||
submenuentry "Linux (CLI)" {
|
|
||||||
add_options "nox"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
menuentry "MemTest86+" {
|
|
||||||
icon /EFI/boot/icons/wk_memtest.png
|
|
||||||
options "nobigstatus nopause"
|
|
||||||
loader /EFI/memtest86+/bootx64.efi
|
|
||||||
submenuentry "Memtest86+ (Open Source)" {
|
|
||||||
loader /EFI/memtest86+/bootx64.efi
|
|
||||||
}
|
|
||||||
submenuentry "Memtest86 (Passmark)" {
|
|
||||||
loader /EFI/memtest86/bootx64.efi
|
|
||||||
options
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#UFD-MACOS-10.11#menuentry "macOS (El Capitan)" {
|
|
||||||
#UFD-MACOS-10.11# icon /EFI/boot/icons/wk_mac_10.11.png
|
|
||||||
#UFD-MACOS-10.11# volume "PARTUUID"
|
|
||||||
#UFD-MACOS-10.11# loader /System/Library/CoreServices/secretboot.efi
|
|
||||||
#UFD-MACOS-10.11# graphics
|
|
||||||
#UFD-MACOS-10.11# submenuentry "Mac MemTest" {
|
|
||||||
#UFD-MACOS-10.11# add_options "-s"
|
|
||||||
#UFD-MACOS-10.11# }
|
|
||||||
#UFD-MACOS-10.11#}
|
|
||||||
|
|
||||||
#UFD-MACOS-10.13#menuentry "macOS (High Sierra)" {
|
|
||||||
#UFD-MACOS-10.13# icon /EFI/boot/icons/wk_mac_10.13.png
|
|
||||||
#UFD-MACOS-10.13# volume "PARTUUID"
|
|
||||||
#UFD-MACOS-10.13# loader /System/Library/CoreServices/secretboot.efi
|
|
||||||
#UFD-MACOS-10.13# graphics
|
|
||||||
#UFD-MACOS-10.13# submenuentry "Mac MemTest" {
|
|
||||||
#UFD-MACOS-10.13# add_options "-s"
|
|
||||||
#UFD-MACOS-10.13# }
|
|
||||||
#UFD-MACOS-10.13#}
|
|
||||||
|
|
||||||
#UFD-MACOS-10.15#menuentry "macOS (Catalina)" {
|
|
||||||
#UFD-MACOS-10.15# icon /EFI/boot/icons/wk_mac_10.15.png
|
|
||||||
#UFD-MACOS-10.15# volume "PARTUUID"
|
|
||||||
#UFD-MACOS-10.15# loader /System/Library/CoreServices/secretboot.efi
|
|
||||||
#UFD-MACOS-10.15# graphics
|
|
||||||
#UFD-MACOS-10.15# submenuentry "Mac MemTest" {
|
|
||||||
#UFD-MACOS-10.15# add_options "-s"
|
|
||||||
#UFD-MACOS-10.15# }
|
|
||||||
#UFD-MACOS-10.15#}
|
|
||||||
|
|
||||||
#UFD-WINPE#menuentry "WindowsPE" {
|
|
||||||
#UFD-WINPE# ostype windows
|
|
||||||
#UFD-WINPE# icon /EFI/boot/icons/wk_win.png
|
|
||||||
#UFD-WINPE# loader /EFI/microsoft/bootx64.efi
|
|
||||||
#UFD-WINPE#}
|
|
||||||
|
|
||||||
#UFD-ESET#menuentry "ESET SysRescue Live" {
|
|
||||||
#UFD-ESET# icon /EFI/boot/icons/1201_eset.png
|
|
||||||
#UFD-ESET# loader /EFI/ESET/grubx64.efi
|
|
||||||
#UFD-ESET#}
|
|
||||||
|
|
||||||
#UFD-ASD-3S162#menuentry "ASD: 3s162 - MBPr L2013-2015" {
|
|
||||||
#UFD-ASD-3S162# icon /EFI/boot/icons/wk_mac.png
|
|
||||||
#UFD-ASD-3S162# volume="PARTUUID"
|
|
||||||
#UFD-ASD-3S162# loader /boot.efi.secret
|
|
||||||
#UFD-ASD-3S162#}
|
|
||||||
|
|
||||||
#UFD-ASD-3S156#menuentry "ASD: 3s156 - MBAir 2013-2017" {
|
|
||||||
#UFD-ASD-3S156# icon /EFI/boot/icons/wk_mac.png
|
|
||||||
#UFD-ASD-3S156# volume="PARTUUID"
|
|
||||||
#UFD-ASD-3S156# loader /boot.efi.secret
|
|
||||||
#UFD-ASD-3S156#}
|
|
||||||
|
|
||||||
#UFD-ASD-3S155#menuentry "ASD: 3s155 - MBPr 2012-E2013, MBAir 2012, iMac 2013" {
|
|
||||||
#UFD-ASD-3S155# icon /EFI/boot/icons/wk_mac.png
|
|
||||||
#UFD-ASD-3S155# volume="PARTUUID"
|
|
||||||
#UFD-ASD-3S155# loader /boot.efi.secret
|
|
||||||
#UFD-ASD-3S155#}
|
|
||||||
|
|
||||||
#UFD-ASD-3S150#menuentry "ASD: 3s150 - MBP 2012, MBAir 2012" {
|
|
||||||
#UFD-ASD-3S150# icon /EFI/boot/icons/wk_mac.png
|
|
||||||
#UFD-ASD-3S150# volume="PARTUUID"
|
|
||||||
#UFD-ASD-3S150# loader /boot.efi.secret
|
|
||||||
#UFD-ASD-3S150#}
|
|
||||||
|
|
||||||
#UFD-ASD-3S148#menuentry "ASD: 3s148 - MBP L2011" {
|
|
||||||
#UFD-ASD-3S148# icon /EFI/boot/icons/wk_mac.png
|
|
||||||
#UFD-ASD-3S148# volume="PARTUUID"
|
|
||||||
#UFD-ASD-3S148# loader /boot.efi.secret
|
|
||||||
#UFD-ASD-3S148#}
|
|
||||||
|
|
||||||
#UFD-ASD-3S147#menuentry "ASD: 3s147 - iMac 21.5 L2011" {
|
|
||||||
#UFD-ASD-3S147# icon /EFI/boot/icons/wk_mac.png
|
|
||||||
#UFD-ASD-3S147# volume="PARTUUID"
|
|
||||||
#UFD-ASD-3S147# loader /boot.efi.secret
|
|
||||||
#UFD-ASD-3S147#}
|
|
||||||
|
|
||||||
#UFD-ASD-3S146#menuentry "ASD: 3s146 - MBAir 2011, MM 2011" {
|
|
||||||
#UFD-ASD-3S146# icon /EFI/boot/icons/wk_mac.png
|
|
||||||
#UFD-ASD-3S146# volume="PARTUUID"
|
|
||||||
#UFD-ASD-3S146# loader /boot.efi.secret
|
|
||||||
#UFD-ASD-3S146#}
|
|
||||||
|
|
||||||
#UFD-ASD-3S145A#menuentry "ASD: 3s145A - iMac M2011" {
|
|
||||||
#UFD-ASD-3S145A# icon /EFI/boot/icons/wk_mac.png
|
|
||||||
#UFD-ASD-3S145A# volume="PARTUUID"
|
|
||||||
#UFD-ASD-3S145A# loader /boot.efi.secret
|
|
||||||
#UFD-ASD-3S145A#}
|
|
||||||
|
|
||||||
#UFD-ASD-3S144#menuentry "ASD: 3s144 - MBP E2011" {
|
|
||||||
#UFD-ASD-3S144# icon /EFI/boot/icons/wk_mac.png
|
|
||||||
#UFD-ASD-3S144# volume="PARTUUID"
|
|
||||||
#UFD-ASD-3S144# loader /boot.efi.secret
|
|
||||||
#UFD-ASD-3S144#}
|
|
||||||
|
|
||||||
#UFD-ASD-3S142A#menuentry "ASD: 3s142A - MBAir 2010" {
|
|
||||||
#UFD-ASD-3S142A# icon /EFI/boot/icons/wk_mac.png
|
|
||||||
#UFD-ASD-3S142A# volume="PARTUUID"
|
|
||||||
#UFD-ASD-3S142A# loader /boot.efi.secret
|
|
||||||
#UFD-ASD-3S142A#}
|
|
||||||
|
|
||||||
#UFD-ASD-3S140#menuentry "ASD: 3s140 - iMac 2010" {
|
|
||||||
#UFD-ASD-3S140# icon /EFI/boot/icons/wk_mac.png
|
|
||||||
#UFD-ASD-3S140# volume="PARTUUID"
|
|
||||||
#UFD-ASD-3S140# loader /boot.efi.secret
|
|
||||||
#UFD-ASD-3S140#}
|
|
||||||
|
|
||||||
#UFD-ASD-3S138#menuentry "ASD: 3s138 - MBP 2010, iMac L2009, MB 2009-2010, MM L2009" {
|
|
||||||
#UFD-ASD-3S138# icon /EFI/boot/icons/wk_mac.png
|
|
||||||
#UFD-ASD-3S138# volume="PARTUUID"
|
|
||||||
#UFD-ASD-3S138# loader /boot.efi.secret
|
|
||||||
#UFD-ASD-3S138#}
|
|
||||||
|
|
||||||
#UFD-ASD-3S132#menuentry "ASD: 3s132 - MBP 2008-2009, MBAir 2008-2009, iMac 2009, MB 2008-2009, MM 2009" {
|
|
||||||
#UFD-ASD-3S132# icon /EFI/boot/icons/wk_mac.png
|
|
||||||
#UFD-ASD-3S132# volume="PARTUUID"
|
|
||||||
#UFD-ASD-3S132# loader /boot.efi.secret
|
|
||||||
#UFD-ASD-3S132#}
|
|
||||||
|
Before Width: | Height: | Size: 538 B |
|
Before Width: | Height: | Size: 720 B |
|
|
@ -1 +1 @@
|
||||||
LANG=en_US.UTF-8
|
LANG=C.UTF-8
|
||||||
|
|
|
||||||
|
|
@ -1,70 +0,0 @@
|
||||||
#
|
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
|
|
||||||
# vim:set ft=sh
|
|
||||||
# MODULES
|
|
||||||
# The following modules are loaded before any boot hooks are
|
|
||||||
# run. Advanced users may wish to specify all system modules
|
|
||||||
# in this array. For instance:
|
|
||||||
# MODULES=(piix ide_disk reiserfs)
|
|
||||||
MODULES=()
|
|
||||||
|
|
||||||
# BINARIES
|
|
||||||
# This setting includes any additional binaries a given user may
|
|
||||||
# wish into the CPIO image. This is run last, so it may be used to
|
|
||||||
# override the actual binaries included by a given hook
|
|
||||||
# BINARIES are dependency parsed, so you may safely ignore libraries
|
|
||||||
BINARIES=()
|
|
||||||
|
|
||||||
# FILES
|
|
||||||
# This setting is similar to BINARIES above, however, files are added
|
|
||||||
# as-is and are not parsed in any way. This is useful for config files.
|
|
||||||
FILES=()
|
|
||||||
|
|
||||||
# HOOKS
|
|
||||||
# This is the most important setting in this file. The HOOKS control the
|
|
||||||
# modules and scripts added to the image, and what happens at boot time.
|
|
||||||
# Order is important, and it is recommended that you do not change the
|
|
||||||
# order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for
|
|
||||||
# help on a given hook.
|
|
||||||
# 'base' is _required_ unless you know precisely what you are doing.
|
|
||||||
# 'udev' is _required_ in order to automatically load modules
|
|
||||||
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
|
|
||||||
# Examples:
|
|
||||||
## This setup specifies all modules in the MODULES setting above.
|
|
||||||
## No raid, lvm2, or encrypted root is needed.
|
|
||||||
# HOOKS=(base)
|
|
||||||
#
|
|
||||||
## This setup will autodetect all modules for your system and should
|
|
||||||
## work as a sane default
|
|
||||||
# HOOKS=(base udev autodetect block filesystems)
|
|
||||||
#
|
|
||||||
## This setup will generate a 'full' image which supports most systems.
|
|
||||||
## No autodetection is done.
|
|
||||||
# HOOKS=(base udev block filesystems)
|
|
||||||
#
|
|
||||||
## This setup assembles a pata mdadm array with an encrypted root FS.
|
|
||||||
## Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
|
|
||||||
# HOOKS=(base udev block mdadm encrypt filesystems)
|
|
||||||
#
|
|
||||||
## This setup loads an lvm2 volume group on a usb device.
|
|
||||||
# HOOKS=(base udev block lvm2 filesystems)
|
|
||||||
#
|
|
||||||
## NOTE: If you have /usr on a separate partition, you MUST include the
|
|
||||||
# usr, fsck and shutdown hooks.
|
|
||||||
HOOKS=(base udev modconf memdisk archiso_shutdown archiso archiso_loop_mnt archiso_pxe_common archiso_pxe_nbd archiso_pxe_http archiso_pxe_nfs archiso_kms block filesystems keyboard)
|
|
||||||
|
|
||||||
# COMPRESSION
|
|
||||||
# Use this to compress the initramfs image. By default, gzip compression
|
|
||||||
# is used. Use 'cat' to create an uncompressed image.
|
|
||||||
#COMPRESSION="gzip"
|
|
||||||
#COMPRESSION="bzip2"
|
|
||||||
#COMPRESSION="lzma"
|
|
||||||
COMPRESSION="xz"
|
|
||||||
#COMPRESSION="lzop"
|
|
||||||
#COMPRESSION="lz4"
|
|
||||||
#COMPRESSION="zstd"
|
|
||||||
|
|
||||||
# COMPRESSION_OPTIONS
|
|
||||||
# Additional options for the compressor
|
|
||||||
#COMPRESSION_OPTIONS=()
|
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
HOOKS=(base udev modconf kms memdisk archiso archiso_loop_mnt archiso_pxe_common archiso_pxe_nbd archiso_pxe_http archiso_pxe_nfs block filesystems keyboard)
|
||||||
|
COMPRESSION="xz"
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
# mkinitcpio preset file for the 'linux' package on archiso
|
|
||||||
|
|
||||||
PRESETS=('archiso')
|
|
||||||
|
|
||||||
ALL_kver='/boot/vmlinuz-linux'
|
|
||||||
ALL_config='/etc/mkinitcpio.conf'
|
|
||||||
|
|
||||||
archiso_image="/boot/initramfs-linux.img"
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
# remove from airootfs!
|
|
||||||
[Trigger]
|
|
||||||
Operation = Install
|
|
||||||
Type = Package
|
|
||||||
Target = glibc
|
|
||||||
|
|
||||||
[Action]
|
|
||||||
Description = Uncommenting en_US.UTF-8 locale and running locale-gen...
|
|
||||||
When = PostTransaction
|
|
||||||
Depends = glibc
|
|
||||||
Depends = sed
|
|
||||||
Depends = sh
|
|
||||||
Exec = /bin/sh -c "sed -i 's/#\(en_US\.UTF-8\)/\1/' /etc/locale.gen && locale-gen"
|
|
||||||
23
setup/linux/profile/airootfs/etc/resolv.conf
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
# This is /run/systemd/resolve/stub-resolv.conf managed by man:systemd-resolved(8).
|
||||||
|
# Do not edit.
|
||||||
|
#
|
||||||
|
# This file might be symlinked as /etc/resolv.conf. If you're looking at
|
||||||
|
# /etc/resolv.conf and seeing this text, you have followed the symlink.
|
||||||
|
#
|
||||||
|
# This is a dynamic resolv.conf file for connecting local clients to the
|
||||||
|
# internal DNS stub resolver of systemd-resolved. This file lists all
|
||||||
|
# configured search domains.
|
||||||
|
#
|
||||||
|
# Run "resolvectl status" to see details about the uplink DNS servers
|
||||||
|
# currently in use.
|
||||||
|
#
|
||||||
|
# Third party programs should typically not access this file directly, but only
|
||||||
|
# through the symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a
|
||||||
|
# different way, replace this symlink by a static file or a different symlink.
|
||||||
|
#
|
||||||
|
# See man:systemd-resolved.service(8) for details about the supported modes of
|
||||||
|
# operation for /etc/resolv.conf.
|
||||||
|
|
||||||
|
nameserver 127.0.0.53
|
||||||
|
options edns0 trust-ad
|
||||||
|
search .
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
[Network]
|
||||||
|
IPv6PrivacyExtensions=yes
|
||||||
|
|
@ -1,10 +1,21 @@
|
||||||
[Match]
|
[Match]
|
||||||
|
# Matching with "Type=ether" causes issues with containers because it also matches virtual Ethernet interfaces (veth*).
|
||||||
|
# See https://bugs.archlinux.org/task/70892
|
||||||
|
# Instead match by globbing the network interface name.
|
||||||
Name=en*
|
Name=en*
|
||||||
Name=eth*
|
Name=eth*
|
||||||
|
|
||||||
[Network]
|
[Network]
|
||||||
DHCP=yes
|
DHCP=yes
|
||||||
IPv6PrivacyExtensions=yes
|
MulticastDNS=yes
|
||||||
|
|
||||||
[DHCP]
|
# systemd-networkd does not set per-interface-type default route metrics
|
||||||
RouteMetric=512
|
# https://github.com/systemd/systemd/issues/17698
|
||||||
|
# Explicitly set route metric, so that Ethernet is preferred over Wi-Fi and Wi-Fi is preferred over mobile broadband.
|
||||||
|
# Use values from NetworkManager. From nm_device_get_route_metric_default in
|
||||||
|
# https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/main/src/core/devices/nm-device.c
|
||||||
|
[DHCPv4]
|
||||||
|
RouteMetric=100
|
||||||
|
|
||||||
|
[IPv6AcceptRA]
|
||||||
|
RouteMetric=100
|
||||||
|
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
[Match]
|
|
||||||
Name=wlp*
|
|
||||||
Name=wlan*
|
|
||||||
|
|
||||||
[Network]
|
|
||||||
DHCP=yes
|
|
||||||
IPv6PrivacyExtensions=yes
|
|
||||||
|
|
||||||
[DHCP]
|
|
||||||
RouteMetric=1024
|
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
[Match]
|
||||||
|
Name=wl*
|
||||||
|
|
||||||
|
[Network]
|
||||||
|
DHCP=yes
|
||||||
|
MulticastDNS=yes
|
||||||
|
|
||||||
|
# systemd-networkd does not set per-interface-type default route metrics
|
||||||
|
# https://github.com/systemd/systemd/issues/17698
|
||||||
|
# Explicitly set route metric, so that Ethernet is preferred over Wi-Fi and Wi-Fi is preferred over mobile broadband.
|
||||||
|
# Use values from NetworkManager. From nm_device_get_route_metric_default in
|
||||||
|
# https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/main/src/core/devices/nm-device.c
|
||||||
|
[DHCPv4]
|
||||||
|
RouteMetric=600
|
||||||
|
|
||||||
|
[IPv6AcceptRA]
|
||||||
|
RouteMetric=600
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
[Match]
|
||||||
|
Name=ww*
|
||||||
|
|
||||||
|
[Network]
|
||||||
|
DHCP=yes
|
||||||
|
|
||||||
|
# systemd-networkd does not set per-interface-type default route metrics
|
||||||
|
# https://github.com/systemd/systemd/issues/17698
|
||||||
|
# Explicitly set route metric, so that Ethernet is preferred over Wi-Fi and Wi-Fi is preferred over mobile broadband.
|
||||||
|
# Use values from NetworkManager. From nm_device_get_route_metric_default in
|
||||||
|
# https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/main/src/core/devices/nm-device.c
|
||||||
|
[DHCPv4]
|
||||||
|
RouteMetric=700
|
||||||
|
|
||||||
|
[IPv6AcceptRA]
|
||||||
|
RouteMetric=700
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
# Default systemd-resolved configuration for archiso
|
||||||
|
|
||||||
|
[Resolve]
|
||||||
|
MulticastDNS=yes
|
||||||
|
|
@ -5,4 +5,4 @@ Description=Temporary /etc/pacman.d/gnupg directory
|
||||||
What=tmpfs
|
What=tmpfs
|
||||||
Where=/etc/pacman.d/gnupg
|
Where=/etc/pacman.d/gnupg
|
||||||
Type=tmpfs
|
Type=tmpfs
|
||||||
Options=mode=0755
|
Options=mode=0755,noswap
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
/usr/lib/systemd/system/rngd.service
|
|
||||||
|
|
@ -1,15 +1,15 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Initializes Pacman keyring
|
Description=Initializes Pacman keyring
|
||||||
Wants=haveged.service
|
|
||||||
After=haveged.service
|
|
||||||
Requires=etc-pacman.d-gnupg.mount
|
Requires=etc-pacman.d-gnupg.mount
|
||||||
After=etc-pacman.d-gnupg.mount
|
After=etc-pacman.d-gnupg.mount time-sync.target
|
||||||
|
BindsTo=etc-pacman.d-gnupg.mount
|
||||||
|
Before=archlinux-keyring-wkd-sync.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
ExecStart=/usr/bin/pacman-key --init
|
ExecStart=/usr/bin/pacman-key --init
|
||||||
ExecStart=/usr/bin/pacman-key --populate archlinux
|
ExecStart=/usr/bin/pacman-key --populate
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
||||||
4
setup/linux/profile/airootfs/root/.gnupg/scdaemon.conf
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
disable-ccid
|
||||||
|
disable-pinpad
|
||||||
|
pcsc-driver /usr/lib/libpcsclite.so
|
||||||
|
pcsc-shared
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
title %ARCHISO_LABEL%
|
title %ARCHISO_LABEL%
|
||||||
sort-key 01
|
sort-key 01
|
||||||
linux /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux
|
linux /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux
|
||||||
initrd /%INSTALL_DIR%/boot/intel-ucode.img
|
initrd /%INSTALL_DIR%/boot/intel-ucode.img
|
||||||
initrd /%INSTALL_DIR%/boot/amd-ucode.img
|
initrd /%INSTALL_DIR%/boot/amd-ucode.img
|
||||||
initrd /%INSTALL_DIR%/boot/x86_64/initramfs-linux.img
|
initrd /%INSTALL_DIR%/boot/x86_64/initramfs-linux.img
|
||||||
options archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL%
|
options archisobasedir=%INSTALL_DIR% archisodevice=UUID=%ARCHISO_UUID%
|
||||||
|
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
title %ARCHISO_LABEL% (Copy to RAM)
|
|
||||||
sort-key 02
|
|
||||||
linux /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux
|
|
||||||
initrd /%INSTALL_DIR%/boot/intel-ucode.img
|
|
||||||
initrd /%INSTALL_DIR%/boot/amd-ucode.img
|
|
||||||
initrd /%INSTALL_DIR%/boot/x86_64/initramfs-linux.img
|
|
||||||
options archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% copytoram
|
|
||||||
109
setup/linux/profile/grub/grub.cfg
Normal file
|
|
@ -0,0 +1,109 @@
|
||||||
|
# Load partition table and file system modules
|
||||||
|
insmod part_gpt
|
||||||
|
insmod part_msdos
|
||||||
|
insmod fat
|
||||||
|
insmod iso9660
|
||||||
|
insmod ntfs
|
||||||
|
insmod ntfscomp
|
||||||
|
insmod exfat
|
||||||
|
insmod udf
|
||||||
|
|
||||||
|
# Use graphics-mode output
|
||||||
|
if loadfont "${prefix}/fonts/unicode.pf2" ; then
|
||||||
|
insmod all_video
|
||||||
|
set gfxmode="auto"
|
||||||
|
terminal_input console
|
||||||
|
terminal_output console
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Enable serial console
|
||||||
|
insmod serial
|
||||||
|
insmod usbserial_common
|
||||||
|
insmod usbserial_ftdi
|
||||||
|
insmod usbserial_pl2303
|
||||||
|
insmod usbserial_usbdebug
|
||||||
|
if serial --unit=0 --speed=115200; then
|
||||||
|
terminal_input --append serial
|
||||||
|
terminal_output --append serial
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Search for the ISO volume
|
||||||
|
if [ -z "${ARCHISO_UUID}" ]; then
|
||||||
|
if [ -z "${ARCHISO_HINT}" ]; then
|
||||||
|
regexp --set=1:ARCHISO_HINT '^\(([^)]+)\)' "${cmdpath}"
|
||||||
|
fi
|
||||||
|
search --no-floppy --set=root --file '%ARCHISO_SEARCH_FILENAME%' --hint "${ARCHISO_HINT}"
|
||||||
|
probe --set ARCHISO_UUID --fs-uuid "${root}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Get a human readable platform identifier
|
||||||
|
if [ "${grub_platform}" == 'efi' ]; then
|
||||||
|
archiso_platform='UEFI'
|
||||||
|
if [ "${grub_cpu}" == 'x86_64' ]; then
|
||||||
|
archiso_platform="x64 ${archiso_platform}"
|
||||||
|
elif [ "${grub_cpu}" == 'i386' ]; then
|
||||||
|
archiso_platform="IA32 ${archiso_platform}"
|
||||||
|
else
|
||||||
|
archiso_platform="${grub_cpu} ${archiso_platform}"
|
||||||
|
fi
|
||||||
|
elif [ "${grub_platform}" == 'pc' ]; then
|
||||||
|
archiso_platform='BIOS'
|
||||||
|
else
|
||||||
|
archiso_platform="${grub_cpu} ${grub_platform}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Set default menu entry
|
||||||
|
default=archlinux
|
||||||
|
timeout=15
|
||||||
|
timeout_style=menu
|
||||||
|
|
||||||
|
|
||||||
|
# Menu entries
|
||||||
|
|
||||||
|
menuentry "%ARCHISO_LABEL% (${archiso_platform})" --class arch --class gnu-linux --class gnu --class os --id 'archlinux' {
|
||||||
|
set gfxpayload=keep
|
||||||
|
linux /%INSTALL_DIR%/boot/%ARCH%/vmlinuz-linux archisobasedir=%INSTALL_DIR% archisodevice=UUID=${ARCHISO_UUID}
|
||||||
|
initrd /%INSTALL_DIR%/boot/intel-ucode.img /%INSTALL_DIR%/boot/amd-ucode.img /%INSTALL_DIR%/boot/%ARCH%/initramfs-linux.img
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ "${grub_platform}" == 'efi' -a "${grub_cpu}" == 'x86_64' -a -f '/boot/memtest86+/memtest.efi' ]; then
|
||||||
|
menuentry 'Run Memtest86+ (RAM test)' --class memtest86 --class memtest --class gnu --class tool {
|
||||||
|
set gfxpayload=800x600,1024x768
|
||||||
|
linux /boot/memtest86+/memtest.efi
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
if [ "${grub_platform}" == 'pc' -a -f '/boot/memtest86+/memtest' ]; then
|
||||||
|
menuentry 'Run Memtest86+ (RAM test)' --class memtest86 --class memtest --class gnu --class tool {
|
||||||
|
set gfxpayload=800x600,1024x768
|
||||||
|
linux /boot/memtest86+/memtest
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
if [ "${grub_platform}" == 'efi' ]; then
|
||||||
|
if [ "${grub_cpu}" == 'x86_64' -a -f '/shellx64.efi' ]; then
|
||||||
|
menuentry 'UEFI Shell' --class efi {
|
||||||
|
chainloader /shellx64.efi
|
||||||
|
}
|
||||||
|
elif [ "${grub_cpu}" == "i386" -a -f '/shellia32.efi' ]; then
|
||||||
|
menuentry 'UEFI Shell' --class efi {
|
||||||
|
chainloader /shellia32.efi
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
|
||||||
|
menuentry 'UEFI Firmware Settings' --id 'uefi-firmware' {
|
||||||
|
fwsetup
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
|
||||||
|
menuentry 'System shutdown' --class shutdown --class poweroff {
|
||||||
|
echo 'System shutting down...'
|
||||||
|
halt
|
||||||
|
}
|
||||||
|
|
||||||
|
menuentry 'System restart' --class reboot --class restart {
|
||||||
|
echo 'System rebooting...'
|
||||||
|
reboot
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# GRUB init tune for accessibility
|
||||||
|
play 600 988 1 1319 4
|
||||||
73
setup/linux/profile/grub/loopback.cfg
Normal file
|
|
@ -0,0 +1,73 @@
|
||||||
|
# https://www.supergrubdisk.org/wiki/Loopback.cfg
|
||||||
|
|
||||||
|
# Search for the ISO volume
|
||||||
|
search --no-floppy --set=archiso_img_dev --file "${iso_path}"
|
||||||
|
probe --set archiso_img_dev_uuid --fs-uuid "${archiso_img_dev}"
|
||||||
|
|
||||||
|
# Get a human readable platform identifier
|
||||||
|
if [ "${grub_platform}" == 'efi' ]; then
|
||||||
|
archiso_platform='UEFI'
|
||||||
|
if [ "${grub_cpu}" == 'x86_64' ]; then
|
||||||
|
archiso_platform="x64 ${archiso_platform}"
|
||||||
|
elif [ "${grub_cpu}" == 'i386' ]; then
|
||||||
|
archiso_platform="IA32 ${archiso_platform}"
|
||||||
|
else
|
||||||
|
archiso_platform="${grub_cpu} ${archiso_platform}"
|
||||||
|
fi
|
||||||
|
elif [ "${grub_platform}" == 'pc' ]; then
|
||||||
|
archiso_platform='BIOS'
|
||||||
|
else
|
||||||
|
archiso_platform="${grub_cpu} ${grub_platform}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Set default menu entry
|
||||||
|
default=archlinux
|
||||||
|
timeout=15
|
||||||
|
timeout_style=menu
|
||||||
|
|
||||||
|
|
||||||
|
# Menu entries
|
||||||
|
|
||||||
|
menuentry "%ARCHISO_LABEL% (${archiso_platform})" --class arch --class gnu-linux --class gnu --class os --id 'archlinux' {
|
||||||
|
set gfxpayload=keep
|
||||||
|
linux /%INSTALL_DIR%/boot/%ARCH%/vmlinuz-linux archisobasedir=%INSTALL_DIR% img_dev=UUID=${archiso_img_dev_uuid} img_loop="${iso_path}"
|
||||||
|
initrd /%INSTALL_DIR%/boot/intel-ucode.img /%INSTALL_DIR%/boot/amd-ucode.img /%INSTALL_DIR%/boot/%ARCH%/initramfs-linux.img
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ "${grub_platform}" == 'efi' -a "${grub_cpu}" == 'x86_64' -a -f '/boot/memtest86+/memtest.efi' ]; then
|
||||||
|
menuentry 'Run Memtest86+ (RAM test)' --class memtest86 --class memtest --class gnu --class tool {
|
||||||
|
set gfxpayload=800x600,1024x768
|
||||||
|
linux /boot/memtest86+/memtest.efi
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
if [ "${grub_platform}" == 'pc' -a -f '/boot/memtest86+/memtest' ]; then
|
||||||
|
menuentry 'Run Memtest86+ (RAM test)' --class memtest86 --class memtest --class gnu --class tool {
|
||||||
|
set gfxpayload=800x600,1024x768
|
||||||
|
linux /boot/memtest86+/memtest
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
if [ "${grub_platform}" == 'efi' ]; then
|
||||||
|
if [ "${grub_cpu}" == 'x86_64' -a -f '/shellx64.efi' ]; then
|
||||||
|
menuentry 'UEFI Shell' --class efi {
|
||||||
|
chainloader /shellx64.efi
|
||||||
|
}
|
||||||
|
elif [ "${grub_cpu}" == "i386" -a -f '/shellia32.efi' ]; then
|
||||||
|
menuentry 'UEFI Shell' --class efi {
|
||||||
|
chainloader /shellia32.efi
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
|
||||||
|
menuentry 'UEFI Firmware Settings' --id 'uefi-firmware' {
|
||||||
|
fwsetup
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
|
||||||
|
menuentry 'System shutdown' --class shutdown --class poweroff {
|
||||||
|
echo 'System shutting down...'
|
||||||
|
halt
|
||||||
|
}
|
||||||
|
|
||||||
|
menuentry 'System restart' --class reboot --class restart {
|
||||||
|
echo 'System rebooting...'
|
||||||
|
reboot
|
||||||
|
}
|
||||||
|
|
@ -8,16 +8,19 @@ iso_application="KIT_NAME_FULL Linux Environment"
|
||||||
iso_version="$(date +%Y-%m-%d)"
|
iso_version="$(date +%Y-%m-%d)"
|
||||||
install_dir="arch"
|
install_dir="arch"
|
||||||
buildmodes=('iso')
|
buildmodes=('iso')
|
||||||
bootmodes=('bios.syslinux.mbr' 'bios.syslinux.eltorito')
|
bootmodes=('bios.syslinux.mbr' 'bios.syslinux.eltorito'
|
||||||
|
'uefi-ia32.grub.esp' 'uefi-x64.grub.esp'
|
||||||
|
'uefi-ia32.grub.eltorito' 'uefi-x64.grub.eltorito')
|
||||||
arch="x86_64"
|
arch="x86_64"
|
||||||
pacman_conf="pacman.conf"
|
pacman_conf="pacman.conf"
|
||||||
airootfs_image_type="squashfs"
|
airootfs_image_type="squashfs"
|
||||||
airootfs_image_tool_options=('-comp' 'xz' '-Xbcj' 'x86' '-b' '1M' '-Xdict-size' '1M')
|
airootfs_image_tool_options=('-comp' 'xz' '-Xbcj' 'x86' '-b' '1M' '-Xdict-size' '1M')
|
||||||
file_permissions=(
|
file_permissions=(
|
||||||
["/root"]="0:0:750"
|
|
||||||
["/etc/shadow"]="0:0:400"
|
|
||||||
["/etc/gshadow"]="0:0:400"
|
["/etc/gshadow"]="0:0:400"
|
||||||
|
["/etc/shadow"]="0:0:400"
|
||||||
["/etc/skel/.ssh"]="0:0:700"
|
["/etc/skel/.ssh"]="0:0:700"
|
||||||
["/etc/skel/.ssh/authorized_keys"]="0:0:600"
|
["/etc/skel/.ssh/authorized_keys"]="0:0:600"
|
||||||
["/etc/skel/.ssh/id_rsa"]="0:0:600"
|
["/etc/skel/.ssh/id_rsa"]="0:0:600"
|
||||||
|
["/root"]="0:0:750"
|
||||||
|
["/root/.gnupg"]="0:0:700"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
28
setup/linux/profile/syslinux/archiso_head.cfg
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
SERIAL 0 115200
|
||||||
|
UI vesamenu.c32
|
||||||
|
MENU TITLE Arch Linux
|
||||||
|
MENU BACKGROUND splash.png
|
||||||
|
|
||||||
|
MENU WIDTH 78
|
||||||
|
MENU MARGIN 4
|
||||||
|
MENU ROWS 7
|
||||||
|
MENU VSHIFT 10
|
||||||
|
MENU TABMSGROW 14
|
||||||
|
MENU CMDLINEROW 14
|
||||||
|
MENU HELPMSGROW 16
|
||||||
|
MENU HELPMSGENDROW 29
|
||||||
|
|
||||||
|
# Refer to https://wiki.syslinux.org/wiki/index.php/Comboot/menu.c32
|
||||||
|
|
||||||
|
MENU COLOR border 30;44 #40ffffff #a0000000 std
|
||||||
|
MENU COLOR title 1;36;44 #9033ccff #a0000000 std
|
||||||
|
MENU COLOR sel 7;37;40 #e0ffffff #20ffffff all
|
||||||
|
MENU COLOR unsel 37;44 #50ffffff #a0000000 std
|
||||||
|
MENU COLOR help 37;40 #c0ffffff #a0000000 std
|
||||||
|
MENU COLOR timeout_msg 37;40 #80ffffff #00000000 std
|
||||||
|
MENU COLOR timeout 1;37;40 #c0ffffff #00000000 std
|
||||||
|
MENU COLOR msg07 37;40 #90ffffff #a0000000 std
|
||||||
|
MENU COLOR tabmsg 31;40 #30ffffff #00000000 std
|
||||||
|
|
||||||
|
MENU CLEAR
|
||||||
|
MENU IMMEDIATE
|
||||||
32
setup/linux/profile/syslinux/archiso_pxe-linux.cfg
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
LABEL arch64_nbd
|
||||||
|
TEXT HELP
|
||||||
|
Boot %ARCHISO_LABEL% using NBD.
|
||||||
|
* HW diagnostics, file-based backups, data recovery, etc
|
||||||
|
ENDTEXT
|
||||||
|
MENU LABEL %ARCHISO_LABEL% (NBD)
|
||||||
|
LINUX ::/%INSTALL_DIR%/boot/x86_64/vmlinuz-linux
|
||||||
|
INITRD ::/%INSTALL_DIR%/boot/intel-ucode.img,::/%INSTALL_DIR%/boot/amd-ucode.img,::/%INSTALL_DIR%/boot/x86_64/initramfs-linux.img
|
||||||
|
APPEND archisobasedir=%INSTALL_DIR% archisodevice=UUID=%ARCHISO_UUID% archiso_nbd_srv=${pxeserver} cms_verify=y
|
||||||
|
SYSAPPEND 3
|
||||||
|
|
||||||
|
LABEL arch64_nfs
|
||||||
|
TEXT HELP
|
||||||
|
Boot %ARCHISO_LABEL% using NFS.
|
||||||
|
* HW diagnostics, file-based backups, data recovery, etc
|
||||||
|
ENDTEXT
|
||||||
|
MENU LABEL %ARCHISO_LABEL% (NFS)
|
||||||
|
LINUX ::/%INSTALL_DIR%/boot/x86_64/vmlinuz-linux
|
||||||
|
INITRD ::/%INSTALL_DIR%/boot/intel-ucode.img,::/%INSTALL_DIR%/boot/amd-ucode.img,::/%INSTALL_DIR%/boot/x86_64/initramfs-linux.img
|
||||||
|
APPEND archisobasedir=%INSTALL_DIR% archiso_nfs_srv=${pxeserver}:/run/archiso/bootmnt cms_verify=y
|
||||||
|
SYSAPPEND 3
|
||||||
|
|
||||||
|
LABEL arch64_http
|
||||||
|
TEXT HELP
|
||||||
|
Boot %ARCHISO_LABEL% using HTTP.
|
||||||
|
* HW diagnostics, file-based backups, data recovery, etc
|
||||||
|
ENDTEXT
|
||||||
|
MENU LABEL %ARCHISO_LABEL% (HTTP)
|
||||||
|
LINUX ::/%INSTALL_DIR%/boot/x86_64/vmlinuz-linux
|
||||||
|
INITRD ::/%INSTALL_DIR%/boot/intel-ucode.img,::/%INSTALL_DIR%/boot/amd-ucode.img,::/%INSTALL_DIR%/boot/x86_64/initramfs-linux.img
|
||||||
|
APPEND archisobasedir=%INSTALL_DIR% archiso_http_srv=http://${pxeserver}/ cms_verify=y
|
||||||
|
SYSAPPEND 3
|
||||||
5
setup/linux/profile/syslinux/archiso_pxe.cfg
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
INCLUDE archiso_head.cfg
|
||||||
|
|
||||||
|
INCLUDE archiso_pxe-linux.cfg
|
||||||
|
|
||||||
|
INCLUDE archiso_tail.cfg
|
||||||
9
setup/linux/profile/syslinux/archiso_sys-linux.cfg
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
LABEL arch64
|
||||||
|
TEXT HELP
|
||||||
|
Boot %ARCHISO_LABEL% on BIOS.
|
||||||
|
* HW diagnostics, file-based backups, data recovery, etc
|
||||||
|
ENDTEXT
|
||||||
|
MENU LABEL %ARCHISO_LABEL% (BIOS)
|
||||||
|
LINUX /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux
|
||||||
|
INITRD /%INSTALL_DIR%/boot/intel-ucode.img,/%INSTALL_DIR%/boot/amd-ucode.img,/%INSTALL_DIR%/boot/x86_64/initramfs-linux.img
|
||||||
|
APPEND archisobasedir=%INSTALL_DIR% archisodevice=UUID=%ARCHISO_UUID%
|
||||||
8
setup/linux/profile/syslinux/archiso_sys.cfg
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
INCLUDE archiso_head.cfg
|
||||||
|
|
||||||
|
DEFAULT arch64
|
||||||
|
TIMEOUT 150
|
||||||
|
|
||||||
|
INCLUDE archiso_sys-linux.cfg
|
||||||
|
|
||||||
|
INCLUDE archiso_tail.cfg
|
||||||
35
setup/linux/profile/syslinux/archiso_tail.cfg
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
LABEL existing
|
||||||
|
TEXT HELP
|
||||||
|
Boot an existing operating system.
|
||||||
|
Press TAB to edit the disk and partition number to boot.
|
||||||
|
ENDTEXT
|
||||||
|
MENU LABEL Boot existing OS
|
||||||
|
COM32 chain.c32
|
||||||
|
APPEND hd0 0
|
||||||
|
|
||||||
|
# https://www.memtest.org/
|
||||||
|
LABEL memtest
|
||||||
|
MENU LABEL Run Memtest86+ (RAM test)
|
||||||
|
LINUX /boot/memtest86+/memtest
|
||||||
|
|
||||||
|
# https://wiki.syslinux.org/wiki/index.php/Hdt_(Hardware_Detection_Tool)
|
||||||
|
LABEL hdt
|
||||||
|
MENU LABEL Hardware Information (HDT)
|
||||||
|
COM32 hdt.c32
|
||||||
|
APPEND modules_alias=hdt/modalias.gz pciids=hdt/pciids.gz
|
||||||
|
|
||||||
|
LABEL reboot
|
||||||
|
TEXT HELP
|
||||||
|
Reboot computer.
|
||||||
|
The computer's firmware must support APM.
|
||||||
|
ENDTEXT
|
||||||
|
MENU LABEL Reboot
|
||||||
|
COM32 reboot.c32
|
||||||
|
|
||||||
|
LABEL poweroff
|
||||||
|
TEXT HELP
|
||||||
|
Power off computer.
|
||||||
|
The computer's firmware must support APM.
|
||||||
|
ENDTEXT
|
||||||
|
MENU LABEL Power Off
|
||||||
|
COM32 poweroff.c32
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
LABEL eset
|
|
||||||
TEXT HELP
|
|
||||||
ESET SysRescue Live
|
|
||||||
* Offline AV scanner
|
|
||||||
ENDTEXT
|
|
||||||
MENU LABEL ESET SysRescue Live
|
|
||||||
LINUX ../casper/vmlinuz
|
|
||||||
INITRD ../casper/initrd.lz
|
|
||||||
APPEND boot=casper live-media=/dev/disk/by-label/1201_UFD splash
|
|
||||||
|
|
@ -1,21 +0,0 @@
|
||||||
LABEL wk_linux
|
|
||||||
TEXT HELP
|
|
||||||
A live Linux environment
|
|
||||||
* HW diagnostics, file-based backups, data recovery, etc
|
|
||||||
ENDTEXT
|
|
||||||
MENU LABEL Linux
|
|
||||||
LINUX /%INSTALL_DIR%/boot/%ARCH%/vmlinuz-linux
|
|
||||||
INITRD /%INSTALL_DIR%/boot/intel-ucode.img,/%INSTALL_DIR%/boot/amd-ucode.img,/%INSTALL_DIR%/boot/x86_64/initramfs-linux.img
|
|
||||||
APPEND archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% copytoram loglevel=3
|
|
||||||
|
|
||||||
LABEL wk_linux_cli
|
|
||||||
TEXT HELP
|
|
||||||
A live Linux environment (CLI)
|
|
||||||
* HW diagnostics, file-based backups, data recovery, etc
|
|
||||||
ENDTEXT
|
|
||||||
MENU LABEL Linux (CLI)
|
|
||||||
LINUX /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux
|
|
||||||
INITRD /%INSTALL_DIR%/boot/intel-ucode.img,/%INSTALL_DIR%/boot/amd-ucode.img,/%INSTALL_DIR%/boot/x86_64/initramfs-linux.img
|
|
||||||
APPEND archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% copytoram nox
|
|
||||||
SYSAPPEND 3
|
|
||||||
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
# http://www.memtest.org/
|
|
||||||
LABEL memtest
|
|
||||||
MENU LABEL Memtest86+
|
|
||||||
TEXT HELP
|
|
||||||
Perform RAM diagnostics
|
|
||||||
* This utility is not recommended for testing DDR4 RAM
|
|
||||||
ENDTEXT
|
|
||||||
LINUX /%INSTALL_DIR%/boot/memtest
|
|
||||||
|
|
@ -1,63 +1,11 @@
|
||||||
SERIAL 0 115200
|
DEFAULT select
|
||||||
UI vesamenu.c32
|
|
||||||
MENU TITLE _______
|
|
||||||
MENU BACKGROUND syslinux.jpg
|
|
||||||
|
|
||||||
MENU WIDTH 80
|
LABEL select
|
||||||
MENU MARGIN 10
|
COM32 whichsys.c32
|
||||||
MENU ROWS 15
|
APPEND -pxe- pxe -sys- sys -iso- sys
|
||||||
MENU VSHIFT 2
|
|
||||||
MENU TABMSGROW 22
|
|
||||||
MENU CMDLINEROW 22
|
|
||||||
MENU HELPMSGROW 24
|
|
||||||
MENU HELPMSGENDROW -1
|
|
||||||
MENU TABMSG
|
|
||||||
|
|
||||||
# Refer to http://syslinux.zytor.com/wiki/index.php/Doc/menu
|
LABEL pxe
|
||||||
|
CONFIG archiso_pxe.cfg
|
||||||
|
|
||||||
MENU COLOR screen 30;41 #a0000000 #a0000000 none
|
LABEL sys
|
||||||
MENU COLOR border 30;41 #a0000000 #a0000000 none
|
CONFIG archiso_sys.cfg
|
||||||
MENU COLOR title 1;35;41 #90ff6666 #a0000000 none
|
|
||||||
MENU COLOR sel 7;37;40 #e0ffffff #a0000000 std
|
|
||||||
MENU COLOR disabled 37;41 #50ffffff #a0000000 none
|
|
||||||
MENU COLOR unsel 37;41 #50ffffff #a0000000 none
|
|
||||||
MENU COLOR help 37;40 #c0ffffff #a0000000 none
|
|
||||||
MENU COLOR tabmsg 30;41 #a0000000 #a0000000 none
|
|
||||||
menu color cmdmark 1;35;41 #90ff6666 #a0000000 none
|
|
||||||
menu color cmdline 37;40 #c0ffffff #a0000000 none
|
|
||||||
MENU COLOR timeout_msg 37;40 #80ffffff #a0000000 none
|
|
||||||
MENU COLOR timeout 1;37;40 #c0ffffff #a0000000 none
|
|
||||||
MENU COLOR msg07 37;40 #90ffffff #a0000000 none
|
|
||||||
MENU COLOR tabmsg 31;40 #30ffffff #a0000000 none
|
|
||||||
|
|
||||||
# Start entries
|
|
||||||
MENU SEPARATOR
|
|
||||||
|
|
||||||
MENU CLEAR
|
|
||||||
|
|
||||||
DEFAULT wk_linux
|
|
||||||
TIMEOUT 0
|
|
||||||
|
|
||||||
INCLUDE linux.cfg
|
|
||||||
INCLUDE memtest.cfg
|
|
||||||
#UFD-WINPE#INCLUDE winpe.cfg
|
|
||||||
#UFD-ESET#INCLUDE eset.cfg
|
|
||||||
|
|
||||||
MENU SEPARATOR
|
|
||||||
|
|
||||||
LABEL existing
|
|
||||||
MENU LABEL Boot existing OS
|
|
||||||
TEXT HELP
|
|
||||||
Boot to the currently installed OS
|
|
||||||
* This may not work for all systems
|
|
||||||
ENDTEXT
|
|
||||||
COM32 chain.c32
|
|
||||||
APPEND hd1
|
|
||||||
|
|
||||||
LABEL reboot
|
|
||||||
MENU LABEL Reboot
|
|
||||||
COM32 reboot.c32
|
|
||||||
|
|
||||||
LABEL poweroff
|
|
||||||
MENU LABEL Power Off
|
|
||||||
COM32 poweroff.c32
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
LABEL wk_winpe
|
|
||||||
TEXT HELP
|
|
||||||
A live Windows environment
|
|
||||||
* Create partition backups, Install Windows, etc
|
|
||||||
ENDTEXT
|
|
||||||
MENU LABEL Windows PE
|
|
||||||
COM32 linux.c32
|
|
||||||
APPEND wimboot/wimboot gui initrdfile=/sources/BOOTMGR,/sources/BCD,/sources/boot.sdi,/sources/boot.wim
|
|
||||||