mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
merge create-repository into one for all arches
This commit is contained in:
parent
494e636f72
commit
2e9a17d846
3 changed files with 3 additions and 82 deletions
|
@ -1,29 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
# created by Tobias Powalowski <tpowa@archlinux.org>
|
||||
. /usr/lib/archboot/common.sh
|
||||
. /usr/lib/archboot/container.sh
|
||||
. /usr/lib/archboot/repository.sh
|
||||
[[ -d "${1}" ]] || (echo "Create directory ${1} ..."; mkdir "${1}")
|
||||
_REPODIR="$(mktemp -d "${1}"/repository.XXX)"
|
||||
_CACHEDIR="${_REPODIR}/var/cache/pacman/pkg"
|
||||
[[ -z "${1}" ]] && _usage
|
||||
_root_check
|
||||
echo "Starting repository creation ..."
|
||||
if [[ "${_RUNNING_ARCH}" == "aarch64" ]]; then
|
||||
_cachedir_check
|
||||
_create_pacman_conf "${_REPODIR}"
|
||||
_prepare_pacman "${_REPODIR}" || exit 1
|
||||
_pacman_parameters "${_REPODIR}"
|
||||
_download_packages "${_REPODIR}" || exit 1
|
||||
_umount_special "${_REPODIR}" || exit 1
|
||||
fi
|
||||
if [[ "${_RUNNING_ARCH}" == "x86_64" ]]; then
|
||||
_pacman_chroot "${_REPODIR}" "${_ARCHBOOT_AARCH64_CHROOT_PUBLIC}" "${_PACMAN_AARCH64_CHROOT}" || exit 1
|
||||
_create_pacman_conf "${_REPODIR}" "use_binfmt"
|
||||
_pacman_parameters "${_REPODIR}" "use_binfmt"
|
||||
_download_packages "${_REPODIR}" "use_binfmt" || exit 1
|
||||
fi
|
||||
_move_packages "${_REPODIR}" "${1}" || exit 1
|
||||
_cleanup_repodir "${_REPODIR}" || exit 1
|
||||
_create_archboot_db "${1}" || exit 1
|
||||
echo "Finished repository creation in ${_REPODIR} ."
|
1
usr/bin/archboot-aarch64-create-repository.sh
Symbolic link
1
usr/bin/archboot-aarch64-create-repository.sh
Symbolic link
|
@ -0,0 +1 @@
|
|||
../lib/archboot/archboot-create-repository.sh
|
|
@ -1,29 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
# created by Tobias Powalowski <tpowa@archlinux.org>
|
||||
. /usr/lib/archboot/common.sh
|
||||
. /usr/lib/archboot/container.sh
|
||||
. /usr/lib/archboot/repository.sh
|
||||
[[ -d "${1}" ]] || (echo "Create directory ${1} ..."; mkdir "${1}")
|
||||
_REPODIR="$(mktemp -d "${1}"/repository.XXX)"
|
||||
_CACHEDIR="${_REPODIR}/var/cache/pacman/pkg"
|
||||
[[ -z "${1}" ]] && _usage
|
||||
_root_check
|
||||
echo "Starting repository creation ..."
|
||||
if [[ "${_RUNNING_ARCH}" == "riscv64" ]]; then
|
||||
_cachedir_check
|
||||
_create_pacman_conf "${_REPODIR}"
|
||||
_prepare_pacman "${_REPODIR}" || exit 1
|
||||
_pacman_parameters "${_REPODIR}"
|
||||
_download_packages "${_REPODIR}" || exit 1
|
||||
_umount_special "${_REPODIR}" || exit 1
|
||||
fi
|
||||
if [[ "${_RUNNING_ARCH}" == "x86_64" ]]; then
|
||||
_pacman_chroot "${_REPODIR}" "${_ARCHBOOT_RISCV64_CHROOT_PUBLIC}" "${_PACMAN_RISCV64_CHROOT}" || exit 1
|
||||
_create_pacman_conf "${_REPODIR}" "use_binfmt"
|
||||
_pacman_parameters "${_REPODIR}" "use_binfmt"
|
||||
_download_packages "${_REPODIR}" "use_binfmt" || exit 1
|
||||
fi
|
||||
_move_packages "${_REPODIR}" "${1}" || exit 1
|
||||
_cleanup_repodir "${_REPODIR}" || exit 1
|
||||
_create_archboot_db "${1}" || exit 1
|
||||
echo "Finished repository creation in ${_REPODIR} ."
|
1
usr/bin/archboot-riscv64-create-repository.sh
Symbolic link
1
usr/bin/archboot-riscv64-create-repository.sh
Symbolic link
|
@ -0,0 +1 @@
|
|||
../lib/archboot/archboot-create-repository.sh
|
|
@ -1,24 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
# created by Tobias Powalowski <tpowa@archlinux.org>
|
||||
. /usr/lib/archboot/common.sh
|
||||
. /usr/lib/archboot/container.sh
|
||||
. /usr/lib/archboot/repository.sh
|
||||
[[ -d "${1}" ]] || (echo "Create directory ${1} ..."; mkdir "${1}")
|
||||
_REPODIR="$(mktemp -d "${1}"/repository.XXX)"
|
||||
_CACHEDIR="${_REPODIR}/var/cache/pacman/pkg"
|
||||
[[ -z "${1}" ]] && _usage
|
||||
_root_check
|
||||
_x86_64_pacman_use_default || exit 1
|
||||
_cachedir_check
|
||||
_x86_64_check
|
||||
echo "Starting repository creation ..."
|
||||
_prepare_pacman "${_REPODIR}" || exit 1
|
||||
_pacman_parameters "${_REPODIR}"
|
||||
_download_packages "${_REPODIR}" || exit 1
|
||||
_x86_64_pacman_restore || exit 1
|
||||
_umount_special "${_REPODIR}" || exit 1
|
||||
_move_packages "${_REPODIR}" "${1}" || exit 1
|
||||
_cleanup_repodir "${_REPODIR}" || exit 1
|
||||
_create_archboot_db "${1}" || exit 1
|
||||
echo "Finished repository creation in ${_REPODIR} ."
|
||||
|
1
usr/bin/archboot-x86_64-create-repository.sh
Symbolic link
1
usr/bin/archboot-x86_64-create-repository.sh
Symbolic link
|
@ -0,0 +1 @@
|
|||
../lib/archboot/archboot-create-repository.sh
|
Loading…
Reference in a new issue