2222 #Bootstrap
2323 pacman -y --sync --refresh --refresh --sysupgrade --noconfirm --debug
2424 packages="bash binutils curl fakechroot fakeroot git wget"
25- for pkg in $packages; do pacman -Sy "$pkg" --noconfirm ; done
26- for pkg in $packages; do pacman -Sy "$pkg" --needed --noconfirm ; done
25+ for pkg in $packages; do pacman -Sy "${ pkg} " --noconfirm ; done
26+ for pkg in $packages; do pacman -Sy "${ pkg} " --needed --noconfirm ; done
2727 #Fix & Patches
2828 sed ' \' ' /DownloadUser/d' \' ' -i "/etc/pacman.conf"
2929 #sed ' \' ' s/^.*Architecture\s*=.*$/Architecture = auto/' \' ' -i "/etc/pacman.conf"
5858 #Fake-Sudo
5959 pacman -Rsndd sudo 2>/dev/null
6060 rm -rvf "/usr/bin/sudo" 2>/dev/null
61- curl -qfsSL "https://github.com/pkgforge/flatimage-base /releases/download/$(uname -m) /fake-sudo-pkexec.tar.zst" -o "./fake-sudo-pkexec.tar.zst" && chmod +x "./fake-sudo-pkexec.tar.zst"
61+ curl -qfsSL "https://github.com/pkgforge/devscripts /releases/download/common-utils /fake-sudo-pkexec.tar.zst" -o "./fake-sudo-pkexec.tar.zst" && chmod +x "./fake-sudo-pkexec.tar.zst"
6262 pacman -Uddd "./fake-sudo-pkexec.tar.zst" --noconfirm
6363 pacman -Syy fakeroot --needed --noconfirm
6464 rm -rvf "./fake-sudo-pkexec.tar.zst"
6565 #Yay
66- curl -qfsSL "https://github.com/pkgforge/flatimage-base /releases/download/$(uname -m)/yay " -o "/usr/bin/yay" && chmod +x "/usr/bin/yay"
67- yay --version ; which fakeroot yay sudo
66+ curl -qfsSL "https://github.com/pkgforge/devscripts /releases/download/common-utils/yay- $(uname -m)" -o "/usr/bin/yay" && chmod +x "/usr/bin/yay"
67+ yay --version ; which fakeroot yay sudo
6868 #More cleanup
6969 rm -rfv "/usr/share/gtk-doc/"* 2>/dev/null
7070 rm -rfv "/usr/share/man/"* 2>/dev/null
100100 touch ""/etc/{host.conf,hosts,nsswitch.conf} 2>/dev/null
101101 hostname 2>/dev/null; cat "/etc/os-release" 2>/dev/null'
102102# #Export
103- docker export " $( docker ps -aqf ' name=cachyos' ) " --output " rootfs.tar"
103+ docker export " $( docker ps -aqf ' name=cachyos-base ' ) " --output " rootfs.tar"
104104 if [[ -f " ./rootfs.tar" ]] && [[ $( stat -c%s " ./rootfs.tar" ) -gt 10000 ]]; then
105105 mkdir -pv " ./rootfs" && export ROOTFS_DIR=" $( realpath " ./rootfs" ) "
106106 rsync -achLv --mkpath " ./rootfs.tar" " /tmp/cachyos-base.tar"
@@ -115,7 +115,7 @@ popd "$(mktemp -d)" >/dev/null 2>&1
115115# -------------------------------------------------------#
116116# #Push
117117# ENV
118- D_ID=" $( docker ps -qf ' name=cachyos-base' | tr -d ' [:space:]' ) "
118+ D_ID=" $( docker ps -aqf ' name=cachyos-base' | tr -d ' [:space:]' ) "
119119D_TAG=" v$( date +' %Y.%m.%d' | tr -d ' [:space:]' ) "
120120export D_ID D_TAG
121121# Tags
0 commit comments