Created
October 29, 2020 14:21
-
-
Save lilydjwg/314d7c08843a62139cfffb601f0b74d7 to your computer and use it in GitHub Desktop.
pacsync: sync with latest mirrors, download from fastest ones
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
unshare -m bash <<'EOF' | |
mount --make-rprivate / | |
for f in /etc/pacman.d/*.sync; do | |
filename="${f%.*}" | |
mount --bind "$f" "$filename" | |
done | |
pacman -Sy | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
中文使用说明