mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Ensure mirror and pkgs channels are always kept in sync as stable or edge
This commit is contained in:
@@ -7,15 +7,14 @@
|
|||||||
sudo cp -f /etc/pacman.conf /etc/pacman.conf.bak
|
sudo cp -f /etc/pacman.conf /etc/pacman.conf.bak
|
||||||
sudo cp -f /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
|
sudo cp -f /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
|
||||||
|
|
||||||
sudo cp -f ~/.local/share/omarchy/default/pacman/pacman.conf /etc/pacman.conf
|
|
||||||
|
|
||||||
if [[ $1 == "edge" ]]; then
|
if [[ $1 == "edge" ]]; then
|
||||||
|
sudo cp -f ~/.local/share/omarchy/default/pacman/pacman-edge.conf /etc/pacman.conf
|
||||||
sudo cp -f ~/.local/share/omarchy/default/pacman/mirrorlist-edge /etc/pacman.d/mirrorlist
|
sudo cp -f ~/.local/share/omarchy/default/pacman/mirrorlist-edge /etc/pacman.d/mirrorlist
|
||||||
sudo sed -i 's|https://pkgs.omarchy.org/.*$arch|https://pkgs.omarchy.org/edge/$arch|' /etc/pacman.conf
|
|
||||||
echo "Setting channel to edge"
|
echo "Setting channel to edge"
|
||||||
else
|
else
|
||||||
|
sudo cp -f ~/.local/share/omarchy/default/pacman/pacman-stable.conf /etc/pacman.conf
|
||||||
sudo cp -f ~/.local/share/omarchy/default/pacman/mirrorlist-stable /etc/pacman.d/mirrorlist
|
sudo cp -f ~/.local/share/omarchy/default/pacman/mirrorlist-stable /etc/pacman.d/mirrorlist
|
||||||
sudo sed -i 's|https://pkgs.omarchy.org/.*$arch|https://pkgs.omarchy.org/stable/$arch|' /etc/pacman.conf
|
|
||||||
echo "Setting channel to stable"
|
echo "Setting channel to stable"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
9
boot.sh
9
boot.sh
@@ -27,7 +27,7 @@ rm -rf ~/.local/share/omarchy/
|
|||||||
git clone "https://github.com/${OMARCHY_REPO}.git" ~/.local/share/omarchy >/dev/null
|
git clone "https://github.com/${OMARCHY_REPO}.git" ~/.local/share/omarchy >/dev/null
|
||||||
|
|
||||||
# Use custom branch if instructed, otherwise default to master
|
# Use custom branch if instructed, otherwise default to master
|
||||||
export OMARCHY_REF="${OMARCHY_REF:-master}"
|
OMARCHY_REF="${OMARCHY_REF:-master}"
|
||||||
if [[ $OMARCHY_REF != "master" ]]; then
|
if [[ $OMARCHY_REF != "master" ]]; then
|
||||||
echo -e "\e[32mUsing branch: $OMARCHY_REF\e[0m"
|
echo -e "\e[32mUsing branch: $OMARCHY_REF\e[0m"
|
||||||
cd ~/.local/share/omarchy
|
cd ~/.local/share/omarchy
|
||||||
@@ -35,5 +35,12 @@ if [[ $OMARCHY_REF != "master" ]]; then
|
|||||||
cd -
|
cd -
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Set edge mirror for dev installs
|
||||||
|
if [[ $OMARCHY_REF == "dev" ]]; then
|
||||||
|
export OMARCHY_MIRROR=edge
|
||||||
|
else
|
||||||
|
export OMARCHY_MIRROR=stable
|
||||||
|
fi
|
||||||
|
|
||||||
echo -e "\nInstallation starting..."
|
echo -e "\nInstallation starting..."
|
||||||
source ~/.local/share/omarchy/install.sh
|
source ~/.local/share/omarchy/install.sh
|
||||||
|
|||||||
30
default/pacman/pacman-edge.conf
Normal file
30
default/pacman/pacman-edge.conf
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
# See the pacman.conf(5) manpage for option and repository directives
|
||||||
|
|
||||||
|
[options]
|
||||||
|
Color
|
||||||
|
ILoveCandy
|
||||||
|
VerbosePkgLists
|
||||||
|
HoldPkg = pacman glibc
|
||||||
|
Architecture = auto
|
||||||
|
CheckSpace
|
||||||
|
ParallelDownloads = 5
|
||||||
|
DownloadUser = alpm
|
||||||
|
|
||||||
|
# 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 = Required DatabaseOptional
|
||||||
|
LocalFileSigLevel = Optional
|
||||||
|
|
||||||
|
# pacman searches repositories in the order defined here
|
||||||
|
[core]
|
||||||
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
|
[extra]
|
||||||
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
|
[multilib]
|
||||||
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
|
[omarchy]
|
||||||
|
SigLevel = Optional TrustAll
|
||||||
|
Server = https://pkgs.omarchy.org/edge/$arch
|
||||||
@@ -1,6 +1,12 @@
|
|||||||
# Configure pacman
|
# Configure pacman
|
||||||
sudo cp -f ~/.local/share/omarchy/default/pacman/pacman.conf /etc/pacman.conf
|
|
||||||
sudo cp -f ~/.local/share/omarchy/default/pacman/mirrorlist-stable /etc/pacman.d/mirrorlist
|
if [[ ${OMARCHY_MIRROR:-} == "edge" ]] || ; then
|
||||||
|
sudo cp -f ~/.local/share/omarchy/default/pacman/pacman-edge.conf /etc/pacman.conf
|
||||||
|
sudo cp -f ~/.local/share/omarchy/default/pacman/mirrorlist-edge /etc/pacman.d/mirrorlist
|
||||||
|
else
|
||||||
|
sudo cp -f ~/.local/share/omarchy/default/pacman/pacman-stable.conf /etc/pacman.conf
|
||||||
|
sudo cp -f ~/.local/share/omarchy/default/pacman/mirrorlist-stable /etc/pacman.d/mirrorlist
|
||||||
|
fi
|
||||||
|
|
||||||
if lspci -nn | grep -q "106b:180[12]"; then
|
if lspci -nn | grep -q "106b:180[12]"; then
|
||||||
cat <<EOF | sudo tee -a /etc/pacman.conf >/dev/null
|
cat <<EOF | sudo tee -a /etc/pacman.conf >/dev/null
|
||||||
|
|||||||
@@ -3,11 +3,11 @@ if [[ -n ${OMARCHY_ONLINE_INSTALL:-} ]]; then
|
|||||||
sudo pacman -S --needed --noconfirm base-devel
|
sudo pacman -S --needed --noconfirm base-devel
|
||||||
|
|
||||||
# Configure pacman
|
# Configure pacman
|
||||||
sudo cp -f ~/.local/share/omarchy/default/pacman/pacman.conf /etc/pacman.conf
|
if [[ ${OMARCHY_MIRROR:-} == "edge" ]] || ; then
|
||||||
|
sudo cp -f ~/.local/share/omarchy/default/pacman/pacman-edge.conf /etc/pacman.conf
|
||||||
if [[ ${OMARCHY_REF:-} == "dev" ]]; then
|
|
||||||
sudo cp -f ~/.local/share/omarchy/default/pacman/mirrorlist-edge /etc/pacman.d/mirrorlist
|
sudo cp -f ~/.local/share/omarchy/default/pacman/mirrorlist-edge /etc/pacman.d/mirrorlist
|
||||||
else
|
else
|
||||||
|
sudo cp -f ~/.local/share/omarchy/default/pacman/pacman-stable.conf /etc/pacman.conf
|
||||||
sudo cp -f ~/.local/share/omarchy/default/pacman/mirrorlist-stable /etc/pacman.d/mirrorlist
|
sudo cp -f ~/.local/share/omarchy/default/pacman/mirrorlist-stable /etc/pacman.d/mirrorlist
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user