mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
also add custom grub on container routine
This commit is contained in:
parent
e9d0013f22
commit
46b5f5a430
2 changed files with 10 additions and 0 deletions
|
@ -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..."
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue