mirror of
https://gitlab.archlinux.org/archlinux/devtools.git
synced 2025-09-13 09:56:18 +02:00
Compare commits
16 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
eebfd9a30f | ||
![]() |
5085cfcdf9 | ||
![]() |
6caad191c1 | ||
![]() |
092fe2ffde | ||
![]() |
71b15aafb6 | ||
![]() |
4bcafd9768 | ||
![]() |
1f0374d8a6 | ||
![]() |
f03086a0e1 | ||
![]() |
35dc7485fb | ||
![]() |
89bda9217d | ||
![]() |
0dc2550af3 | ||
![]() |
0c62649b64 | ||
![]() |
b807c51102 | ||
![]() |
280d5501b0 | ||
![]() |
dee4d05b1e | ||
![]() |
10eba28151 |
@@ -2,7 +2,7 @@
|
||||
|
||||
m4_include(lib/common.sh)
|
||||
|
||||
base_packages=(base base-devel sudo)
|
||||
base_packages=(base-devel)
|
||||
makechrootpkg_args=(-c -n)
|
||||
|
||||
cmd="${0##*/}"
|
||||
@@ -38,7 +38,7 @@ while getopts 'hcr:' arg; do
|
||||
done
|
||||
|
||||
# Pass all arguments after -- right to makepkg
|
||||
makechrootpkg_args=("${@:$OPTIND}")
|
||||
makechrootpkg_args+=("${@:$OPTIND}")
|
||||
|
||||
if (( EUID )); then
|
||||
die 'This script must be run as root.'
|
||||
@@ -58,7 +58,9 @@ if ${clean_first} || [[ ! -d "${chroots}/${repo}-${arch}" ]]; then
|
||||
stat_done
|
||||
fi
|
||||
|
||||
{ type -P btrfs && btrfs subvolume delete "${copy}"; } &>/dev/null
|
||||
if [[ "$(stat -f -c %T "${copy}")" == btrfs ]]; then
|
||||
{ type -P btrfs && btrfs subvolume delete "${copy}"; } &>/dev/null
|
||||
fi
|
||||
rm -rf --one-file-system "${copy}"
|
||||
done
|
||||
exec 9>&-
|
||||
|
@@ -11,26 +11,16 @@ fi
|
||||
|
||||
pkgbase="${1}"
|
||||
|
||||
packages_svn='svn+ssh://svn-packages@nymeria.archlinux.org/srv/repos/svn-packages/svn'
|
||||
packages_server='nymeria.archlinux.org'
|
||||
community_svn='svn+ssh://svn-community@nymeria.archlinux.org/srv/repos/svn-community/svn'
|
||||
community_server='nymeria.archlinux.org'
|
||||
mirror='http://mirrors.kernel.org/archlinux'
|
||||
|
||||
case $scriptname in
|
||||
extra2community)
|
||||
source_svn="${packages_svn}"
|
||||
target_svn="${community_svn}"
|
||||
source_server="${packages_server}"
|
||||
target_server="${community_server}"
|
||||
source_name='packages'
|
||||
target_name='community'
|
||||
source_repo='extra'
|
||||
target_repo='community'
|
||||
;;
|
||||
community2extra)
|
||||
source_svn="${community_svn}"
|
||||
target_svn="${packages_svn}"
|
||||
source_server="${community_server}"
|
||||
target_server="${packages_server}"
|
||||
source_name='community'
|
||||
target_name='packages'
|
||||
source_repo='community'
|
||||
target_repo='extra'
|
||||
;;
|
||||
@@ -39,6 +29,13 @@ case $scriptname in
|
||||
;;
|
||||
esac
|
||||
|
||||
server='nymeria.archlinux.org'
|
||||
mirror="http://${server}"
|
||||
source_svn="svn+ssh://svn-${source_name}@${server}/srv/repos/svn-${source_name}/svn"
|
||||
target_svn="svn+ssh://svn-${target_name}@${server}/srv/repos/svn-${target_name}/svn"
|
||||
source_dbscripts="/srv/repos/svn-${source_name}/dbscripts"
|
||||
target_dbscripts="/srv/repos/svn-${target_name}/dbscripts"
|
||||
|
||||
setup_workdir
|
||||
|
||||
pushd $WORKDIR >/dev/null
|
||||
@@ -59,7 +56,7 @@ for _arch in ${arch[@]}; do
|
||||
for _pkgname in ${pkgname[@]}; do
|
||||
fullver=$(get_full_version $_pkgname)
|
||||
# FIXME: this only works with .xz packages
|
||||
ssh "${target_server}" "cd staging/${target_repo}
|
||||
ssh "${server}" "cd staging/${target_repo}
|
||||
curl -O ${mirror}/${source_repo}/os/${repo_arch}/$_pkgname-$fullver-${_arch}.pkg.tar.xz
|
||||
curl -O ${mirror}/${source_repo}/os/${repo_arch}/$_pkgname-$fullver-${_arch}.pkg.tar.xz.sig" || die
|
||||
done
|
||||
@@ -73,22 +70,11 @@ pushd "target_checkout/${pkgbase}/trunk" >/dev/null
|
||||
archrelease "${arch[@]/#/$target_repo-}" || die
|
||||
popd >/dev/null
|
||||
|
||||
if [[ "${target_server}" == "${community_server}" ]]; then
|
||||
dbscripts_path='/srv/repos/svn-community/dbscripts'
|
||||
else
|
||||
dbscripts_path='/srv/repos/svn-packages/dbscripts'
|
||||
fi
|
||||
|
||||
ssh "${target_server}" "${dbscripts_path}/db-update" || die
|
||||
ssh "${server}" "${target_dbscripts}/db-update" || die
|
||||
|
||||
msg "Removing ${pkgbase} from ${source_repo}"
|
||||
if [[ "${source_server}" == "${community_server}" ]]; then
|
||||
dbscripts_path='/srv/repos/svn-community/dbscripts'
|
||||
else
|
||||
dbscripts_path='/srv/repos/svn-packages/dbscripts'
|
||||
fi
|
||||
for _arch in ${arch[@]}; do
|
||||
ssh "${source_server}" "${dbscripts_path}/db-remove ${source_repo} ${_arch} ${pkgbase}"
|
||||
ssh "${server}" "${source_dbscripts}/db-remove ${source_repo} ${_arch} ${pkgbase}"
|
||||
done
|
||||
svn -q checkout -N "${source_svn}" source_checkout
|
||||
svn -q up "source_checkout/${pkgbase}"
|
||||
|
@@ -21,6 +21,8 @@ add_to_db=false
|
||||
run_namcap=false
|
||||
chrootdir=
|
||||
passeddir=
|
||||
declare -a install_pkgs
|
||||
declare -i ret=0
|
||||
|
||||
default_copy=$USER
|
||||
[[ -n $SUDO_USER ]] && default_copy=$SUDO_USER
|
||||
@@ -39,7 +41,7 @@ usage() {
|
||||
echo ''
|
||||
echo 'The chroot "root" directory must be created via the following'
|
||||
echo 'command:'
|
||||
echo ' mkarchroot <chrootdir>/root base base-devel sudo'
|
||||
echo ' mkarchroot <chrootdir>/root base-devel'
|
||||
echo ''
|
||||
echo "Default makepkg args: $makepkg_args"
|
||||
echo ''
|
||||
@@ -66,7 +68,7 @@ while getopts 'hcudr:I:l:n' arg; do
|
||||
u) update_first=true ;;
|
||||
d) add_to_db=true ;;
|
||||
r) passeddir="$OPTARG" ;;
|
||||
I) install_pkg="$OPTARG" ;;
|
||||
I) install_pkgs+=("$OPTARG") ;;
|
||||
l) copy="$OPTARG" ;;
|
||||
n) run_namcap=true; makepkg_args="$makepkg_args -i" ;;
|
||||
*) makepkg_args="$makepkg_args -$arg $OPTARG" ;;
|
||||
@@ -98,7 +100,7 @@ if (( EUID )); then
|
||||
die 'This script must be run as root.'
|
||||
fi
|
||||
|
||||
if [[ ! -f PKGBUILD && -z $install_pkg ]]; then
|
||||
if [[ ! -f PKGBUILD && -z "${install_pkgs[*]}" ]]; then
|
||||
die 'This must be run in a directory containing a PKGBUILD.'
|
||||
fi
|
||||
|
||||
@@ -107,16 +109,19 @@ if [[ ! -d $chrootdir ]]; then
|
||||
fi
|
||||
|
||||
if [[ ! -d $chrootdir/root ]]; then
|
||||
die "Missing chroot dir root directory. Try using: mkarchroot $chrootdir/root base base-devel sudo"
|
||||
die "Missing chroot dir root directory. Try using: mkarchroot $chrootdir/root base-devel"
|
||||
fi
|
||||
|
||||
umask 0022
|
||||
|
||||
# Detect chrootdir filesystem type
|
||||
chroottype=$(stat -f -c %T "$chrootdir")
|
||||
|
||||
# Lock the chroot we want to use. We'll keep this lock until we exit.
|
||||
# Note this is the same FD number as in mkarchroot
|
||||
exec 9>"$copydir.lock"
|
||||
if ! flock -n 9; then
|
||||
stat_busy "Locking chroot copy '$copy'"
|
||||
stat_busy "Locking chroot copy [$copy]"
|
||||
flock 9
|
||||
stat_done
|
||||
fi
|
||||
@@ -132,17 +137,15 @@ if [[ ! -d $copydir ]] || $clean_first; then
|
||||
stat_done
|
||||
fi
|
||||
|
||||
stat_busy 'Creating clean working copy'
|
||||
use_rsync=false
|
||||
if type -P btrfs >/dev/null; then
|
||||
[[ -d $copydir ]] && btrfs subvolume delete "$copydir" &>/dev/null
|
||||
btrfs subvolume snapshot "$chrootdir/root" "$copydir" &>/dev/null ||
|
||||
use_rsync=true
|
||||
stat_busy "Creating clean working copy [$copy]"
|
||||
if [[ "$chroottype" == btrfs ]]; then
|
||||
if [[ -d $copydir ]]; then
|
||||
btrfs subvolume delete "$copydir" >/dev/null ||
|
||||
die "Unable to delete subvolume $copydir"
|
||||
fi
|
||||
btrfs subvolume snapshot "$chrootdir/root" "$copydir" >/dev/null ||
|
||||
die "Unable to create subvolume $copydir"
|
||||
else
|
||||
use_rsync=true
|
||||
fi
|
||||
|
||||
if $use_rsync; then
|
||||
mkdir -p "$copydir"
|
||||
rsync -a --delete -q -W -x "$chrootdir/root/" "$copydir"
|
||||
fi
|
||||
@@ -152,14 +155,16 @@ if [[ ! -d $copydir ]] || $clean_first; then
|
||||
exec 8>&-
|
||||
fi
|
||||
|
||||
if [[ -n $install_pkg ]]; then
|
||||
pkgname="${install_pkg##*/}"
|
||||
cp "$install_pkg" "$copydir/$pkgname"
|
||||
if [[ -n "${install_pkgs[*]}" ]]; then
|
||||
for install_pkg in "${install_pkgs[@]}"; do
|
||||
pkgname="${install_pkg##*/}"
|
||||
cp "$install_pkg" "$copydir/$pkgname"
|
||||
|
||||
mkarchroot -r "pacman -U /$pkgname --noconfirm" "$copydir"
|
||||
ret=$?
|
||||
mkarchroot -r "pacman -U /$pkgname --noconfirm" "$copydir"
|
||||
(( ret += !! $? ))
|
||||
|
||||
rm "$copydir/$pkgname"
|
||||
rm "$copydir/$pkgname"
|
||||
done
|
||||
|
||||
# If there is no PKGBUILD we have done
|
||||
[[ -f PKGBUILD ]] || exit $ret
|
||||
@@ -267,9 +272,7 @@ cat >"$copydir/chrootbuild" <<EOF
|
||||
export HOME=/build
|
||||
|
||||
cd /build
|
||||
sudo -u nobody makepkg $makepkg_args || touch BUILD_FAILED
|
||||
|
||||
[[ -f BUILD_FAILED ]] && exit 1
|
||||
sudo -u nobody makepkg $makepkg_args || exit 1
|
||||
|
||||
if $run_namcap; then
|
||||
pacman -S --needed --noconfirm namcap
|
||||
@@ -303,7 +306,7 @@ if mkarchroot -r "/chrootbuild" "$copydir"; then
|
||||
done
|
||||
else
|
||||
# Just in case. We returned 1, make sure we fail
|
||||
touch "$copydir/build/BUILD_FAILED"
|
||||
ret=1
|
||||
fi
|
||||
|
||||
for f in "$copydir"/srcdest/*; do
|
||||
@@ -311,7 +314,6 @@ for f in "$copydir"/srcdest/*; do
|
||||
mv "$f" "$SRCDEST"
|
||||
done
|
||||
|
||||
if [[ -e $copydir/build/BUILD_FAILED ]]; then
|
||||
rm "$copydir/build/BUILD_FAILED"
|
||||
if (( ret != 0 )); then
|
||||
die "Build failed, check $copydir/build"
|
||||
fi
|
||||
|
@@ -11,7 +11,7 @@
|
||||
DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
|
||||
'http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
|
||||
'https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
|
||||
'rsync::/usr/bin/rsync -z %u %o'
|
||||
'rsync::/usr/bin/rsync --no-motd -z %u %o'
|
||||
'scp::/usr/bin/scp -C %u %o')
|
||||
|
||||
# Other common tools:
|
||||
@@ -29,11 +29,15 @@ CHOST="i686-pc-linux-gnu"
|
||||
#-- Compiler and Linker Flags
|
||||
# -march (or -mcpu) builds exclusively for an architecture
|
||||
# -mtune optimizes for an architecture, but builds for whole processor family
|
||||
CFLAGS="-march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
|
||||
CXXFLAGS="-march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
|
||||
CPPFLAGS="-D_FORTIFY_SOURCE=2"
|
||||
CFLAGS="-march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4"
|
||||
CXXFLAGS="-march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4"
|
||||
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
|
||||
#-- Make Flags: change this for DistCC/SMP systems
|
||||
#MAKEFLAGS="-j2"
|
||||
#-- Debugging flags
|
||||
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
|
||||
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
|
||||
|
||||
#########################################################################
|
||||
# BUILD ENVIRONMENT
|
||||
@@ -63,18 +67,20 @@ BUILDENV=(fakeroot !distcc color !ccache check !sign)
|
||||
# These are default values for the options=() settings
|
||||
#########################################################################
|
||||
#
|
||||
# Default: OPTIONS=(strip docs libtool emptydirs zipman purge !upx)
|
||||
# Default: OPTIONS=(strip docs libtool staticlibs emptydirs zipman purge !upx !debug)
|
||||
# A negated option will do the opposite of the comments below.
|
||||
#
|
||||
#-- strip: Strip symbols from binaries/libraries
|
||||
#-- docs: Save doc directories specified by DOC_DIRS
|
||||
#-- libtool: Leave libtool (.la) files in packages
|
||||
#-- emptydirs: Leave empty directories in packages
|
||||
#-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
|
||||
#-- purge: Remove files specified by PURGE_TARGETS
|
||||
#-- upx: Compress binary executable files using UPX
|
||||
#-- strip: Strip symbols from binaries/libraries
|
||||
#-- docs: Save doc directories specified by DOC_DIRS
|
||||
#-- libtool: Leave libtool (.la) files in packages
|
||||
#-- staticlibs: Leave static library (.a) files in packages
|
||||
#-- emptydirs: Leave empty directories in packages
|
||||
#-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
|
||||
#-- purge: Remove files specified by PURGE_TARGETS
|
||||
#-- upx: Compress binary executable files using UPX
|
||||
#-- debug: Add debugging flags as specified in DEBUG_* variables
|
||||
#
|
||||
OPTIONS=(strip docs libtool emptydirs zipman purge !upx)
|
||||
OPTIONS=(strip docs libtool staticlibs emptydirs zipman purge !upx !debug)
|
||||
|
||||
#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
|
||||
INTEGRITY_CHECK=(md5)
|
||||
@@ -108,6 +114,17 @@ PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
|
||||
#-- Specify a key to use for package signing
|
||||
#GPGKEY=""
|
||||
|
||||
#########################################################################
|
||||
# COMPRESSION DEFAULTS
|
||||
#########################################################################
|
||||
#
|
||||
COMPRESSGZ=(gzip -c -f -n)
|
||||
COMPRESSBZ2=(bzip2 -c -f)
|
||||
COMPRESSXZ=(xz -c -z -)
|
||||
COMPRESSLRZ=(lrzip -q)
|
||||
COMPRESSLZO=(lzop -q)
|
||||
COMPRESSZ=(compress -c -f)
|
||||
|
||||
#########################################################################
|
||||
# EXTENSION DEFAULTS
|
||||
#########################################################################
|
||||
|
@@ -11,7 +11,7 @@
|
||||
DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
|
||||
'http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
|
||||
'https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
|
||||
'rsync::/usr/bin/rsync -z %u %o'
|
||||
'rsync::/usr/bin/rsync --no-motd -z %u %o'
|
||||
'scp::/usr/bin/scp -C %u %o')
|
||||
|
||||
# Other common tools:
|
||||
@@ -29,11 +29,15 @@ CHOST="x86_64-unknown-linux-gnu"
|
||||
#-- Compiler and Linker Flags
|
||||
# -march (or -mcpu) builds exclusively for an architecture
|
||||
# -mtune optimizes for an architecture, but builds for whole processor family
|
||||
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
|
||||
CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
|
||||
CPPFLAGS="-D_FORTIFY_SOURCE=2"
|
||||
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4"
|
||||
CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4"
|
||||
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
|
||||
#-- Make Flags: change this for DistCC/SMP systems
|
||||
#MAKEFLAGS="-j2"
|
||||
#-- Debugging flags
|
||||
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
|
||||
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
|
||||
|
||||
#########################################################################
|
||||
# BUILD ENVIRONMENT
|
||||
@@ -63,18 +67,20 @@ BUILDENV=(fakeroot !distcc color !ccache check !sign)
|
||||
# These are default values for the options=() settings
|
||||
#########################################################################
|
||||
#
|
||||
# Default: OPTIONS=(strip docs libtool emptydirs zipman purge !upx)
|
||||
# Default: OPTIONS=(strip docs libtool staticlibs emptydirs zipman purge !upx !debug)
|
||||
# A negated option will do the opposite of the comments below.
|
||||
#
|
||||
#-- strip: Strip symbols from binaries/libraries
|
||||
#-- docs: Save doc directories specified by DOC_DIRS
|
||||
#-- libtool: Leave libtool (.la) files in packages
|
||||
#-- emptydirs: Leave empty directories in packages
|
||||
#-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
|
||||
#-- purge: Remove files specified by PURGE_TARGETS
|
||||
#-- upx: Compress binary executable files using UPX
|
||||
#-- strip: Strip symbols from binaries/libraries
|
||||
#-- docs: Save doc directories specified by DOC_DIRS
|
||||
#-- libtool: Leave libtool (.la) files in packages
|
||||
#-- staticlibs: Leave static library (.a) files in packages
|
||||
#-- emptydirs: Leave empty directories in packages
|
||||
#-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
|
||||
#-- purge: Remove files specified by PURGE_TARGETS
|
||||
#-- upx: Compress binary executable files using UPX
|
||||
#-- debug: Add debugging flags as specified in DEBUG_* variables
|
||||
#
|
||||
OPTIONS=(strip docs libtool emptydirs zipman purge !upx)
|
||||
OPTIONS=(strip docs libtool staticlibs emptydirs zipman purge !upx !debug)
|
||||
|
||||
#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
|
||||
INTEGRITY_CHECK=(md5)
|
||||
@@ -108,6 +114,17 @@ PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
|
||||
#-- Specify a key to use for package signing
|
||||
#GPGKEY=""
|
||||
|
||||
#########################################################################
|
||||
# COMPRESSION DEFAULTS
|
||||
#########################################################################
|
||||
#
|
||||
COMPRESSGZ=(gzip -c -f -n)
|
||||
COMPRESSBZ2=(bzip2 -c -f)
|
||||
COMPRESSXZ=(xz -c -z -)
|
||||
COMPRESSLRZ=(lrzip -q)
|
||||
COMPRESSLZO=(lzop -q)
|
||||
COMPRESSZ=(compress -c -f)
|
||||
|
||||
#########################################################################
|
||||
# EXTENSION DEFAULTS
|
||||
#########################################################################
|
||||
|
@@ -10,7 +10,7 @@
|
||||
|
||||
m4_include(lib/common.sh)
|
||||
|
||||
CHROOT_VERSION='v2'
|
||||
CHROOT_VERSION='v3'
|
||||
|
||||
FORCE='n'
|
||||
RUN=''
|
||||
@@ -38,7 +38,7 @@ usage() {
|
||||
while getopts 'r:ufnhC:M:c:' arg; do
|
||||
case "${arg}" in
|
||||
r) RUN="$OPTARG" ;;
|
||||
u) RUN='/bin/sh -c "pacman -Syu --noconfirm && (pacman -Qqu >/dev/null && pacman -Su --noconfirm || exit 0)"' ;;
|
||||
u) RUN='pacman -Syu --noconfirm' ;;
|
||||
f) FORCE='y' ;;
|
||||
C) pac_conf="$OPTARG" ;;
|
||||
M) makepkg_conf="$OPTARG" ;;
|
||||
@@ -78,31 +78,21 @@ if echo "${host_mirror}" | grep -q 'file://'; then
|
||||
fi
|
||||
|
||||
# {{{ functions
|
||||
bind_mount() {
|
||||
local mode="${2:-rw}"
|
||||
local target="${working_dir}${1}"
|
||||
build_mount_args() {
|
||||
local p
|
||||
declare -g mount_args=()
|
||||
|
||||
if [[ ! -e "$target" ]]; then
|
||||
if [[ -d "$1" ]]; then
|
||||
install -d "$target"
|
||||
else
|
||||
install -D /dev/null "$target"
|
||||
fi
|
||||
if [[ -n $host_mirror_path ]]; then
|
||||
printf -v p '%q' "$host_mirror_path"
|
||||
mount_args+=(--bind-ro="$p")
|
||||
fi
|
||||
|
||||
mount -o bind "$1" "$target"
|
||||
mount -o remount,${mode},bind "$target"
|
||||
mount --make-slave "$target"
|
||||
}
|
||||
printf -v p '%q' "${cache_dirs[0]}"
|
||||
mount_args+=(--bind="$p")
|
||||
|
||||
chroot_mount() {
|
||||
trap 'trap_chroot_umount' EXIT INT QUIT TERM HUP
|
||||
|
||||
[[ -n $host_mirror_path ]] && bind_mount "$host_mirror_path" ro
|
||||
|
||||
bind_mount "${cache_dirs[0]}"
|
||||
for cache_dir in ${cache_dirs[@]:1}; do
|
||||
bind_mount "$cache_dir" ro
|
||||
printf -v p '%q' "$cache_dir"
|
||||
mount_args+=(--bind-ro="$p")
|
||||
done
|
||||
}
|
||||
|
||||
@@ -121,16 +111,6 @@ copy_hostconf () {
|
||||
sed -r "s|^#?\\s*CacheDir.+|CacheDir = $(echo -n ${cache_dirs[@]})|g" -i ${working_dir}/etc/pacman.conf
|
||||
}
|
||||
|
||||
trap_chroot_umount () {
|
||||
trap 'trap_abort' INT QUIT TERM HUP
|
||||
trap 'trap_exit' EXIT
|
||||
|
||||
for cache_dir in ${cache_dirs[@]}; do
|
||||
umount "${working_dir}/${cache_dir}"
|
||||
done
|
||||
[[ -n $host_mirror_path ]] && umount "${working_dir}/${host_mirror_path}"
|
||||
}
|
||||
|
||||
chroot_lock () {
|
||||
# Only reopen the FD if it wasn't handed to us
|
||||
if [[ $(readlink -f /dev/fd/9) != "${working_dir}.lock" ]]; then
|
||||
@@ -148,7 +128,7 @@ chroot_lock () {
|
||||
chroot_run() {
|
||||
local dir=$1
|
||||
shift
|
||||
eval systemd-nspawn -D "${dir}" -- ${@} 2>/dev/null
|
||||
systemd-nspawn -D "${dir}" "${mount_args[@]}" -- ${@} 2>/dev/null
|
||||
}
|
||||
|
||||
# }}}
|
||||
@@ -164,7 +144,7 @@ if [[ -n $RUN ]]; then
|
||||
fi
|
||||
|
||||
chroot_lock
|
||||
chroot_mount
|
||||
build_mount_args
|
||||
copy_hostconf
|
||||
|
||||
chroot_run "${working_dir}" ${RUN}
|
||||
@@ -176,35 +156,32 @@ else
|
||||
die "Working directory '${working_dir}' already exists - try using -f"
|
||||
fi
|
||||
|
||||
if { type -P btrfs && btrfs subvolume create "${working_dir}"; } &>/dev/null; then
|
||||
chmod 0755 "${working_dir}"
|
||||
if [[ ! -d "${working_dir}" ]]; then
|
||||
mkdir -p "${working_dir}"
|
||||
fi
|
||||
|
||||
if [[ "$(stat -f -c %T "${working_dir}")" == btrfs ]]; then
|
||||
if { type -P btrfs && btrfs subvolume create "${working_dir}"; } &>/dev/null; then
|
||||
chmod 0755 "${working_dir}"
|
||||
fi
|
||||
fi
|
||||
|
||||
chroot_lock
|
||||
chroot_mount
|
||||
|
||||
pacargs="${cache_dirs[@]/#/--cachedir=}"
|
||||
pacargs=("${cache_dirs[@]/#/--cachedir=}")
|
||||
if [[ -n $pac_conf ]]; then
|
||||
pacargs="$pacargs --config=${pac_conf}"
|
||||
pacargs+=("--config=${pac_conf}")
|
||||
fi
|
||||
|
||||
if (( $# != 0 )); then
|
||||
if [[ $FORCE = 'y' ]]; then
|
||||
pacargs="$pacargs --force"
|
||||
fi
|
||||
if ! pacstrap -GMcd "${working_dir}" ${pacargs} $@; then
|
||||
die 'Failed to install all packages'
|
||||
fi
|
||||
if [[ $FORCE = 'y' ]]; then
|
||||
pacargs+=("--force")
|
||||
fi
|
||||
if ! pacstrap -GMcd "${working_dir}" "${pacargs[@]}" "$@"; then
|
||||
die 'Failed to install all packages'
|
||||
fi
|
||||
|
||||
if [[ -d "${working_dir}/lib/modules" ]]; then
|
||||
chroot_run "${working_dir}" ldconfig
|
||||
fi
|
||||
|
||||
if [[ -e "${working_dir}/etc/locale.gen" ]]; then
|
||||
sed -i 's@^#\(en_US\|de_DE\)\(\.UTF-8\)@\1\2@' "${working_dir}/etc/locale.gen"
|
||||
chroot_run "${working_dir}" locale-gen
|
||||
fi
|
||||
printf '%s.UTF-8 UTF-8\n' en_US de_DE > "${working_dir}/etc/locale.gen"
|
||||
chroot_run "${working_dir}" locale-gen
|
||||
echo 'LANG=C' > "${working_dir}/etc/locale.conf"
|
||||
|
||||
copy_hostconf
|
||||
|
@@ -15,11 +15,10 @@
|
||||
#LogFile = /var/log/pacman.log
|
||||
#GPGDir = /etc/pacman.d/gnupg/
|
||||
HoldPkg = pacman glibc
|
||||
# If upgrades are available for these packages they will be asked for first
|
||||
SyncFirst = pacman
|
||||
#XferCommand = /usr/bin/curl -C - -f %u > %o
|
||||
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
|
||||
#CleanMethod = KeepInstalled
|
||||
#UseDelta = 0.7
|
||||
Architecture = auto
|
||||
|
||||
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
|
||||
@@ -31,7 +30,7 @@ Architecture = auto
|
||||
|
||||
# Misc options
|
||||
#UseSyslog
|
||||
#UseDelta
|
||||
#Color
|
||||
#TotalDownload
|
||||
# We cannot check disk space from within a chroot environment
|
||||
#CheckSpace
|
||||
@@ -39,7 +38,9 @@ Architecture = auto
|
||||
|
||||
# By default, pacman accepts packages signed by keys that its local keyring
|
||||
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
||||
#SigLevel = Optional TrustedOnly
|
||||
SigLevel = Required DatabaseOptional
|
||||
LocalFileSigLevel = Optional
|
||||
#RemoteFileSigLevel = Required
|
||||
|
||||
# NOTE: You must run `pacman-key --init` before first using pacman; the local
|
||||
# keyring can then be populated with the keys of all official Arch Linux
|
||||
@@ -69,23 +70,18 @@ Architecture = auto
|
||||
# after the header, and they will be used before the default mirrors.
|
||||
|
||||
#[testing]
|
||||
#SigLevel = PackageRequired
|
||||
#Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[core]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[extra]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
#[community-testing]
|
||||
#SigLevel = PackageRequired
|
||||
#Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[community]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
# An example of a custom package repository. See the pacman manpage for
|
||||
|
@@ -15,11 +15,10 @@
|
||||
#LogFile = /var/log/pacman.log
|
||||
#GPGDir = /etc/pacman.d/gnupg/
|
||||
HoldPkg = pacman glibc
|
||||
# If upgrades are available for these packages they will be asked for first
|
||||
SyncFirst = pacman
|
||||
#XferCommand = /usr/bin/curl -C - -f %u > %o
|
||||
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
|
||||
#CleanMethod = KeepInstalled
|
||||
#UseDelta = 0.7
|
||||
Architecture = auto
|
||||
|
||||
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
|
||||
@@ -31,7 +30,7 @@ Architecture = auto
|
||||
|
||||
# Misc options
|
||||
#UseSyslog
|
||||
#UseDelta
|
||||
#Color
|
||||
#TotalDownload
|
||||
# We cannot check disk space from within a chroot environment
|
||||
#CheckSpace
|
||||
@@ -39,7 +38,9 @@ Architecture = auto
|
||||
|
||||
# By default, pacman accepts packages signed by keys that its local keyring
|
||||
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
||||
#SigLevel = Optional TrustedOnly
|
||||
SigLevel = Required DatabaseOptional
|
||||
LocalFileSigLevel = Optional
|
||||
#RemoteFileSigLevel = Required
|
||||
|
||||
# NOTE: You must run `pacman-key --init` before first using pacman; the local
|
||||
# keyring can then be populated with the keys of all official Arch Linux
|
||||
@@ -69,27 +70,21 @@ Architecture = auto
|
||||
# after the header, and they will be used before the default mirrors.
|
||||
|
||||
[gnome-unstable]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[testing]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[core]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[extra]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[community-testing]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[community]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
# An example of a custom package repository. See the pacman manpage for
|
||||
|
@@ -15,11 +15,10 @@
|
||||
#LogFile = /var/log/pacman.log
|
||||
#GPGDir = /etc/pacman.d/gnupg/
|
||||
HoldPkg = pacman glibc
|
||||
# If upgrades are available for these packages they will be asked for first
|
||||
SyncFirst = pacman
|
||||
#XferCommand = /usr/bin/curl -C - -f %u > %o
|
||||
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
|
||||
#CleanMethod = KeepInstalled
|
||||
#UseDelta = 0.7
|
||||
Architecture = auto
|
||||
|
||||
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
|
||||
@@ -31,7 +30,7 @@ Architecture = auto
|
||||
|
||||
# Misc options
|
||||
#UseSyslog
|
||||
#UseDelta
|
||||
#Color
|
||||
#TotalDownload
|
||||
# We cannot check disk space from within a chroot environment
|
||||
#CheckSpace
|
||||
@@ -39,7 +38,9 @@ Architecture = auto
|
||||
|
||||
# By default, pacman accepts packages signed by keys that its local keyring
|
||||
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
||||
#SigLevel = Optional TrustedOnly
|
||||
SigLevel = Required DatabaseOptional
|
||||
LocalFileSigLevel = Optional
|
||||
#RemoteFileSigLevel = Required
|
||||
|
||||
# NOTE: You must run `pacman-key --init` before first using pacman; the local
|
||||
# keyring can then be populated with the keys of all official Arch Linux
|
||||
@@ -69,27 +70,21 @@ Architecture = auto
|
||||
# after the header, and they will be used before the default mirrors.
|
||||
|
||||
[kde-unstable]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[testing]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[core]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[extra]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[community-testing]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[community]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
# An example of a custom package repository. See the pacman manpage for
|
||||
|
@@ -15,11 +15,10 @@
|
||||
#LogFile = /var/log/pacman.log
|
||||
#GPGDir = /etc/pacman.d/gnupg/
|
||||
HoldPkg = pacman glibc
|
||||
# If upgrades are available for these packages they will be asked for first
|
||||
SyncFirst = pacman
|
||||
#XferCommand = /usr/bin/curl -C - -f %u > %o
|
||||
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
|
||||
#CleanMethod = KeepInstalled
|
||||
#UseDelta = 0.7
|
||||
Architecture = auto
|
||||
|
||||
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
|
||||
@@ -31,7 +30,7 @@ Architecture = auto
|
||||
|
||||
# Misc options
|
||||
#UseSyslog
|
||||
#UseDelta
|
||||
#Color
|
||||
#TotalDownload
|
||||
# We cannot check disk space from within a chroot environment
|
||||
#CheckSpace
|
||||
@@ -39,7 +38,9 @@ Architecture = auto
|
||||
|
||||
# By default, pacman accepts packages signed by keys that its local keyring
|
||||
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
||||
#SigLevel = Optional TrustedOnly
|
||||
SigLevel = Required DatabaseOptional
|
||||
LocalFileSigLevel = Optional
|
||||
#RemoteFileSigLevel = Required
|
||||
|
||||
# NOTE: You must run `pacman-key --init` before first using pacman; the local
|
||||
# keyring can then be populated with the keys of all official Arch Linux
|
||||
@@ -69,45 +70,35 @@ Architecture = auto
|
||||
# after the header, and they will be used before the default mirrors.
|
||||
|
||||
[staging]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[testing]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[core]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[extra]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[community-staging]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[community-testing]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[community]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
# If you want to run 32 bit applications on your x86_64 system,
|
||||
# enable the multilib repositories as required here.
|
||||
[multilib-staging]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[multilib-testing]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[multilib]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
# An example of a custom package repository. See the pacman manpage for
|
||||
|
@@ -15,11 +15,10 @@
|
||||
#LogFile = /var/log/pacman.log
|
||||
#GPGDir = /etc/pacman.d/gnupg/
|
||||
HoldPkg = pacman glibc
|
||||
# If upgrades are available for these packages they will be asked for first
|
||||
SyncFirst = pacman
|
||||
#XferCommand = /usr/bin/curl -C - -f %u > %o
|
||||
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
|
||||
#CleanMethod = KeepInstalled
|
||||
#UseDelta = 0.7
|
||||
Architecture = auto
|
||||
|
||||
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
|
||||
@@ -31,7 +30,7 @@ Architecture = auto
|
||||
|
||||
# Misc options
|
||||
#UseSyslog
|
||||
#UseDelta
|
||||
#Color
|
||||
#TotalDownload
|
||||
# We cannot check disk space from within a chroot environment
|
||||
#CheckSpace
|
||||
@@ -39,7 +38,9 @@ Architecture = auto
|
||||
|
||||
# By default, pacman accepts packages signed by keys that its local keyring
|
||||
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
||||
#SigLevel = Optional TrustedOnly
|
||||
SigLevel = Required DatabaseOptional
|
||||
LocalFileSigLevel = Optional
|
||||
#RemoteFileSigLevel = Required
|
||||
|
||||
# NOTE: You must run `pacman-key --init` before first using pacman; the local
|
||||
# keyring can then be populated with the keys of all official Arch Linux
|
||||
@@ -69,33 +70,26 @@ Architecture = auto
|
||||
# after the header, and they will be used before the default mirrors.
|
||||
|
||||
[testing]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[core]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[extra]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[community-testing]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[community]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
# If you want to run 32 bit applications on your x86_64 system,
|
||||
# enable the multilib repositories as required here.
|
||||
[multilib-testing]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[multilib]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
# An example of a custom package repository. See the pacman manpage for
|
||||
|
@@ -15,11 +15,10 @@
|
||||
#LogFile = /var/log/pacman.log
|
||||
#GPGDir = /etc/pacman.d/gnupg/
|
||||
HoldPkg = pacman glibc
|
||||
# If upgrades are available for these packages they will be asked for first
|
||||
SyncFirst = pacman
|
||||
#XferCommand = /usr/bin/curl -C - -f %u > %o
|
||||
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
|
||||
#CleanMethod = KeepInstalled
|
||||
#UseDelta = 0.7
|
||||
Architecture = auto
|
||||
|
||||
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
|
||||
@@ -31,7 +30,7 @@ Architecture = auto
|
||||
|
||||
# Misc options
|
||||
#UseSyslog
|
||||
#UseDelta
|
||||
#Color
|
||||
#TotalDownload
|
||||
# We cannot check disk space from within a chroot environment
|
||||
#CheckSpace
|
||||
@@ -39,7 +38,9 @@ Architecture = auto
|
||||
|
||||
# By default, pacman accepts packages signed by keys that its local keyring
|
||||
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
||||
#SigLevel = Optional TrustedOnly
|
||||
SigLevel = Required DatabaseOptional
|
||||
LocalFileSigLevel = Optional
|
||||
#RemoteFileSigLevel = Required
|
||||
|
||||
# NOTE: You must run `pacman-key --init` before first using pacman; the local
|
||||
# keyring can then be populated with the keys of all official Arch Linux
|
||||
@@ -69,34 +70,27 @@ Architecture = auto
|
||||
# after the header, and they will be used before the default mirrors.
|
||||
|
||||
#[testing]
|
||||
#SigLevel = PackageRequired
|
||||
#Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[core]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[extra]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
#[community-testing]
|
||||
#SigLevel = PackageRequired
|
||||
#Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[community]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
# If you want to run 32 bit applications on your x86_64 system,
|
||||
# enable the multilib repositories as required here.
|
||||
|
||||
#[multilib-testing]
|
||||
#SigLevel = PackageRequired
|
||||
#Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[multilib]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
# An example of a custom package repository. See the pacman manpage for
|
||||
|
@@ -15,11 +15,10 @@
|
||||
#LogFile = /var/log/pacman.log
|
||||
#GPGDir = /etc/pacman.d/gnupg/
|
||||
HoldPkg = pacman glibc
|
||||
# If upgrades are available for these packages they will be asked for first
|
||||
SyncFirst = pacman
|
||||
#XferCommand = /usr/bin/curl -C - -f %u > %o
|
||||
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
|
||||
#CleanMethod = KeepInstalled
|
||||
#UseDelta = 0.7
|
||||
Architecture = auto
|
||||
|
||||
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
|
||||
@@ -31,7 +30,7 @@ Architecture = auto
|
||||
|
||||
# Misc options
|
||||
#UseSyslog
|
||||
#UseDelta
|
||||
#Color
|
||||
#TotalDownload
|
||||
# We cannot check disk space from within a chroot environment
|
||||
#CheckSpace
|
||||
@@ -39,7 +38,9 @@ Architecture = auto
|
||||
|
||||
# By default, pacman accepts packages signed by keys that its local keyring
|
||||
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
||||
#SigLevel = Optional TrustedOnly
|
||||
SigLevel = Required DatabaseOptional
|
||||
LocalFileSigLevel = Optional
|
||||
#RemoteFileSigLevel = Required
|
||||
|
||||
# NOTE: You must run `pacman-key --init` before first using pacman; the local
|
||||
# keyring can then be populated with the keys of all official Arch Linux
|
||||
@@ -69,31 +70,24 @@ Architecture = auto
|
||||
# after the header, and they will be used before the default mirrors.
|
||||
|
||||
[staging]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[testing]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[core]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[extra]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[community-staging]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[community-testing]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[community]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
# An example of a custom package repository. See the pacman manpage for
|
||||
|
@@ -15,11 +15,10 @@
|
||||
#LogFile = /var/log/pacman.log
|
||||
#GPGDir = /etc/pacman.d/gnupg/
|
||||
HoldPkg = pacman glibc
|
||||
# If upgrades are available for these packages they will be asked for first
|
||||
SyncFirst = pacman
|
||||
#XferCommand = /usr/bin/curl -C - -f %u > %o
|
||||
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
|
||||
#CleanMethod = KeepInstalled
|
||||
#UseDelta = 0.7
|
||||
Architecture = auto
|
||||
|
||||
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
|
||||
@@ -31,7 +30,7 @@ Architecture = auto
|
||||
|
||||
# Misc options
|
||||
#UseSyslog
|
||||
#UseDelta
|
||||
#Color
|
||||
#TotalDownload
|
||||
# We cannot check disk space from within a chroot environment
|
||||
#CheckSpace
|
||||
@@ -39,7 +38,9 @@ Architecture = auto
|
||||
|
||||
# By default, pacman accepts packages signed by keys that its local keyring
|
||||
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
||||
#SigLevel = Optional TrustedOnly
|
||||
SigLevel = Required DatabaseOptional
|
||||
LocalFileSigLevel = Optional
|
||||
#RemoteFileSigLevel = Required
|
||||
|
||||
# NOTE: You must run `pacman-key --init` before first using pacman; the local
|
||||
# keyring can then be populated with the keys of all official Arch Linux
|
||||
@@ -69,23 +70,18 @@ Architecture = auto
|
||||
# after the header, and they will be used before the default mirrors.
|
||||
|
||||
[testing]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[core]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[extra]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[community-testing]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[community]
|
||||
SigLevel = PackageRequired
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
# An example of a custom package repository. See the pacman manpage for
|
||||
|
Reference in New Issue
Block a user