also add custom grub on container routine

This commit is contained in:
Tobias Powalowski 2023-06-24 10:04:25 +02:00
parent e9d0013f22
commit 46b5f5a430
2 changed files with 10 additions and 0 deletions

View file

@ -175,6 +175,15 @@ _install_archboot() {
fi
}
_add_custom_grub() {
[[ -e /var/cache/pacman/pkg/grub-2:2.06.r533.g78bc9a9b2-1-x86_64.pkg.tar.zst ]] && \
cp /var/cache/pacman/pkg/grub-2:2.06.r533.g78bc9a9b2-1-x86_64.pkg.tar.zst \
${1}/var/cache/pacman/pkg/grub-2:2.06.r533.g78bc9a9b2-1-x86_64.pkg.tar.zst
[[ -e /var/cache/pacman/pkg/grub-2:2.06.r533.g78bc9a9b2-1-x86_64.pkg.tar.zst.sig ]] && \
cp /var/cache/pacman/pkg/grub-2:2.06.r533.g78bc9a9b2-1-x86_64.pkg.tar.zst.sig \
${1}/var/cache/pacman/pkg/grub-2:2.06.r533.g78bc9a9b2-1-x86_64.pkg.tar.zst.sig
}
_copy_mirrorlist_and_pacman_conf() {
# copy local mirrorlist to container
echo "Creating pacman config and mirrorlist in container..."

View file

@ -15,6 +15,7 @@ if echo "${_BASENAME}" | grep -qw "${_RUNNING_ARCH}"; then
_prepare_pacman "${1}" || exit 1
_pacman_parameters "${1}"
_install_base_packages "${1}" || exit 1
_install_custom_grub "${1}"
_clean_mkinitcpio "${1}"
_clean_cache "${1}"
_install_archboot "${1}" || exit 1