mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
more code cleanup
This commit is contained in:
parent
3009c0fef0
commit
5ee27572ad
1 changed files with 54 additions and 59 deletions
|
@ -2424,13 +2424,13 @@ select_mirror() {
|
||||||
dialog --infobox "Downloading latest mirrorlist ..." 0 0
|
dialog --infobox "Downloading latest mirrorlist ..." 0 0
|
||||||
${DLPROG} -q "https://www.archlinux.org/mirrorlist/?country=all&protocol=http&protocol=https&ip_version=4&ip_version=6&use_mirror_status=on" -O /tmp/pacman_mirrorlist.txt -o ${LOG} 2>/dev/null
|
${DLPROG} -q "https://www.archlinux.org/mirrorlist/?country=all&protocol=http&protocol=https&ip_version=4&ip_version=6&use_mirror_status=on" -O /tmp/pacman_mirrorlist.txt -o ${LOG} 2>/dev/null
|
||||||
|
|
||||||
if [[ "$(grep '#Server = http:' /tmp/pacman_mirrorlist.txt)" ]]; then
|
if grep -q '#Server = http:' /tmp/pacman_mirrorlist.txt; then
|
||||||
mv "${MIRRORLIST}" "${MIRRORLIST}.bak"
|
mv "${MIRRORLIST}" "${MIRRORLIST}.bak"
|
||||||
cp /tmp/pacman_mirrorlist.txt "${MIRRORLIST}"
|
cp /tmp/pacman_mirrorlist.txt "${MIRRORLIST}"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
# FIXME: this regex doesn't honor commenting
|
# FIXME: this regex doesn't honor commenting
|
||||||
MIRRORS=$(egrep -o '((http)|(https))://[^/]*' "${MIRRORLIST}" | sed 's|$| _|g')
|
MIRRORS=$(grep -E -o '((http)|(https))://[^/]*' "${MIRRORLIST}" | sed 's|$| _|g')
|
||||||
DIALOG --menu "Select a mirror" 14 55 7 \
|
DIALOG --menu "Select a mirror" 14 55 7 \
|
||||||
${MIRRORS} \
|
${MIRRORS} \
|
||||||
"Custom" "_" 2>${ANSWER} || return 1
|
"Custom" "_" 2>${ANSWER} || return 1
|
||||||
|
@ -2444,7 +2444,7 @@ select_mirror() {
|
||||||
# our mirrorlist and pulling the full URL out. Substitute 'core' in
|
# our mirrorlist and pulling the full URL out. Substitute 'core' in
|
||||||
# for the repository name, and ensure that if it was listed twice we
|
# for the repository name, and ensure that if it was listed twice we
|
||||||
# only return one line for the mirror.
|
# only return one line for the mirror.
|
||||||
SYNC_URL=$(egrep -o "${_server}.*" "${MIRRORLIST}" | head -n1)
|
SYNC_URL=$(grep -E -o "${_server}.*" "${MIRRORLIST}" | head -n1)
|
||||||
fi
|
fi
|
||||||
echo "Using mirror: ${SYNC_URL}" >${LOG}
|
echo "Using mirror: ${SYNC_URL}" >${LOG}
|
||||||
echo "Server = "${SYNC_URL}"" >> /etc/pacman.d/mirrorlist
|
echo "Server = "${SYNC_URL}"" >> /etc/pacman.d/mirrorlist
|
||||||
|
@ -2468,14 +2468,10 @@ dotesting() {
|
||||||
# returns: 1 on error
|
# returns: 1 on error
|
||||||
prepare_pacman() {
|
prepare_pacman() {
|
||||||
# Set up the necessary directories for pacman use
|
# Set up the necessary directories for pacman use
|
||||||
[[ ! -d "${DESTDIR}/var/cache/pacman/pkg" ]] && mkdir -m 755 -p "${DESTDIR}/var/cache/pacman/pkg"
|
[[ ! -d "${DESTDIR}/var/cache/pacman/pkg" ]] && mkdir -p "${DESTDIR}/var/cache/pacman/pkg"
|
||||||
[[ ! -d "${DESTDIR}/var/lib/pacman" ]] && mkdir -m 755 -p "${DESTDIR}/var/lib/pacman"
|
[[ ! -d "${DESTDIR}/var/lib/pacman" ]] && mkdir -p "${DESTDIR}/var/lib/pacman"
|
||||||
DIALOG --infobox "Refreshing package database..." 6 45
|
DIALOG --infobox "Refreshing package database..." 6 45
|
||||||
${PACMAN} -Sy >${LOG} 2>&1 || return 1
|
${PACMAN} -Sy >${LOG} 2>&1 || (DIALOG --msgbox "Pacman preparation failed! Check ${LOG} for errors." 6 60; return 1)
|
||||||
if [[ $? -ne 0 ]]; then
|
|
||||||
DIALOG --msgbox "Pacman preparation failed! Check ${LOG} for errors." 6 60
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2492,7 +2488,7 @@ run_pacman(){
|
||||||
echo "Installing Packages..." >/tmp/pacman.log ; \
|
echo "Installing Packages..." >/tmp/pacman.log ; \
|
||||||
echo >>/tmp/pacman.log ; \
|
echo >>/tmp/pacman.log ; \
|
||||||
touch /tmp/setup-pacman-running ; \
|
touch /tmp/setup-pacman-running ; \
|
||||||
${PACMAN} -S ${PACKAGES} 2>&1 >> /tmp/pacman.log ; \
|
${PACMAN} -S "${PACKAGES}" 2>&1 >> /tmp/pacman.log ; \
|
||||||
echo $? > /tmp/.pacman-retcode ; \
|
echo $? > /tmp/.pacman-retcode ; \
|
||||||
if [[ $(cat /tmp/.pacman-retcode) -ne 0 ]]; then
|
if [[ $(cat /tmp/.pacman-retcode) -ne 0 ]]; then
|
||||||
echo -e "\nPackage Installation FAILED." >>/tmp/pacman.log
|
echo -e "\nPackage Installation FAILED." >>/tmp/pacman.log
|
||||||
|
@ -2540,72 +2536,71 @@ install_packages() {
|
||||||
PACKAGES="base linux linux-firmware"
|
PACKAGES="base linux linux-firmware"
|
||||||
# Add packages which are not in core repository
|
# Add packages which are not in core repository
|
||||||
if [[ -n "$(pgrep dhclient)" ]]; then
|
if [[ -n "$(pgrep dhclient)" ]]; then
|
||||||
! [[ "$(echo ${PACKAGES} | grep -w dhclient)" ]] && PACKAGES="${PACKAGES} dhclient"
|
! echo "${PACKAGES}" | grep -qw dhclient && PACKAGES="${PACKAGES} dhclient"
|
||||||
fi
|
fi
|
||||||
# Add filesystem packages
|
# Add filesystem packages
|
||||||
if [[ "$(${_LSBLK} FSTYPE | grep ntfs)" ]]; then
|
if lsblk -rnpo FSTYPE | grep -q ntfs; then
|
||||||
! [[ "$(echo ${PACKAGES} | grep -w ntfs-3g)" ]] && PACKAGES="${PACKAGES} ntfs-3g"
|
! echo "${PACKAGES}" | grep -qw ntfs-3g && PACKAGES="${PACKAGES} ntfs-3g"
|
||||||
fi
|
fi
|
||||||
if [[ "$(${_LSBLK} FSTYPE | grep btrfs)" ]]; then
|
if lsblk -rnpo FSTYPE | grep -q btrfs; then
|
||||||
! [[ "$(echo ${PACKAGES} | grep -w btrfs-progs)" ]] && PACKAGES="${PACKAGES} btrfs-progs"
|
! echo "${PACKAGES}" | grep -qw btrfs-progs && PACKAGES="${PACKAGES} btrfs-progs"
|
||||||
fi
|
fi
|
||||||
if [[ "$(${_LSBLK} FSTYPE | grep nilfs2)" ]]; then
|
if lsblk -rnpo FSTYPE | grep -q nilfs2; then
|
||||||
! [[ "$(echo ${PACKAGES} | grep -w nilfs-utils)" ]] && PACKAGES="${PACKAGES} nilfs-utils"
|
! echo "${PACKAGES}" | grep -qw nilfs-utils && PACKAGES="${PACKAGES} nilfs-utils"
|
||||||
fi
|
fi
|
||||||
if [[ "$(${_LSBLK} FSTYPE | grep ext)" ]]; then
|
if lsblk -rnpo FSTYPE | grep -q ext; then
|
||||||
! [[ "$(echo ${PACKAGES} | grep -w e2fsprogs)" ]] && PACKAGES="${PACKAGES} e2fsprogs"
|
! echo "${PACKAGES}" | grep -qw e2fsprogs && PACKAGES="${PACKAGES} e2fsprogs"
|
||||||
fi
|
fi
|
||||||
if [[ "$(${_LSBLK} FSTYPE | grep reiserfs)" ]]; then
|
if lsblk -rnpo FSTYPE | grep -q reiserfs; then
|
||||||
! [[ "$(echo ${PACKAGES} | grep -w reiserfsprogs)" ]] && PACKAGES="${PACKAGES} reiserfsprogs"
|
! echo "${PACKAGES}" | grep -qw reiserfsprogs && PACKAGES="${PACKAGES} reiserfsprogs"
|
||||||
fi
|
fi
|
||||||
if [[ "$(${_LSBLK} FSTYPE | grep xfs)" ]]; then
|
if lsblk -rnpo FSTYPE | grep -q xfs; then
|
||||||
! [[ "$(echo ${PACKAGES} | grep -w xfsprogs)" ]] && PACKAGES="${PACKAGES} xfsprogs"
|
! echo "${PACKAGES}" | grep -qw xfsprogs && PACKAGES="${PACKAGES} xfsprogs"
|
||||||
fi
|
fi
|
||||||
if [[ "$(${_LSBLK} FSTYPE | grep jfs)" ]]; then
|
if lsblk -rnpo FSTYPE | grep -q jfs; then
|
||||||
! [[ "$(echo ${PACKAGES} | grep -w jfsutils)" ]] && PACKAGES="${PACKAGES} jfsutils"
|
! echo "${PACKAGES}" | grep -qw jfsutils && PACKAGES="${PACKAGES} jfsutils"
|
||||||
fi
|
fi
|
||||||
if [[ "$(${_LSBLK} FSTYPE | grep f2fs)" ]]; then
|
if lsblk -rnpo FSTYPE | grep -q f2fs; then
|
||||||
! [[ "$(echo ${PACKAGES} | grep -w f2fs-tools)" ]] && PACKAGES="${PACKAGES} f2fs-tools"
|
! echo "${PACKAGES}" | grep -qw f2fs-tools && PACKAGES="${PACKAGES} f2fs-tools"
|
||||||
fi
|
fi
|
||||||
if [[ "$(${_LSBLK} FSTYPE | grep vfat)" ]]; then
|
if lsblk -rnpo FSTYPE | grep -q vfat; then
|
||||||
! [[ "$(echo ${PACKAGES} | grep -w dosfstools)" ]] && PACKAGES="${PACKAGES} dosfstools"
|
! echo "${PACKAGES}" | grep -qw dosfstools && PACKAGES="${PACKAGES} dosfstools"
|
||||||
fi
|
fi
|
||||||
if ! [[ "$(dmraid_devices)" = "" ]]; then
|
if ! [[ "$(dmraid_devices)" = "" ]]; then
|
||||||
! [[ "$(echo ${PACKAGES} | grep -w dmraid)" ]] && PACKAGES="${PACKAGES} dmraid"
|
! echo "${PACKAGES}" | grep -w dmraid && PACKAGES="${PACKAGES} dmraid"
|
||||||
fi
|
fi
|
||||||
### HACK:
|
### HACK:
|
||||||
# always add systemd-sysvcompat components
|
# always add systemd-sysvcompat components
|
||||||
PACKAGES="$(echo ${PACKAGES} | sed -e "s#\ systemd-sysvcompat\ # #g")"
|
PACKAGES="${PACKAGES//\ systemd-sysvcompat\ / }"
|
||||||
PACKAGES="${PACKAGES} systemd-sysvcompat"
|
PACKAGES="${PACKAGES} systemd-sysvcompat"
|
||||||
### HACK:
|
### HACK:
|
||||||
# always add intel-ucode
|
# always add intel-ucode
|
||||||
if [[ "${RUNNING_ARCH}" == "x86_64" ]]; then
|
if [[ "$(uname -m)" == "x86_64" ]]; then
|
||||||
PACKAGES="$(echo ${PACKAGES} | sed -e "s#\ intel-ucode\ # #g")"
|
PACKAGES="${PACKAGES//\ intel-ucode\ / }"
|
||||||
PACKAGES="${PACKAGES} intel-ucode"
|
PACKAGES="${PACKAGES} intel-ucode"
|
||||||
fi
|
fi
|
||||||
# always add amd-ucode
|
# always add amd-ucode
|
||||||
PACKAGES="$(echo ${PACKAGES} | sed -e "s#\ amd-ucode\ # #g")"
|
PACKAGES="${PACKAGES//\ amd-ucode\ / }"
|
||||||
PACKAGES="${PACKAGES} amd-ucode"
|
PACKAGES="${PACKAGES} amd-ucode"
|
||||||
### HACK:
|
### HACK:
|
||||||
# always add netctl with optdepends
|
# always add netctl with optdepends
|
||||||
PACKAGES="$(echo ${PACKAGES} | sed -e "s#\ netctl\ # #g")"
|
PACKAGES="${PACKAGES//\ netctl\ / }"
|
||||||
PACKAGES="${PACKAGES} netctl"
|
PACKAGES="${PACKAGES} netctl"
|
||||||
PACKAGES="$(echo ${PACKAGES} | sed -e "s#\ dhcpd\ # #g")"
|
PACKAGES="${PACKAGES//\ dhcpd\ / }"
|
||||||
PACKAGES="${PACKAGES} dhcpcd"
|
PACKAGES="${PACKAGES} dhcpcd"
|
||||||
PACKAGES="$(echo ${PACKAGES} | sed -e "s#\ wpa_supplicant\ # #g")"
|
PACKAGES="${PACKAGES//\ wpa_supplicant\ / }"
|
||||||
PACKAGES="${PACKAGES} wpa_supplicant"
|
PACKAGES="${PACKAGES} wpa_supplicant"
|
||||||
### HACK:
|
### HACK:
|
||||||
# always add lvm2, cryptsetup and mdadm
|
# always add lvm2, cryptsetup and mdadm
|
||||||
PACKAGES="$(echo ${PACKAGES} | sed -e "s#\ lvm2\ # #g")"
|
PACKAGES="${PACKAGES//\ lvm2\ / }"
|
||||||
PACKAGES="${PACKAGES} lvm2"
|
PACKAGES="${PACKAGES} lvm2"
|
||||||
PACKAGES="$(echo ${PACKAGES} | sed -e "s#\ cryptsetup\ # #g")"
|
PACKAGES="${PACKAGES//\ cryptsetup\ / }"
|
||||||
PACKAGES="${PACKAGES} cryptsetup"
|
PACKAGES="${PACKAGES} cryptsetup"
|
||||||
PACKAGES="$(echo ${PACKAGES} | sed -e "s#\ mdadm\ # #g")"
|
PACKAGES="${PACKAGES//\ mdadm\ / }"
|
||||||
PACKAGES="${PACKAGES} mdadm"
|
PACKAGES="${PACKAGES} mdadm"
|
||||||
### HACK: circular depends are possible in base, install filesystem first!
|
### HACK: circular depends are possible in base, install filesystem first!
|
||||||
PACKAGES="$(echo ${PACKAGES} | sed -e "s#\ filesystem\ # #g")"
|
PACKAGES="${PACKAGES//\ filesystem\ / }"
|
||||||
PACKAGES="filesystem ${PACKAGES}"
|
PACKAGES="filesystem ${PACKAGES}"
|
||||||
|
|
||||||
DIALOG --infobox "Package installation will begin in 3 seconds. You can watch the output in the progress window. Please be patient." 0 0
|
DIALOG --infobox "Package installation will begin in 3 seconds. You can watch the output in the progress window. Please be patient." 0 0
|
||||||
sleep 3
|
sleep 3
|
||||||
run_pacman
|
run_pacman
|
||||||
|
@ -2633,12 +2628,12 @@ auto_fstab(){
|
||||||
# Modify fstab
|
# Modify fstab
|
||||||
if [[ "${S_MKFS}" = "1" || "${S_MKFSAUTO}" = "1" ]]; then
|
if [[ "${S_MKFS}" = "1" || "${S_MKFSAUTO}" = "1" ]]; then
|
||||||
if [[ -f /tmp/.device-names ]]; then
|
if [[ -f /tmp/.device-names ]]; then
|
||||||
sort /tmp/.device-names >>${DESTDIR}/etc/fstab
|
sort /tmp/.device-names >>"${DESTDIR}"/etc/fstab
|
||||||
fi
|
fi
|
||||||
if [[ -f /tmp/.fstab ]]; then
|
if [[ -f /tmp/.fstab ]]; then
|
||||||
# clean fstab first from entries
|
# clean fstab first from entries
|
||||||
sed -i -e '/^\#/!d' ${DESTDIR}/etc/fstab
|
sed -i -e '/^\#/!d' "${DESTDIR}"/etc/fstab
|
||||||
sort /tmp/.fstab >>${DESTDIR}/etc/fstab
|
sort /tmp/.fstab >>"${DESTDIR}"/etc/fstab
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -2647,8 +2642,8 @@ auto_fstab(){
|
||||||
# add udev rule for ssd disks using the deadline scheduler by default
|
# add udev rule for ssd disks using the deadline scheduler by default
|
||||||
# add sysctl file for swaps
|
# add sysctl file for swaps
|
||||||
auto_ssd () {
|
auto_ssd () {
|
||||||
[[ ! -f ${DESTDIR}/etc/udev/rules.d/60-ioschedulers.rules ]] && cp /etc/udev/rules.d/60-ioschedulers.rules ${DESTDIR}/etc/udev/rules.d/60-ioschedulers.rules
|
[[ ! -f ${DESTDIR}/etc/udev/rules.d/60-ioschedulers.rules ]] && cp /etc/udev/rules.d/60-ioschedulers.rules "${DESTDIR}"/etc/udev/rules.d/60-ioschedulers.rules
|
||||||
[[ ! -f ${DESTDIR}/etc/sysctl.d/99-sysctl.conf ]] && cp /etc/sysctl.d/99-sysctl.conf ${DESTDIR}/etc/sysctl.d/99-sysctl.conf
|
[[ ! -f ${DESTDIR}/etc/sysctl.d/99-sysctl.conf ]] && cp /etc/sysctl.d/99-sysctl.conf "${DESTDIR}"/etc/sysctl.d/99-sysctl.conf
|
||||||
}
|
}
|
||||||
|
|
||||||
# auto_mdadm()
|
# auto_mdadm()
|
||||||
|
@ -2658,7 +2653,7 @@ auto_mdadm()
|
||||||
if [[ -e ${DESTDIR}/etc/mdadm.conf ]]; then
|
if [[ -e ${DESTDIR}/etc/mdadm.conf ]]; then
|
||||||
if [[ "$(cat /proc/mdstat | grep ^md)" ]]; then
|
if [[ "$(cat /proc/mdstat | grep ^md)" ]]; then
|
||||||
DIALOG --infobox "Adding raid setup to ${DESTDIR}/etc/mdadm.conf ..." 4 40
|
DIALOG --infobox "Adding raid setup to ${DESTDIR}/etc/mdadm.conf ..." 4 40
|
||||||
mdadm -Ds >> ${DESTDIR}/etc/mdadm.conf
|
mdadm -Ds >> "${DESTDIR}"/etc/mdadm.conf
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -2674,19 +2669,19 @@ auto_network()
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
# copy netctl profiles
|
# copy netctl profiles
|
||||||
[[ -d ${DESTDIR}/etc/netctl ]] && cp /etc/netctl/* ${DESTDIR}/etc/netctl/ 2>/dev/null
|
[[ -d ${DESTDIR}/etc/netctl ]] && cp /etc/netctl/* "${DESTDIR}"/etc/netctl/ 2>/dev/null
|
||||||
# enable netctl profiles
|
# enable netctl profiles
|
||||||
for i in $(echo /etc/netctl/*); do
|
for i in $(echo /etc/netctl/*); do
|
||||||
[[ -f $i ]] && chroot ${DESTDIR} /usr/bin/netctl enable $(basename $i)
|
[[ -f $i ]] && chroot "${DESTDIR}" /usr/bin/netctl enable "$(basename "${i}")"
|
||||||
done
|
done
|
||||||
# copy proxy settings
|
# copy proxy settings
|
||||||
if [[ "${PROXY_HTTP}" != "" ]]; then
|
if [[ "${PROXY_HTTP}" != "" ]]; then
|
||||||
echo "export http_proxy=${PROXY_HTTP}" >> ${DESTDIR}/etc/profile.d/proxy.sh;
|
echo "export http_proxy=${PROXY_HTTP}" >> "${DESTDIR}"/etc/profile.d/proxy.sh;
|
||||||
chmod a+x ${DESTDIR}/etc/profile.d/proxy.sh
|
chmod a+x "${DESTDIR}"/etc/profile.d/proxy.sh
|
||||||
fi
|
fi
|
||||||
if [[ "${PROXY_FTP}" != "" ]]; then
|
if [[ "${PROXY_FTP}" != "" ]]; then
|
||||||
echo "export ftp_proxy=${PROXY_FTP}" >> ${DESTDIR}/etc/profile.d/proxy.sh;
|
echo "export ftp_proxy=${PROXY_FTP}" >> "${DESTDIR}"/etc/profile.d/proxy.sh;
|
||||||
chmod a+x ${DESTDIR}/etc/profile.d/proxy.sh
|
chmod a+x "${DESTDIR}"/etc/profile.d/proxy.sh
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2700,7 +2695,7 @@ auto_pacman()
|
||||||
DIALOG --yesno "Would you like to copy pacman's GPG files to installed system?\nDuring boot pacman GPG entropy was generated by haveged,\nif you need your own entropy answer NO." 0 0 && DO_PACMAN_GPG="yes"
|
DIALOG --yesno "Would you like to copy pacman's GPG files to installed system?\nDuring boot pacman GPG entropy was generated by haveged,\nif you need your own entropy answer NO." 0 0 && DO_PACMAN_GPG="yes"
|
||||||
if [[ "${DO_PACMAN_GPG}" = "yes" ]]; then
|
if [[ "${DO_PACMAN_GPG}" = "yes" ]]; then
|
||||||
DIALOG --infobox "Copy /etc/pacman.d/gnupg directory to ${DESTDIR}/etc/pacman.d/gnupg ..." 0 0
|
DIALOG --infobox "Copy /etc/pacman.d/gnupg directory to ${DESTDIR}/etc/pacman.d/gnupg ..." 0 0
|
||||||
cp -ar /etc/pacman.d/gnupg ${DESTDIR}/etc/pacman.d 2>&1
|
cp -ar /etc/pacman.d/gnupg "${DESTDIR}"/etc/pacman.d 2>&1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -2710,9 +2705,9 @@ auto_pacman()
|
||||||
auto_testing()
|
auto_testing()
|
||||||
{
|
{
|
||||||
if [[ "${DOTESTING}" == "yes" ]]; then
|
if [[ "${DOTESTING}" == "yes" ]]; then
|
||||||
sed -i -e '/^#\[testing\]/ { n ; s/^#// }' ${DESTDIR}/etc/pacman.conf
|
sed -i -e '/^#\[testing\]/ { n ; s/^#// }' "${DESTDIR}"/etc/pacman.conf
|
||||||
sed -i -e '/^#\[community-testing\]/ { n ; s/^#// }' ${DESTDIR}/etc/pacman.conf
|
sed -i -e '/^#\[community-testing\]/ { n ; s/^#// }' "${DESTDIR}"/etc/pacman.conf
|
||||||
sed -i -e 's:^#\[testing\]:\[testing\]:g' -e 's:^#\[community-testing\]:\[community-testing\]:g' ${DESTDIR}/etc/pacman.conf
|
sed -i -e 's:^#\[testing\]:\[testing\]:g' -e 's:^#\[community-testing\]:\[community-testing\]:g' "${DESTDIR}"/etc/pacman.conf
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue