targets
This commit is contained in:
parent
671d08c502
commit
cac74aef9d
3 changed files with 85 additions and 72 deletions
132
build.sh
Normal file → Executable file
132
build.sh
Normal file → Executable file
|
@ -1,9 +1,13 @@
|
||||||
#! /usr/bin/env bash
|
#! /usr/bin/env bash
|
||||||
|
[ "${2}" ] || exit 1
|
||||||
FILE="$(realpath "${BASH_SOURCE[0]}")"
|
FILE="$(realpath "${BASH_SOURCE[0]}")"
|
||||||
DIRECTORY="$(dirname "${FILE}")"
|
SCRIPT="$(basename "${FILE}")"
|
||||||
ROOT="$(dirname "${DIRECTORY}")"
|
ROOT="$(dirname "${FILE}")"
|
||||||
[ -d "${ROOT}" ] || exit 1
|
PROJECT="$(basename "${ROOT}")"
|
||||||
PROJECT="$(basename "${DIRECTORY}")"
|
|
||||||
|
PGP_PUB="${1}"
|
||||||
|
ESP_ROOT="${2}"
|
||||||
|
DATA_ROOT="${3}"
|
||||||
|
|
||||||
function get_path_mount {
|
function get_path_mount {
|
||||||
stat --format '%m' "${1}"
|
stat --format '%m' "${1}"
|
||||||
|
@ -12,17 +16,16 @@ function get_mount_uuid {
|
||||||
findmnt --noheadings --output 'UUID' "${1}"
|
findmnt --noheadings --output 'UUID' "${1}"
|
||||||
}
|
}
|
||||||
function get_path_uuid {
|
function get_path_uuid {
|
||||||
local tmp="$(get_path_mount "${1}")"
|
local tmp="$(get_path_mount "${1}/")"
|
||||||
get_mount_uuid "${tmp}"
|
get_mount_uuid "${tmp}"
|
||||||
}
|
}
|
||||||
ESP="$(get_path_uuid "${ROOT}")"
|
ESP="$(get_path_uuid "${ESP_ROOT}")"
|
||||||
if [ "${1}" ] ; then
|
if [ "${DATA_ROOT}" ] ; then
|
||||||
DATA="$(get_path_uuid "${1}")"
|
DATA="$(get_path_uuid "${DATA_ROOT}")"
|
||||||
else
|
else
|
||||||
DATA="${ESP}"
|
DATA="${ESP}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PGP_PUB='312ACDF9BB03C81ADE95B9C09C7613450C80C24F'
|
|
||||||
function sign {
|
function sign {
|
||||||
if [ -d "${1}" ] ; then
|
if [ -d "${1}" ] ; then
|
||||||
local file
|
local file
|
||||||
|
@ -48,54 +51,62 @@ function sign {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
NAME="$(basename "${FILE}")"
|
|
||||||
PREVIOUS="${PWD}"
|
|
||||||
cd "${DIRECTORY}"
|
|
||||||
|
|
||||||
# imports ⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅
|
# imports ⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅
|
||||||
|
|
||||||
source "${NAME%.*}.mod"
|
source "${ROOT}/${SCRIPT%.*}.mod"
|
||||||
|
|
||||||
|
# constants ⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅
|
||||||
|
|
||||||
|
BIOS_BOOT='/usr/lib/grub/i386-pc/boot.img'
|
||||||
|
COMPRESSION='xz'
|
||||||
|
GRUB_HEAD='# GRUB Environment Block'
|
||||||
|
SIGNED_GRUB='/usr/lib/grub/x86_64-efi-signed/grubx64.efi.signed'
|
||||||
|
SIGNED_SHIM='/usr/lib/shim/shimx64.efi.signed'
|
||||||
|
|
||||||
# variables ⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅
|
# variables ⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅
|
||||||
|
|
||||||
MEMDISK_ROOT='boot'
|
MEMDISK_ROOT="${ESP_ROOT}/memdisk"
|
||||||
MEMDISK_DIRECTORY="${MEMDISK_ROOT}/grub"
|
MEMDISK_DIRECTORY="${MEMDISK_ROOT}/boot/grub"
|
||||||
MEMDISK_FILE="${MEMDISK_DIRECTORY}/grub.cfg"
|
MEMDISK_FILE="${MEMDISK_DIRECTORY}/grub.cfg"
|
||||||
MEMDISK_ARCHIVE="${MEMDISK_ROOT}.tar"
|
MEMDISK_ARCHIVE="${MEMDISK_ROOT}/boot.tar"
|
||||||
UEFI_ROOT="${ROOT}/efi"
|
|
||||||
|
UEFI_ROOT="${ESP_ROOT}/efi"
|
||||||
UEFI_DIRECTORY="${UEFI_ROOT}/boot"
|
UEFI_DIRECTORY="${UEFI_ROOT}/boot"
|
||||||
UEFI_CORE="${UEFI_DIRECTORY}/core.efi"
|
UEFI_CORE="${UEFI_DIRECTORY}/core.efi"
|
||||||
UEFI_FILE="${UEFI_DIRECTORY}/bootx64.efi"
|
UEFI_FILE="${UEFI_DIRECTORY}/bootx64.efi"
|
||||||
UEFI_GRUB="${UEFI_DIRECTORY}/grubx64.efi"
|
UEFI_GRUB="${UEFI_DIRECTORY}/grubx64.efi"
|
||||||
SIGNED_GRUB='/usr/lib/grub/x86_64-efi-signed/grubx64.efi.signed'
|
|
||||||
SIGNED_SHIM='/usr/lib/shim/shimx64.efi.signed'
|
BIOS_ROOT="${ESP_ROOT}/bios"
|
||||||
BIOS_BOOT='/usr/lib/grub/i386-pc/boot.img'
|
BIOS_FILE="${BIOS_ROOT}/core.img"
|
||||||
BIOS_DIRECTORY="${ROOT}/bios"
|
BIOS_SETUP="${BIOS_ROOT}/setup.sh"
|
||||||
BIOS_FILE="${BIOS_DIRECTORY}/core.img"
|
|
||||||
BIOS_SETUP="${BIOS_DIRECTORY}/setup.sh"
|
BOOT_ROOT="${ESP_ROOT}/boot"
|
||||||
COMPRESSION='xz'
|
|
||||||
BOOT_ROOT="${ROOT}/boot"
|
GRUB_CFG_SH="${ROOT}/grub.cfg.sh"
|
||||||
|
GRUB_SHIGNED="${ROOT}/grubx64.efi.signed.sh"
|
||||||
|
|
||||||
GRUB_ROOT="${BOOT_ROOT}/grub"
|
GRUB_ROOT="${BOOT_ROOT}/grub"
|
||||||
GRUB_CFG="${GRUB_ROOT}/grub.cfg"
|
GRUB_CFG="${GRUB_ROOT}/grub.cfg"
|
||||||
GRUB_CFG_SH="${DIRECTORY}/grub.cfg.sh"
|
|
||||||
GRUBENV="${GRUB_ROOT}/grubenv"
|
GRUBENV="${GRUB_ROOT}/grubenv"
|
||||||
GRUB_ENV="${ROOT}/grub.env"
|
|
||||||
GRUB_FONTS="${GRUB_ROOT}/fonts"
|
GRUB_FONTS="${GRUB_ROOT}/fonts"
|
||||||
GRUB_HEAD='# GRUB Environment Block'
|
|
||||||
GRUB_LOCALES="${GRUB_ROOT}/locale"
|
GRUB_LOCALES="${GRUB_ROOT}/locale"
|
||||||
GRUB_PUB="${GRUB_ROOT}/grub.pgp"
|
GRUB_PUB="${GRUB_ROOT}/grub.pgp"
|
||||||
GRUB_SHIGNED="${DIRECTORY}/grubx64.efi.signed.sh"
|
|
||||||
GRUB_THEMES="${GRUB_ROOT}/themes"
|
GRUB_THEMES="${GRUB_ROOT}/themes"
|
||||||
|
|
||||||
|
GRUB_ENV="${ESP_ROOT}/grub.env"
|
||||||
|
|
||||||
|
LIVE_ROOT="${BOOT_ROOT}/${PROJECT}"
|
||||||
|
|
||||||
# wipe ⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅
|
# wipe ⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅
|
||||||
|
|
||||||
echo -n "
|
echo -n "
|
||||||
|
→ ${BOOT_ROOT}
|
||||||
→ ${MEMDISK_ROOT}
|
→ ${MEMDISK_ROOT}
|
||||||
→ ${UEFI_ROOT}
|
→ ${UEFI_ROOT}
|
||||||
→ ${BIOS_DIRECTORY}
|
→ ${BIOS_ROOT}
|
||||||
"
|
"
|
||||||
rm --force --recursive \
|
rm --force --recursive \
|
||||||
"${MEMDISK_ROOT}" "${UEFI_ROOT}" "${BIOS_DIRECTORY}"
|
"${BOOT_ROOT}" "${MEMDISK_ROOT}" "${UEFI_ROOT}" "${BIOS_ROOT}"
|
||||||
|
|
||||||
# memdisk ⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅
|
# memdisk ⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅
|
||||||
|
|
||||||
|
@ -123,8 +134,10 @@ echo -n "
|
||||||
↙ ${MEMDISK_ROOT}
|
↙ ${MEMDISK_ROOT}
|
||||||
↘ ${MEMDISK_ARCHIVE}
|
↘ ${MEMDISK_ARCHIVE}
|
||||||
"
|
"
|
||||||
|
cd "${MEMDISK_ROOT}"
|
||||||
tar --create --auto-compress \
|
tar --create --auto-compress \
|
||||||
--file "${MEMDISK_ARCHIVE}" "${MEMDISK_ROOT}"
|
--file "${MEMDISK_ARCHIVE}" 'boot'
|
||||||
|
cd -
|
||||||
|
|
||||||
# uefi ⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅
|
# uefi ⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅
|
||||||
|
|
||||||
|
@ -171,15 +184,15 @@ fi
|
||||||
# bios ⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅
|
# bios ⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅
|
||||||
|
|
||||||
echo -n "
|
echo -n "
|
||||||
→ ${BIOS_DIRECTORY}
|
→ ${BIOS_ROOT}
|
||||||
"
|
"
|
||||||
mkdir "${BIOS_DIRECTORY}"
|
mkdir "${BIOS_ROOT}"
|
||||||
|
|
||||||
echo -n "
|
echo -n "
|
||||||
↙ ${BIOS_BOOT}
|
↙ ${BIOS_BOOT}
|
||||||
↘ ${BIOS_DIRECTORY}
|
↘ ${BIOS_ROOT}
|
||||||
"
|
"
|
||||||
cp "${BIOS_BOOT}" "${BIOS_DIRECTORY}"
|
cp "${BIOS_BOOT}" "${BIOS_ROOT}"
|
||||||
|
|
||||||
echo -n "
|
echo -n "
|
||||||
↙ ${MEMDISK_ARCHIVE}
|
↙ ${MEMDISK_ARCHIVE}
|
||||||
|
@ -209,7 +222,6 @@ DIRECTORY="$(dirname "${FILE}")"
|
||||||
echo -n "
|
echo -n "
|
||||||
→ ${GRUB_ROOT}
|
→ ${GRUB_ROOT}
|
||||||
"
|
"
|
||||||
rm --force --recursive "${GRUB_ROOT}"
|
|
||||||
mkdir --parents "${GRUB_ROOT}"
|
mkdir --parents "${GRUB_ROOT}"
|
||||||
|
|
||||||
# grub / cfg ⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅
|
# grub / cfg ⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅
|
||||||
|
@ -269,8 +281,8 @@ if cd '/usr/share/grub/themes' ; then
|
||||||
cp --recursive "${theme}" "${GRUB_THEMES}"
|
cp --recursive "${theme}" "${GRUB_THEMES}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
cd -
|
||||||
fi
|
fi
|
||||||
cd "${DIRECTORY}"
|
|
||||||
|
|
||||||
# grub / locales ⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅
|
# grub / locales ⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅
|
||||||
|
|
||||||
|
@ -278,14 +290,15 @@ echo -n "
|
||||||
→ ${GRUB_LOCALES}
|
→ ${GRUB_LOCALES}
|
||||||
"
|
"
|
||||||
mkdir --parents "${GRUB_LOCALES}"
|
mkdir --parents "${GRUB_LOCALES}"
|
||||||
cd '/usr/share/locale'
|
if cd '/usr/share/locale' ; then
|
||||||
for locale in * ; do
|
for locale in * ; do
|
||||||
file="${locale}/LC_MESSAGES/grub.mo"
|
file="${locale}/LC_MESSAGES/grub.mo"
|
||||||
if [ -f "${file}" ] ; then
|
if [ -f "${file}" ] ; then
|
||||||
cp "${file}" "${GRUB_LOCALES}/${locale}.mo"
|
cp "${file}" "${GRUB_LOCALES}/${locale}.mo"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
cd "${DIRECTORY}"
|
cd -
|
||||||
|
fi
|
||||||
|
|
||||||
# grub / pubkey ⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅
|
# grub / pubkey ⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅
|
||||||
|
|
||||||
|
@ -302,39 +315,40 @@ for target in 'x86_64-efi' 'i386-pc' ; do
|
||||||
↙ /usr/lib/grub/${target}
|
↙ /usr/lib/grub/${target}
|
||||||
↘ ${GRUB_ROOT}/${target}
|
↘ ${GRUB_ROOT}/${target}
|
||||||
"
|
"
|
||||||
|
if cd "/usr/lib/grub/${target}" ; then
|
||||||
mkdir --parents "${GRUB_ROOT}/${target}"
|
mkdir --parents "${GRUB_ROOT}/${target}"
|
||||||
cd "/usr/lib/grub/${target}"
|
|
||||||
for module in *.lst *.mod ; do
|
for module in *.lst *.mod ; do
|
||||||
cp "${module}" "${GRUB_ROOT}/${target}"
|
cp "${module}" "${GRUB_ROOT}/${target}"
|
||||||
done
|
done
|
||||||
|
cd -
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
cd "${DIRECTORY}"
|
|
||||||
|
# project ⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅
|
||||||
|
|
||||||
|
cp --recursive "${ROOT}/live" "${LIVE_ROOT}"
|
||||||
|
|
||||||
# sign ⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅
|
# sign ⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅
|
||||||
|
|
||||||
sign "${BIOS_DIRECTORY}"
|
sign "${BIOS_ROOT}"
|
||||||
sign "${UEFI_DIRECTORY}"
|
sign "${UEFI_ROOT}"
|
||||||
sign "${ROOT}/${PROJECT}/live"
|
sign "${LIVE_ROOT}"
|
||||||
sign "${GRUB_ROOT}"
|
sign "${GRUB_ROOT}"
|
||||||
|
|
||||||
# display ⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅
|
# display ⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅
|
||||||
|
|
||||||
echo
|
echo
|
||||||
du --human-readable --summarize \
|
du --human-readable --summarize \
|
||||||
"${BIOS_DIRECTORY}" \
|
"${BIOS_ROOT}" \
|
||||||
"${UEFI_ROOT}" \
|
"${UEFI_ROOT}" \
|
||||||
"${BOOT_ROOT}" \
|
"${LIVE_ROOT}" \
|
||||||
"${ROOT}"
|
"${GRUB_ROOT}" \
|
||||||
echo
|
"${ESP_ROOT}/"
|
||||||
echo "ESP: ${ESP}"
|
echo -n "
|
||||||
echo "DATA: ${DATA}"
|
ESP: ${ESP}
|
||||||
|
DATA: ${DATA}
|
||||||
|
"
|
||||||
|
|
||||||
# clean ⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅
|
# clean ⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅
|
||||||
|
|
||||||
rm --force --recursive \
|
rm --force --recursive "${MEMDISK_ROOT}"
|
||||||
"${MEMDISK_ARCHIVE}" \
|
|
||||||
"${MEMDISK_ROOT}"
|
|
||||||
|
|
||||||
# back ⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅
|
|
||||||
|
|
||||||
cd "${PREVIOUS}"
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ function grub_init {
|
||||||
--file "${env}" \
|
--file "${env}" \
|
||||||
'grub_sleep'
|
'grub_sleep'
|
||||||
#
|
#
|
||||||
live="(${esp})/${live_name}/live"
|
live="(${esp})/boot/${live_name}"
|
||||||
#
|
#
|
||||||
search --no-floppy --set data \
|
search --no-floppy --set data \
|
||||||
--fs-uuid "${data_uuid}"
|
--fs-uuid "${data_uuid}"
|
||||||
|
|
|
@ -59,11 +59,10 @@ Build an ESP File System including:
|
||||||
## Tasks
|
## Tasks
|
||||||
|
|
||||||
* bash
|
* bash
|
||||||
* args/pgp
|
|
||||||
* args/esp & lsgm/cp
|
|
||||||
* mimic grubx64.efi.signed
|
* mimic grubx64.efi.signed
|
||||||
* efi
|
* efi
|
||||||
* bios
|
* bios
|
||||||
|
* auto setup bios device
|
||||||
* --prefix '(memdisk)'
|
* --prefix '(memdisk)'
|
||||||
* live
|
* live
|
||||||
* check squashfs option
|
* check squashfs option
|
||||||
|
|
Loading…
Reference in a new issue