mirror of
https://github.com/theupriser/steamify-cachyos-live-iso.git
synced 2026-10-02 15:10:26 +02:00
🚧 workaround bug with cachyos-keyring
the following error indenticate that the entire keyrings for pacman are broken,
and that is resulting in broken keyrings after installing CachyOS with
the offline install option, which can be fixed manually with keyring
reset and locally signing CachyOS key:
```
(520/948) installing cachyos-keyring [-----------------------------------------------------------------------------------------------------------------------] 100%
error: config file /etc/pacman.d/cachyos-mirrorlist could not be read: No such file or directory
error parsing '/etc/pacman.conf'
mkdir: cannot create directory ‘’: No such file or directory
gpg: keybox '/root/.gnupg/pubring.kbx' created
gpg: /root/.gnupg/trustdb.gpg: trustdb created
gpg: no ultimately trusted keys found
chmod: cannot access '/trustdb.gpg': No such file or directory
==> Generating pacman master key. This may take some time.
gpg: Generating pacman keyring master key...
gpg: directory '/root/.gnupg/openpgp-revocs.d' created
gpg: revocation certificate stored as '/root/.gnupg/openpgp-revocs.d/593A5D4ECDB858180CAE1D681437E851B9F0620B.rev'
gpg: Done
==> Updating trust database...
gpg: marginals needed: 3 completes needed: 1 trust model: pgp
gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u
error: config file /etc/pacman.d/cachyos-mirrorlist could not be read: No such file or directory
error parsing '/etc/pacman.conf'
==> ERROR: You do not have sufficient permissions to read the pacman keyring.
==> Use 'pacman-key --init' to correct the keyring permissions.
error: config file /etc/pacman.d/cachyos-mirrorlist could not be read: No such file or directory
error parsing '/etc/pacman.conf'
==> ERROR: You do not have sufficient permissions to read the pacman keyring.
==> Use 'pacman-key --init' to correct the keyring permissions.
error: config file /etc/pacman.d/cachyos-mirrorlist could not be read: No such file or directory
error parsing '/etc/pacman.conf'
==> ERROR: You do not have sufficient permissions to read the pacman keyring.
==> Use 'pacman-key --init' to correct the keyring permissions.
error: command failed to execute correctly
```
was introduced with cleanup commit,
removing hardcoded mirrorlist
ref: 4750b7ffae
This commit is contained in:
2 files changed
+11
No files matched your search
@@ -14,3 +14,4 @@ meta-data
|
||||
*.qcow2
|
||||
archiso/packages.x86_64
|
||||
archiso/airootfs/etc/gdm/
|
||||
archiso/airootfs/etc/pacman.d/
|
||||
+10
@@ -78,6 +78,13 @@ DefaultSession=gnome-xorg.desktop
|
||||
EOF
|
||||
}
|
||||
|
||||
fetch_cachyos_mirrorlist() {
|
||||
mkdir -p ${src_dir}/archiso/airootfs/etc/pacman.d
|
||||
local _mirrorlist_url="https://github.com/CachyOS/CachyOS-PKGBUILDS/raw/master/cachyos-mirrorlist/cachyos-mirrorlist"
|
||||
|
||||
curl -sSL "${_mirrorlist_url}" > ${src_dir}/archiso/airootfs/etc/pacman.d/cachyos-mirrorlist
|
||||
}
|
||||
|
||||
change_grub_version() {
|
||||
local _version="$1"
|
||||
sed -i "s/CACHYOS_VERSION=\".*\"/CACHYOS_VERSION=\"${_version}\"/" ${src_dir}/archiso/grub/grub.cfg
|
||||
@@ -90,6 +97,9 @@ prepare_profile(){
|
||||
|
||||
change_grub_version "$(date +%y%m%d)"
|
||||
|
||||
# Fetch up-to-date version of CachyOS repo mirrorlist
|
||||
fetch_cachyos_mirrorlist
|
||||
|
||||
rm -f ${src_dir}/archiso/airootfs/etc/systemd/system/display-manager.service
|
||||
if [ "$profile" == "kde" ]; then
|
||||
cp ${src_dir}/archiso/packages_kde.x86_64 ${src_dir}/archiso/packages.x86_64
|
||||
|
||||
Reference in new issue
Block a user