├── .gitignore ├── CHANGELOG.md ├── LICENSE ├── README.md ├── archiso ├── airootfs │ ├── etc │ │ ├── cachyos-release │ │ ├── group │ │ ├── gshadow │ │ ├── hostname │ │ ├── hosts │ │ ├── locale.conf │ │ ├── localtime │ │ ├── mkinitcpio.conf.d │ │ │ └── archiso.conf │ │ ├── mkinitcpio.d │ │ │ └── linux.preset │ │ ├── modprobe.d │ │ │ ├── broadcom-wl.conf │ │ │ └── nvidia-loader.conf │ │ ├── modules-load.d │ │ │ └── zfs.conf │ │ ├── os-release │ │ ├── pacman-more.conf │ │ ├── pacman.conf │ │ ├── pacman.d │ │ │ ├── hooks │ │ │ │ ├── uncomment-mirrors.hook │ │ │ │ └── zzzz99-remove-custom-hooks-from-airootfs.hook │ │ │ └── mirrorlist │ │ ├── passwd │ │ ├── polkit-1 │ │ │ └── rules.d │ │ │ │ └── 49-nopasswd_global.rules │ │ ├── sddm.conf.d │ │ │ └── autologin.conf │ │ ├── shadow │ │ ├── skel │ │ │ ├── .bash_profile │ │ │ ├── .bashrc │ │ │ └── .config │ │ │ │ ├── kded5rc │ │ │ │ ├── kscreenlockerrc │ │ │ │ ├── kwalletrc │ │ │ │ ├── powerdevilrc │ │ │ │ └── powermanagementprofilesrc │ │ ├── ssh │ │ │ └── sshd_config.d │ │ │ │ └── 10-archiso.conf │ │ ├── sudoers.d │ │ │ └── g_wheel │ │ ├── sysctl.d │ │ │ └── 99-local.conf │ │ └── systemd │ │ │ ├── journald.conf.d │ │ │ └── volatile-storage.conf │ │ │ ├── logind.conf.d │ │ │ └── do-not-suspend.conf │ │ │ ├── system-generators │ │ │ └── systemd-gpt-auto-generator │ │ │ └── system │ │ │ ├── bluetooth.target.wants │ │ │ └── bluetooth.service │ │ │ ├── dbus-fi.w1.wpa_supplicant1.service │ │ │ ├── dbus-org.bluez.service │ │ │ ├── dbus-org.freedesktop.ModemManager1.service │ │ │ ├── dbus-org.freedesktop.nm-dispatcher.service │ │ │ ├── dbus-org.freedesktop.timesync1.service │ │ │ ├── default.target │ │ │ ├── etc-pacman.d-gnupg.mount │ │ │ ├── getty@tty1.service.d │ │ │ └── autologin.conf │ │ │ ├── livecd-alsa-unmuter.service │ │ │ ├── livecd-talk.service │ │ │ ├── multi-user.target.wants │ │ │ ├── ModemManager.service │ │ │ ├── NetworkManager.service │ │ │ ├── hv_fcopy_daemon.service │ │ │ ├── hv_kvp_daemon.service │ │ │ ├── hv_vss_daemon.service │ │ │ ├── livecd-talk.service │ │ │ ├── pacman-init.service │ │ │ ├── sshd.service │ │ │ ├── systemd-networkd.service │ │ │ ├── systemd-resolved.service │ │ │ ├── vboxservice.service │ │ │ ├── vmtoolsd.service │ │ │ ├── vmware-vmblock-fuse.service │ │ │ └── wpa_supplicant.service │ │ │ ├── network-online.target.wants │ │ │ └── NetworkManager-wait-online.service │ │ │ ├── pacman-init.service │ │ │ ├── sockets.target.wants │ │ │ ├── pcscd.socket │ │ │ └── systemd-networkd.socket │ │ │ ├── sound.target.wants │ │ │ └── livecd-alsa-unmuter.service │ │ │ └── sysinit.target.wants │ │ │ ├── systemd-time-wait-sync.service │ │ │ └── systemd-timesyncd.service │ ├── root │ │ ├── .automated_script.sh │ │ ├── .gnupg │ │ │ └── scdaemon.conf │ │ └── .zlogin │ └── usr │ │ └── local │ │ ├── bin │ │ ├── calamares-online.sh │ │ ├── choose-mirror │ │ ├── dmcheck │ │ ├── nvidia-module-loader │ │ ├── prepare-live-desktop.sh │ │ ├── remove-nvidia │ │ ├── removeun │ │ └── removeun-online │ │ └── share │ │ └── livecd-sound │ │ └── asound.conf.in ├── bootstrap_packages.x86_64 ├── efiboot │ └── loader │ │ ├── entries │ │ ├── 01-archiso-x86_64-linux.conf │ │ ├── 03-archiso-x86_64-memtest86+.conf │ │ └── fallback.conf │ │ └── loader.conf ├── grub │ ├── grub.cfg │ ├── loopback.cfg │ └── splash.png ├── packages_desktop.x86_64 ├── pacman.conf ├── profiledef.sh └── syslinux │ ├── archiso_head.cfg │ ├── archiso_pxe-linux.cfg │ ├── archiso_pxe.cfg │ ├── archiso_sys-linux.cfg │ ├── archiso_sys.cfg │ ├── archiso_tail.cfg │ ├── splash.png │ ├── splash1.png │ └── syslinux.cfg ├── buildiso.sh ├── ci.build.sh ├── lddd.sh ├── testiso.sh ├── util-iso-mount.sh ├── util-iso.sh ├── util-msg.sh └── util.sh /.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | archiso-*.tar.gz* 3 | work/ 4 | out/ 5 | build/ 6 | *.iso 7 | *.img 8 | *.cer 9 | *.crt 10 | *.key 11 | *.pem 12 | user-data 13 | meta-data 14 | *.qcow2 15 | archiso/packages.x86_64 16 | archiso/airootfs/etc/gdm/ 17 | archiso/airootfs/etc/systemd/system/display-manager.service 18 | archiso/airootfs/etc/motd 19 | archiso/airootfs/etc/environment 20 | archiso/airootfs/etc/pacman.d/cachyos-mirrorlist 21 | archiso/airootfs/etc/edition-tag 22 | archiso/airootfs/etc/version-tag 23 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 25.05 2 | 3 | **Features:** 4 | - **Plymouth**: Added a new plymouth animation screen, you can find video about here:https://www.youtube.com/watch?v=JFpHeOyNeYg 5 | - Thanks to Eren (https://github.com/erenyldz89) for working on this! 6 | - **Browser**: Cachy-Browser has been deprecated and we now provide firefox as default preinstalled. Here you can find a guide to migrate the profiles to firefox (forks): https://wiki.cachyos.org/support/faq/#migrating-your-profile-from-cachy-browser-to-firefox 7 | - **netinstall**: Added kcalc, filelight, plymouth-kcm and kio-admin to the KDE installation 8 | - **ISO**: Added an automatic detection, while booting the ISO, which NVIDIA GPU is in the system and then loads the proper module: nvidia-open and nvidia to provide better support for 10xx and lower series 9 | - **mkinitcpio**: Disabled fallback initramfs as default. This will save quite a bunch of sapce 10 | - **Mirrors**: Added new Bangladesh Mirro with 10GBs. Thanks to Limda for hosting this! 11 | - **Proton**: 12 | - Rebased almost all patches from **Proton Cachyos 9.0**. 13 | - Enabled the Wayland driver for the Steam Linux Runtime builds too. Enable with `PROTON_ENABLE_WAYLAND=1`. Thanks to [GloriousEggroll](https://github.com/GloriousEggroll) for making it happen. 14 | - Added a lot of Wayland related patches from upstream wine that happened after the release of wine-10.0 15 | - Fixed various issues with the Wayland driver and Vulkan games. Thanks to [Etaash-mathamsetty](https://github.com/Etaash-mathamsetty) for all the hard work. 16 | - Added a stub implementation for `amdxc64.dll` to enable FSR4. Use `FSR4_UPGRADE=1` to upgrade FSR3.1 games to FSR4. Again thanks to [Etaash-mathamsetty](https://github.com/Etaash-mathamsetty). Instructions: https://github.com/Etaash-mathamsetty/wine-builds/releases/tag/fsr4 17 | - Added DualSense related patches for more complete audio device detection functionality for wired sound-based haptics. Some games that relied on that specific behaviour should now have that functional. Thanks to [ClearlyClaire](https://github.com/ClearlyClaire) for the original patches and [Exotic0015](https://github.com/Exotic0015) for looking into it since **Proton Cachyos 9.0**. Upstream: https://gitlab.winehq.org/wine/wine/-/merge_requests/7238 18 | - Removed the Dragon Age Inquisition patch as it was not working. Please use **Proton-Cachyos 9.0** for now with that game. 19 | - Updated the NTSync branch to Proton 10.0. Thanks to [whrvt](https://github.com/whrvt). No, NTSync is not merged into Proton-CachyOS yet, sorry. 20 | - **grub**: Added a new grub theme. Thanks to diegons490 https://github.com/diegons490/cachyos-grub-theme 21 | 22 | **Fixes:** 23 | - **Mirrors**: Fixed an issue, that users from russia could not install anymore. We have mitigated this with not using the CDN77, which russia started to block 24 | - **kde-settings**: Disabled Discover icon in taskbar 25 | 26 | **Changelog for Handheld Edition:** 27 | - **os-branch**: Gamemode shows now properly that CachyOS Linux is used 28 | - **audio**: Updated convolver profile 29 | - **steamos-manager**: This is used for GPU Clock and TDP Management, BIOS/Dock Updates, Storage Device maintainance, external storage formatting and Battery charge limit for steamdeck 30 | - **steamos-powerbuttond**: Replace with powerbuttond for a better sleep expierence 31 | - **jupiter-hw-support**: Updated to 20250501 32 | 33 | # 25.04 34 | 35 | **Features:** 36 | - **occt**: Added OCCT to the ISO to have a live environment for stress testing 37 | - Thanks to Marek for providing this idea! 38 | 39 | **Fixes:** 40 | - **kernel**: Fixes module crash on Asus laptops 41 | - **limine**: Limine now has mkinitcpio-limine-hook installed and will automatically create bootloader entries 42 | 43 | 44 | **Changelog for Handheld Edition:** 45 | - **audio**: Added audio profiles for ROG Ally X and Legion Go 46 | - **gamescope**: Replaced gamescope-plus with upstream gamescope 47 | 48 | 49 | # 25.03 50 | 51 | **Features**: 52 | - **Bootloader**: Added support for Limine bootloader 53 | - **Bootloader**: Added support for automatic snapshots for Limine bootloader 54 | - **Samba**: Added "cachyos-samba-settings" package to easily set up a Samba mount 55 | - **NVIDIA**: Re-enabled GSP Firmware for the closed source NVIDIA module 56 | - **Kernel**: Added support for the Asus Armoury driver 57 | - **Secure Boot**: Improved "sbctl-batch-sign" script to sign only wanted files 58 | - **udev**: Reverted using ntfs3 as the default driver for NTFS partitions 59 | - Info: Using the NTFS3 Kernel driver as default resulted in issues for some users. Therefore, we reverted it again. 60 | - **wine**: Wine and Wine-Staging defaulting now to WoW64 and NTSync 61 | - **scx-manager**: Moved out sched-ext GUI manager from Kernel Manager to its own application 62 | - **Hardware Support**: Added support for RDNA4, RTX 5070 Ti, and 5070. 63 | - **Settings**: Added DLSS Swapper Support - this is a script, which automatically updates and uses the latest dlss version and preset 64 | - **Package Updates**: linux-cachyos 6.14.0, NVIDIA 570.133.07, Gnome 48, Plasma 6.3.3, mesa 25.0.2, linux-api-headers 6.14.0, linux-tools 6.14.0 65 | 66 | **Fixes**: 67 | - **initcpiocfg**: Removed "crc32c-intel" module adding to mkinitcpio - This has been deprecated and now defaults to the "crc32c" module 68 | - **chwd**: T2 MacBook disable offloading the brcmfmac 69 | - **chwd**: Do not install NVIDIA 390.xx driver for laptops 70 | 71 | # 25.02 72 | 73 | **Features**: 74 | - **Kernel**: 75 | - Propeller Optimization is now applied to the default **linux-cachyos** kernel for all available architectures. 76 | - **Note**: In combination with AutoFDO, this can improve performance by around 10%, depending on the workload. 77 | - **NVIDIA**: Added support for the Blackwell Architecture. 78 | - **ISO**: Using the nvidia-open module as the default to provide Blackwell support. Users with GPUs older than Turing should use the first or fallback boot option. 79 | - **Settings**: Enabled tap-to-click for X11 sessions by default. 80 | - **udev**: Use ntfs3 as the default driver for NTFS partitions. 81 | - **game-performance**: Disabled the screensaver while running games. 82 | - **kernel-manager (sched-ext)**: Added support for server mode. 83 | - **kernel**: Added fixes for the AMD preferred core feature. 84 | - **chwd**: Re-added the workaround for RTD3. 85 | - **Package Updates**: linux-cachyos 6.13.0, NVIDIA 570.86.16, LLVM 19, glibc 2.41, mesa 24.3.4. 86 | 87 | **Fixes**: 88 | - **chwd**: Fixed an issue where hybrid laptops with Intel and NVIDIA hardware could not use their GPU in DaVinci Resolve. 89 | - **glibc**: Added a fix for CVE-2025-0395. 90 | - **kernel-manager**: Attempted to install the prebuilt NVIDIA module, if available for the default Arch kernel. 91 | - **kernel-manager**: Added an extra check to avoid overwriting the value in case a module is not available. 92 | 93 | **Changelog for Handheld Edition:** 94 | - **hooks**: Allowed the use of natively compiled Proton again. 95 | - **misc**: Several updates and fixes. 96 | 97 | # 24.12 98 | 99 | **Features**: 100 | - Kernel: 101 | - AutoFDO is now applied to the default `linux-cachyos` kernel for all available architectures 102 | - **Note**: Performance improvements are minimal for now due to current limitations. Merging profiles requires LLVM 19, and Propeller Optimization depends on it. We anticipate LLVM 19 and more optimized profiles to be available by the end of the year, following Arch Linux's adoption of LLVM 19 103 | - chwd: Rusticl is now configured correctly 104 | - chwd: improved error logging during hooks calls 105 | - chwd: fixed VAAPI drivers selection 106 | - cachyos-settings: Added a script to facilitate running applications via Zink 107 | - Sysctl Configuration: Reworked and optimized several settings 108 | - Kernel Manager: Added support for `scx_loader`, enabling native scheduler switching 109 | - Installer: Bluetooth service is now enabled by default 110 | - Netinstall: 111 | - Added `wireless-regdb` to the installed packages 112 | - This configures the connection to use appropriate channels and unlocks additional channels, potentially improving internet speed 113 | - **Note**: A generic region is set by default; customizing it to your region is recommended for optimal performance 114 | - **Package Updates**: NVIDIA 565.77, linux-cachyos 6.12.6, mesa 24.3.2, scx-scheds 1.0.8, zfs 2.2.7 115 | 116 | **Bug Fixes** 117 | - Installer: Installation logs no longer spawn debug terminal windows 118 | - Partition Management: 119 | - Proper `umask` settings ensure `/boot` is inaccessible without sufficient permissions 120 | - Launch Installer: Internet connectivity checks have been fixed 121 | 122 | **Changelog Handheld Edition:** 123 | - Updated handheld related packages 124 | - Fixed issue with the power profile handling 125 | - Added support for WiFi 6 126 | 127 | # 24.11 128 | 129 | **Features:** 130 | - NVIDIA: Rolled out 565 earlier due security issues in 560. NVIDIA does not release a fix for the current stable branch 131 | - thp-shrinker: Put max_ptes_none value to 80% for zero filled pages. This will reduce the memory usage for when THP always is used, while maintaining the same performance 132 | - NVIDIA: GSP Firmware gets now automatically disabled, if the users switches on their own to the closed driver 133 | - NVIDIA: nvidia-powerd services gets enabled for laptops, to reach the most available tdp 134 | - proton-cachyos: DLSS Frame Generation is now working. This is also expected to work in the future in the upstream proton 135 | - kernel: AMD Cache Optimizer is now applied. Users with dual x3d CCD's cpus can now switch between having frequency or cache cores preferred 136 | - kernel: amd-pstate: Backported amd-pstate performance fixes for Strix Point 137 | - kernel: Added upstream fixes for the tdp issues on amd rdna2 and rdna3 gpus 138 | - kernel: Added timing fixes for displays with 5120x1440x240 configuration 139 | - kernel: Experimental AutoFDO optimized kernel in the repository under "linux-cachyos-autofdo" 140 | - ISO: Added check, if user running handheld edition and warn then, if they are starting the installation on an unsupported device 141 | - ISO: Added check, if the user is using the latest ISO, if not warn them 142 | 143 | **Bug Fixes:** 144 | - refind: partitioning: changed from 3 way partiton layout to 2 way 145 | - netinstall: added kdeplasma-addons to the Plasma installation 146 | - calamares: Fixed a issue, while partitioning with a swap partition 147 | 148 | # 24.10 149 | 150 | **Features:** 151 | - Package Updates: linux-cachyos 6.11.1, mesa 24.2.4, scx-scheds 1.0.5, python 3.12.7 152 | 153 | **Bug Fixes:** 154 | - sddm: Pulled in newer sddm to fix wayland session logins 155 | - ISO: Added xf86-video-amdgpu to fix graphical session loading on some setups 156 | - chwd: Fixed reinstallation of profiles 157 | 158 | # 24.09 159 | 160 | **Features:** 161 | - Packages: Optimized a bunch of packages with PGO, like LLVM, Clang, svt-av1, and nodejs. This yielded, for example, a 10% faster Clang compiler 162 | - Repository: The repository is now synced and updated more frequently, meaning there will be even less delay. The sync interval has been decreased from every 3 hours to every hour. 163 | - Repository: Starting from 27.09.2024, packages compiled with -fpic will automatically enable -fno-semantic-interposition. This can provide a performance improvement for many packages. 164 | - zlib-ng: Is now used as a replacement for zlib 165 | - sddm: On the KDE Installation, sddm will now default to Wayland as the compositor. # Provide Migration changes in release post 166 | - cachyos-settings: NetworkManager now uses systemd-resolved as the backend, which helps with DNS caching 167 | - cachyos-settings: Use time.google.com as the timesync server to avoid issues with timesync on some setups 168 | - gcc: Added fixes for the tuning of znver5 169 | - gcc: Cherry-picked patches and flags from Clear Linux 170 | - glibc: Added "evex" patches as well as cherry-picks from Clear Linux 171 | - wiki: The Wiki received many new additions and reworks 172 | - chwd: Simplified device handling 173 | - chwd: All profiles are now specifically designed for PCI devices 174 | - chwd: Add --autoconfigure to automatically handle the driver installation 175 | - Package Updates: linux-cachyos 6.11.0, mesa 24.2.3, Plasma 6.1.5, NVIDIA 560.35.03, calamares 3.3.10, QT 6.7.3 176 | 177 | **Bug Fixes:** 178 | - Launch-Installer: Added fixes to sync the hardware clock before starting the installation 179 | - calamares: Added fix for unmounting the filesystem after installation 180 | - keyring: Clean up the keyring and recreate it before starting installation; this fixes rare keyring issues 181 | - sysctl: Core dumps have been enabled again 182 | - chwd: Removed `libva-nvidia-driver` from the PRIME profile to prevent potential conflicts and improve compatibility with software like Spectacle 183 | - cachyos-settings: Added workaround for GNOME Wayland crashes 184 | - cachyos-fish/zsh-config: Dropped wayland specific quirks 185 | 186 | **Changelog for Handheld Edition:** 187 | - Ally/Ally X: HHD got replaced with inputplumber, since hhd does not use the kernel driver for it correctly, which results in issues. 188 | - Handheld related packages updated 189 | 190 | # 24.08 191 | 192 | **Features:** 193 | - chwd: NVIDIA now uses the open module as default for supported cards 194 | - Desktop: Added Cosmic Desktop Environment to the installation options 195 | - NVIDIA: Latest 560 Beta driver is now the default; egl-wayland patched to fix crashes in Firefox and other applications 196 | - mirrors: CDN77 sponsored CachyOS with Object Storage featuring a worldwide cache, significantly improving connection speeds for users 197 | - mirrors: CachyOS now provides its own Arch Linux mirror to avoid syncing issues, set as default during installation along with fallback mirrors 198 | - SecureBoot: Introduced script and tutorial in the Wiki for easy Secure Boot support 199 | - cachy-chroot: Added auto-mount via fstab for simplified chrooting 200 | - cachy-chroot: Implemented support for LUKS Encryption 201 | - kernel-manager: Added support for setting sched-ext flags in the sched-ext configuration 202 | - kernel-manager: Introduced option to build nvidia-open 203 | - kernel-manager: Added option to remember last used options in configure page 204 | - Package Updates: linux-cachyos 6.10.5, mesa 24.2.0, Plasma 6.1.4, NVIDIA 560.31.02 205 | 206 | **Bug Fixes:** 207 | - chwd: Improved PRIME profile detection based on device name 208 | - chwd: Removed RTD3 workaround due to issues on some setups 209 | - cachyos-rate-mirrors: Disabled mirror ranking when running on Live ISO 210 | - cachy-chroot: Fixes a crash when a partition didn't have a valid fstype or uuid (eg Microsoft Recovery Partition) 211 | - calamares: Refactored keyring initialization 212 | - kernel-manager: Fixed support for building custom pkgbase with LTO kernels and modules enabled 213 | - kernel-manager: Fixed password prompt delay 214 | - ISO: Replaced radeon.modeset=1 with amdgpu.modeset=1 for modern GPUs 215 | - game-performance: Prevented failure when profile is unavailable 216 | 217 | **Changelog for Handheld Edition:** 218 | - device support: Added support for Ally X, thanks to Luke Jones 219 | - libei: Implemented support for libei, replacing libextest 220 | - packagekit: Blocked packagekit installation to prevent issues with system updates via Discover 221 | - hook: Added pacman-hook to conflict with natively compiled Proton versions, avoiding potential issues 222 | - Updated jupiter-fan-control, steamdeck-dsp, and Steam Deck firmware 223 | 224 | # 24.07 225 | 226 | **Features:** 227 | - Repository: Introduce Zen 4 optimized repository, this will be used for Zen4 and Zen5 CPU's 228 | - ISO: Add automatic architecture check for Zen4/Zen5 repository 229 | - chwd: Added GC support for AMD GPU's, this helps for detecting official ROCm supported GPUs 230 | - chwd: Use libva-nvidia-driver on supported cards 231 | - ksmctl: Introduce tool to enable/disable KSM: ksmctl --enable 232 | - kernel: For the "linux-cachyos" kernel is now a "linux-cachyos-dbg" package available, this contains an unstripped vmlinux for debugging purposes 233 | - kernel: amd cpb boost is now available and the power-profiles-daemon is patched, if the "powersave" profile is set, it will disable the boost on amd cpus 234 | - kernel: Added power saving patch for AMD SoCs for video playback 235 | - kernel-manager: Added support for managing sched-ext schedulers and getting information via GUI 236 | - steam/proton: There is now a "game-performance" script, which can be added to steam's launch options 237 | - power-profiles: On AMD Pstate supported CPUs the lowest Linear frequency is now set higher, this can improve latency and 1% lows 238 | - kwin: Added back-port for tearing, this has been tested. On NVIDIA it only works on native wayland applications 239 | - netinstall: Cutefish has been dropped as installable Desktop Environment 240 | - Mirrors: Added Austria and China Mirror, the China Mirror is hosted by the TUNA University. This should help a lot of users from china 241 | - Package Updates: linux-cachyos 6.9.9, mesa 24.1.3, NVIDIA 555.58.02, Plasma 6.1.2, LLVM 18.1.8 242 | 243 | **Bug Fixes:** 244 | - ISO: Set copytoram to auto instead of yes 245 | - ISO: Fixed Sleep on Live ISO for Laptops 246 | - Launch Installer: Install the latest archlinux-keyring, before the installation starts to avoid issues, when fetching the archlinux-keyring in the chroot 247 | - Mirrors Ranking: Rank only Tier 1 Mirror's at installation time 248 | - pacman.conf: Remove not used pacman repository 249 | - cachy-chroot: Do not show .snapshot subvolumes 250 | - Calamares: Do not use "Preservefiles" module, since user a reporting issues with it. 251 | 252 | **Changelog for Handheld Edition:** 253 | - Added configuration file to apply different scaling, '/home/$USER/.config/deckscale 254 | - Make GameMode switching more robust 255 | - Updated Wifi/Bluetooth Firmware for Steam Deck 256 | - Implemented Auto Mount for GameMode 257 | - Added gamescope-session quirks for Wine CPU Topology, HDR, and Backlight 258 | - Fixed Refresh Rate Selection 259 | - Updated jupiter-hw-support, steamdeck-dsp, jupiter-fan-control, gamescope-session-git 260 | 261 | # 24.06 262 | 263 | **Features:** 264 | - chwd: Introduce handheld hardware detection 265 | - chwd: Introduce T2 MacBook support 266 | - chwd: Add network driver detection 267 | - Installation: Added MacBook T2 support 268 | - ISO: Add cachy-chroot. This is a script that helps the user to chroot into the system. 269 | - ISO: Switch to Microcode Hooks; this requires using the latest Ventoy release (1.0.98) 270 | - ISO: Enable copytoram; this no longer needs to be disabled because we don't provide the offline installation anymore 271 | - filesystem: BTRFS is now the default selected file system 272 | - netinstall: Use ufw instead of firewalld 273 | - Slides: Updated for latest changes 274 | - Package Updates: linux-cachyos 6.9.3, mesa 24.1.1, xwayland 24.1, NVIDIA 555.52.04, Plasma 6.0.5 275 | 276 | **Bug Fixes:** 277 | - Calamares: umount: Enable emergency again 278 | - Qtile: Multimedia Controls are now working correctly 279 | - NVIDIA: Enable required services and options for working sleep on Wayland 280 | - netinstall: Remove b43-fwcutter from installation 281 | - netinstall: Replace hyprland-git with hyprland 282 | - netinstall: Drop linux-cachyos-lts from selection to avoid issues with missing modules 283 | - Calamares: Shellprocess: Move mirror ranking before installing keyring 284 | 285 | **Changelog from Experimental Handheld Release:** 286 | - Default to KDE Vapor Theme (SteamOS Theme) 287 | - Default file system: BTRFS 288 | - Default kernel: linux-cachyos-deckify 289 | - SDDM now uses Wayland 290 | - Environment Flag for HHD to reduce latency 291 | - Added Kernel Arguments to improve Game Mode Switching behavior 292 | - The username can now be edited 293 | - Hardware Detection configures and installs required packages depending on the device used 294 | - Mallit Keyboard now uses Dark Mode 295 | - Valve's Powerbuttond for proper sleeping 296 | - Shortcuts can now be added to Steam 297 | - Updated scx-scheds to latest git commit, providing the latest enhancements for the LAVD Scheduler 298 | - Added automount to cachyos-handheld 299 | - CachyOS can now perform Steam Deck BIOS updates on the Steam Deck 300 | 301 | # 24.05 302 | 303 | **Features:** 304 | - Filesystems: Introduce Bcachefs as a filesystem option 305 | - pacstrap: Add detection if Bcachefs is used and install corresponding Bcachefs-tools 306 | - CachyOS-AI-SDK: Introduce new install option to provide a OOB NVIDIA SDK Setup 307 | - CachyOS-Deckify: Provide variant for Handhelds (experimental), see [here](https://discuss.cachyos.org/t/information-experimental-cachyos-deckify/203) for more details 308 | - BTRFS: Automatic Snapper for snapshots, can be installed from within the CachyOS hello app. 309 | - ISO: Drop Offline Installer 310 | - Package Updates: Python 3.12, gcc 14.1.1, mesa 24.0.6, xwayland 24.1rc2 , NVIDIA 550.78 311 | 312 | **Bug-Fixes:** 313 | - settings.conf: Move hardware detection before netinstall 314 | - pacstrap: Use btrfs-assistant instead of btrfs-assistant-git 315 | - plymouth: remove plymouth hook on zfs + encryption 316 | - ISO: Add various config files for KDE, to avoid getting screen locking during installation 317 | - services-systemd: Properly enable fstrim.timer 318 | - umount: Disable emergency to avoid issues with the zfs installation 319 | - shellprocess: Cleanup leftovers from the offline installation 320 | 321 | # 24.04 322 | 323 | **Features:** 324 | - plymouth: Use plymouth and provide a themed boot animation 325 | - ISO: Switch back to X11 due to issues when setting the keyboard layout in calamares 326 | - Refind: New portioning layout 327 | - netinstall: KDE: Install xwaylandvideobridge as default 328 | - netinstall: Use lightdm instead of ly at various Desktop Environments, due to a bug in ly 329 | - systemd-boot: Use @saved for systemd-boot to boot all time in the previous booted kernel 330 | - cachyos-keyring: Refactor cachyos-keyring package and provide a cachyos-trusted 331 | - ISO: Use ZSTD 19 Compression for mkinitcpio image for ISO 332 | - Package Updates: linux-cachyos 6.8.2, pacman 6.1.0-5, mesa 24.0.4, Plasma 6.0.3, nvidia 550.67, cachyos-settings 39-2 333 | 334 | **Bug-Fixes:** 335 | - Autologin: Fix the autologin option when used together with sddm 336 | - xz: Provide a patched xz package 337 | - cachyos-settings: udev-rule don't set watermark_scale_factor to 125, since it increases the RAM usage massively 338 | - calamares: pacman-keyring use more simply method to integrate the keyring into the installation 339 | 340 | # 24.03.1 341 | 342 | **Features:** 343 | - netinstall: Remove extra kernels in the netinstall selection to avoid confusion by users. Other custom kernels can be installed via Kernel Manager 344 | - Kernel Manager: NVIDIA Modules are automatically installed when detected, Rebased for QT6, Fixed custom names when using LTO Option 345 | - Package Installer: Rebased on QT6, updated for pacman 6.1 346 | - Package Updates: linux-cachyos 6.8.1, pacman 6.1, mesa 24.0.3, Plasma 6.0.2, llvm 17.0.6 347 | 348 | **Bug-Fixes:** 349 | - NVIDIA: patched nvidia module to take the owner ship of nvidia.drm.modeset earlier to avoid issues on nvidia graphics 350 | - Refind: Don't install the lts kernel to avoid issues 351 | - shellprocess: Remove the liveusers directory completly 352 | 353 | 354 | # 24.03 355 | 356 | **Features:** 357 | - ISO: Plasma 6 is now shipped in the ISO and uses Wayland as default, GNOME ISO got dropped to avoid confusion about netinstall 358 | - Calamares: Rebased for QT6 359 | - refind: Add f2fs and zfs as option including luks2 encryption 360 | - mirrors: We provide now 2 global CDNs. One hosted by Cloudflare R2 and one hosted by Digital Ocean 361 | - mirrorlist: Fetch the online installer directly from cdn to provide a faster delivery 362 | - initcpiocfg: Use the new microcode hook for early loading the ucode 363 | - bootloader: Dont load the microcode with the bootloader anymore 364 | - Package Updates: linux-cachyos 6.7.9, mesa 24.0.2, zfs-utils 2.2.3 365 | 366 | **Bug-Fixes:** 367 | - pacstrap: Do not install config packages to provide the user a more clean selection of the installation 368 | - shellprocess_pacman: Also copy the ranked cachyos-v4-mirrorlists to the target 369 | 370 | 371 | # 24.02 372 | 373 | **Features:** 374 | - refind: Change layout from /boot/efi to /boot to provide more options of filesystems and encryption 375 | - Live-ISO: Cleanup and Sync the Live-ISO 376 | - Launch Installer: Add recommendation for the online installation 377 | - shell-configs: Add option to disable fastfetch when starting the terminal and add an "update" alias 378 | - netinstall: Add phonon-qt5-vlc to kde 379 | - Package Updates: linux-cachyos 6.7.5, mesa 23.3.5, gcc 13.2.1-12, glibc 2.39, mesa 24.0.1, nvidia 550.54.14 380 | 381 | # 23.12 382 | 383 | **Bug-fixes:** 384 | - zfs: Add compatibility=grub to the pool options to ensure the compatibility 385 | - grub/xfs: Add a patch to grub to have compatibility with the new xfs bigtime default 386 | - netinstall: xdg-desktop-portal-hyprland instead of xdg-desktop-portal-hyprland-git 387 | 388 | # 23.11 389 | 390 | **Features:** 391 | - nvidia: Use nvidia module instead of dkms 392 | - Calamares synced with upstream 393 | - Package updates: linux-cachyos 6.6.1, nvidia-utils 545.29.02, mesa 23.2.1, zfs-utils 2.2.0, mkinitcpio 37 394 | 395 | **Bug-fixes:** 396 | - nvidia-hook: Added nvidia-hook back to avoid issues at installation time with the new module 397 | - netinstall: Packages got renamed due the recent changes at the KF5 packaging 398 | - netinstall: xdg-desktop-portal-gnome got added to the GNOME Installation 399 | 400 | # 23.09 401 | 402 | **Features:** 403 | - systemd-boot: Default to luks2 404 | - netinstall: Provide a own category for CachyOS Packages 405 | - Calamares synced with upstream 406 | - Package updates: linux-cachyos 6.5.3, nvidia-utils 535.104.05, mesa 23.2.7 407 | 408 | **Bug-fixes:** 409 | - shellprocess_sdboot: Avoid using "sudo", when generating the boot entries at the installation process 410 | 411 | # 23.08 412 | 413 | **Features:** 414 | - Calamares synced with upstream 415 | - Package updates: linux-cachyos 6.4.10, nvidia-utils 535.98 416 | 417 | **Bug-fixes:** 418 | - Keyring got updated and works now correctly 419 | 420 | 421 | # 23.07 422 | 423 | **Features:** 424 | - CachyOS-Settings includes now "bpftune", which automatically tweaks the network settings depending on the usage 425 | - CachyOS-Qtile-Settings: Quality of Life changes, better icons, ... 426 | - Package updates: linux-cachyos 6.4.2, cachy-browser 115.0.1, mesa 23.1.3, 427 | 428 | **Bug-fixes:** 429 | - rate-mirrors got fixed 430 | - chwd (Hardware Detection) got multiple fixes 431 | - fixed installation of nonfree drivers for hybrid setup in the installer 432 | - fixed Calamares freezes, which happened in some rare configurations, mainly VM 433 | - Slides: Slide 6 typo fix 434 | 435 | # 23.06 436 | 437 | **Bug-fixes:** 438 | - Offline Installation: Fix calamares 439 | 440 | # 23.05 441 | 442 | **Features:** 443 | - CachyOS Git Migration layout is now reflected in the installation 444 | - chwd (mhwd) got multiple fixes 445 | - Pacman: We added a feature, which makes it possible to provide a message to our users before updating 446 | - Calamares got synced with upstream 447 | - Package updates: linux-cachyos 6.3.4, cachy-browser 113.0.1, mesa 23.1.1, python 3.11 448 | 449 | **Bug-fixes:** 450 | - netinstall: minimal fixes due package changes 451 | - Slides: Slide 6 got updated to reflect the lastest changes 452 | 453 | # 23.04 454 | 455 | **Features:** 456 | 457 | - Introduce the Qtile desktop enviroment 458 | - Reworked mhwd: Rust rewrite; Simplified profiles for GPUs and network cards; Removed bunch of ancient code 459 | - Package updates: linux-cachyos 6.2.12, cachy-browser 112.0.1, mesa 23.0.3, zfs-utils 2.1.11 460 | 461 | **Bug-fixes:** 462 | 463 | - f2fs: Remove "atgc" mount options since it has issues with systemd 464 | 465 | # 23.03.1 466 | 467 | **Features:** 468 | 469 | - Package updates: linux-cachyos 6.2.7, cachy-browser 111.0 470 | 471 | **Bug-fixes:** 472 | 473 | - Calamares got fixed with the lightdm displaymanager due faulty calamares upstream commits 474 | - Offline installation keyring issue got fixed 475 | - Refind: Use linux-cachyos-lts as defaullt. Current 6.2 seems not to work well together with refind 476 | 477 | 478 | # 23.03 479 | 480 | **New Features:** 481 | 482 | - Added the refind bootloader 483 | - Automatic Nvidia driver installation using MHWD 484 | - Encryption support for ZFS installation 485 | - Added Hyprland to netinstallation 486 | - CachyOS-KDE-Settings now uses the KDE default theme, but the CachyOS Themes are still preinstalled and available for use 487 | - Package updates: linux-cachyos 6.2.2, mesa 23.0.0, cachy-browser 110.0.1, plasma 5.27.2 488 | - Fully reworked and improved the bootloader calamares module 489 | - The ISO gets now signed with a GPG key 490 | - MHWD got improved and updated 491 | - Synced Calamares with upstream 492 | 493 | **Bug-fixes:** 494 | 495 | - The "replace partition" option now offers a filesystem selection 496 | - Fixed a typo in slide 3 497 | - nouveau got fixed and does now proper load the module 498 | - MHWD: Use modesetting for INTEL/ATI and Nouveau 499 | - Removed the zfs hook from mkinitcpio on the live iso, which caused issues when booting 500 | - You can download the update from our mirrors on SourceForge. 501 | 502 | # 23.02 503 | **New Features:** 504 | 505 | - The cachyos-community-v3 repo has been added 506 | - Budgie, Mate, and LXDE desktop environments have been added to the Netinstallation 507 | - Bluetooth.service is now enabled by default 508 | - F2FS and grub are enabled and working again 509 | - Package Updates: linux-cachyos 6.1.10, mesa 22.3.4, zfs-utils 2.1.9, glibc 2.37, cachy-browser 109.0.1 510 | 511 | **Bug-fixes:** 512 | 513 | - Rate-mirrors now fall back to unranked mirrors if it fails to rate them 514 | - cachyos-rate-mirrors has a longer fetch-mirrors-timeout 515 | - Github has been added to the hosts to avoid mirrorlist issues 516 | - Boot entries for BIOS have been updated in syslinux 517 | 518 | 519 | # 23.01 520 | 521 | **Features:** 522 | 523 | - Calamares Slides got reworked and updated 524 | - UKUI Desktop Enviroment got added to the Netinstallation 525 | - Cinnamon Desktop Enviroment got added to the Netinstallation 526 | - Cmdline: zswap is now disabled as default because CachyOS provides zram as default 527 | - Calamares updated to the latest commit 528 | - LLVM 15 is now shipped as default 529 | - Package Updates: linux-cachyos 6.1.7, mesa 22.3.3, Plasma 5.26.5, llvm 15.0.7, gcc 12.1.1, binutils 2.40, zfs-utils 2.1.8, nvidia 525.85.05 530 | - CLI Installer got updated 531 | 532 | **Bug-fixes:** 533 | 534 | - remove-ucode shellprocess does also run now at the offline installation 535 | - pamac got removed from the netinstall 536 | - The ranked cachyos mirrors gets now correctly copied to the install target 537 | - power-profile-daemon don't gets enabled anymore as default 538 | 539 | 540 | # 22.12 541 | 542 | **Features:** 543 | 544 | - New GRUB background at the ISO bootloader 545 | - memtest is now included for UEFI Systems 546 | - CachyOS-sddm-theme got added to the KDE Installation 547 | - Automatic version script added when creating the ISO 548 | - Calamares updated to the latest commit 549 | - The mirrors are now ranked with "cachyos-rate-mirros", which ranks our mirrors and the arch ones 550 | - Packages Update: 6.1.1 Kernel, mesa 22.3.1, plasma 5.26.4,... 551 | - The Kofuku Desktop Enviroment got removed 552 | - extra ISO with llvm 15 included to provide support for newer AMD Cards 553 | 554 | 555 | **Bug-fixes:** 556 | 557 | - Calamares got fixed when using GNOME as ISO 558 | - zfshostid does now work proper for the offline and online installation 559 | - Add "kms" hook to the initcpiocfg module to follow archlinux defaults 560 | - And more ISO fixes 561 | 562 | 563 | # 22.11 564 | 565 | **Features:** 566 | 567 | - Calamares and its config are shipped in one package 568 | - Complete Cleanup of the packages in the netinstall 569 | - Add a module which automatically removes the not needed ucode 570 | - required RAM decreased to 2.5GB 571 | - Packages which are required for btrfs, are now only installed for btrfs 572 | - Calamares updated to the latest commit 573 | - The ISO Bootloader has now a background 574 | - Common package upgrades (mesa, kernel, ...) 575 | - Replace systemd-network with networkmanager 576 | 577 | 578 | **Bug-fixes:** 579 | 580 | - qemu-quest-agent.service got removed from the ISO 581 | - copytoram got completly disabled, it breaks the offline installation 582 | - mkinitcpio.conf got updated 583 | - And more ISO fixes 584 | 585 | 586 | # 22.10 587 | 588 | **Features:** 589 | 590 | - Pacman uses now Architecture=auto for x86-64-v3 installation, since we added a patch that pacman does autodetect x86-64-v3 591 | - Pacman does show now, from which repo a package was installed 592 | - Bootloader selection auto detect if EFI is present, if not it will default to grub 593 | - Swap choice has been disabled now as default, since zram gets automatically dynamically generated 594 | - Calamares updated to the latest commit 595 | - Minimum RAM requirement has been set to 4GB 596 | - cachyos-grub-theme got removed 597 | 598 | **Bug-fixes:** 599 | 600 | - SSD and hdd fstab detection has been disabled until there is a upstream fix 601 | - double BTRFS subvolume has been fixed 602 | - Added missing microcode to the ISO grub bootloader 603 | - Added a fallback bootmode, which does not set any modeset (nomodeset) 604 | - And more ISO fixes 605 | 606 | 607 | # 22.09 608 | 609 | **Features:** 610 | 611 | - Calamares is now on the latest 3.3 branch. Its brings bugfixes and new features to calamares 612 | - TUI-Installer is now included in the GUI ISO, you can use it with "cachyos-installer" 613 | - Calamares does now auto detect, if the target filesystem is a ssd or hdd and adjust to it the fstab options 614 | - Nvidia for latest gpu's (starting at 9xx) has now a own boot entry, to avoid issues with nouveau 615 | - fstab and zfs mount options got updated 616 | - FireFox won't be installed as default anymore since cachy-browser is installed as default 617 | 618 | **Bug-fixes:** 619 | 620 | - cachyos-gaming-meta has been removed from the netinstall module to avoid issues at the installation process 621 | - netinstall packages has been updated and got some fixes 622 | - OpenBox installation has been fixed 623 | - usual translation fixes 624 | 625 | 626 | # 22.07 627 | 628 | **Features:** 629 | 630 | - Boot-loader selection: User can now choose on the online installation between grub and systemd-boot 631 | - At online installation will now always the newest calamares installed, which helps to do bug fixes on the "air" 632 | - Calamares has now a mhwd module which automatically installs the needed drivers (free drivers) 633 | - Calamares has new picture slides at the installation 634 | - fstab and zfs mount options got updated 635 | - HiDPI support 636 | 637 | **Bug-fixes:** 638 | 639 | - The locales bug in calamares got fixed 640 | - F2FS has been removed for the grub boot loader since it is currently not working (calamares issue), it can be still with systemd-boot used 641 | - Calamares shows now the correct default filesystem 642 | - Gnome ISO got fixed 643 | - Missing packages at the live ISO has been added for the offline installation 644 | - btrfs swap luksencryption got fixed 645 | - usual translation fixes 646 | 647 | # 22.06 648 | 649 | Following known bugs has been fixed: 650 | 651 | - Install failed when a generic CPU was used 652 | - KDE did automatically mount zfs paritions which resulted that the auto login into the ISO did not worked anymore 653 | 654 | **Improvements:** 655 | 656 | - The firewall from the server has been corrected, cloudflare did blocked users as "bots", which resulted then into a error at installing 657 | - Added theming support for Gnome, XFCE, OpenBox 658 | - Updated our wiki 659 | 660 | **_CachyOS - Kernel - Manager_** 661 | Also we are excited to announce our CachyOS-Kernel-Manager. 662 | Their you have the possibility to install the kernel from the repo and also configure with a GUI your own kernel build which makes is very easy to customize it to his own suits. 663 | 664 | Following options you can select for a kernel compile: 665 | 666 | - Scheduler (BMQ, BORE, cacULE, cfs, PDS, TT) 667 | - NUMA disabled or enabled 668 | - KBUILD CFLAGS (-O3 or -O2) 669 | - Set performance governor as default 670 | - Enable BBR2 671 | - Tickrate (500Hz, 600Hz, 750Hz, 1000Hz) 672 | - tickless (idle, perodic, full) 673 | - disable MQ-Deadline I/O Scheduler 674 | - disable Kyber I/O Scheduler 675 | - Enable or disable MG-LRU 676 | - Enable or disable DAMON 677 | - Enable or disable Speculative page fault 678 | - Enable or disable LRNG (Linux Random Number Generator) 679 | - Apply Kernel automatic Optimization (Does automatically detect your CPU March) 680 | - Apply Kernel Optimization slecting (You will see a list of different CPU-Marches and can select with a number yours) 681 | - Disable debug (it lowers the size of the kernel) 682 | - Enable or disable nf cone 683 | - Enable LTO (Full, Thin, No) 684 | 685 | 686 | # 22.05 687 | 688 | CachyOS was founded a year ago. After almost one year of development, we are really proud to announce our first Stable Release of GUI Installer. 689 | We spent a lot of time investigating repo management, kernel development, infrastructure, theming, ... and finally put them all into the CachyOS GUI Installer. 690 | All the features we worked on and implemented into the Installer are just trying to offer users a completely customizable experience. 691 | 692 | The most exciting changes are that we use now for the online install pacstrap which provide then a complete clear installed environment and we do support a complete native support for the zfs filesystem 693 | 694 | Since Discord restrict the length of the messages the full announcement can be found here: 695 | 696 | https://forum.cachyos.org/d/34-cachyos-gui-installer-stable-release 697 | 698 | Download can be found here: 699 | https://mirror.cachyos.org/ISO/kde/220522/ 700 | https://sourceforge.net/projects/cachyos-arch/ 701 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | These are the basic needed files and folders to build CachyOS system. 2 | 3 | ### buildiso 4 | 5 | buildiso is used to build CachyOS ISO. 6 | 7 | #### Arguments 8 | 9 | ~~~ 10 | $ ./buildiso.sh -h 11 | Usage: buildiso [options] 12 | -c Disable clean work dir 13 | -h This help 14 | -p Buildset or profile [default: desktop] 15 | -v Verbose output to log file, show profile detail (-q) 16 | ~~~ 17 | 18 | * Uses the same signature that normal repo and has no mirrors package to install. 19 | 20 | ```bash 21 | sudo pacman -Syy 22 | ``` 23 | 24 | ### Install necessary packages: 25 | ```bash 26 | sudo pacman -S archiso mkinitcpio-archiso git squashfs-tools grub --needed 27 | ``` 28 | 29 | ### Clone: 30 | ```bash 31 | git clone https://github.com/cachyos/cachyos-live-iso.git cachyos-archiso 32 | cd cachyos-archiso 33 | ``` 34 | 35 | ### Build 36 | ```bash 37 | sudo ./buildiso.sh -p desktop -v 38 | ``` 39 | 40 | As the result iso appears at the `out` folder 41 | -------------------------------------------------------------------------------- /archiso/airootfs/etc/cachyos-release: -------------------------------------------------------------------------------- 1 | LSB_VERSION=2.0 2 | DISTRIB_ID=CachyOS 3 | DISTRIB_RELEASE=rolling 4 | DISTRIB_DESCRIPTION="CachyOS Linux" 5 | -------------------------------------------------------------------------------- /archiso/airootfs/etc/group: -------------------------------------------------------------------------------- 1 | root:x:0:root 2 | sys:x:3:bin,liveuser 3 | network:x:90:liveuser 4 | power:x:98:liveuser 5 | adm:x:999:liveuser 6 | wheel:x:998:liveuser 7 | uucp:x:987:liveuser 8 | optical:x:990:liveuser 9 | rfkill:x:983:liveuser 10 | video:x:986:liveuser 11 | storage:x:988:liveuser 12 | audio:x:995:liveuser 13 | users:x:985:liveuser 14 | nopasswdlogin:x:966:liveuser 15 | autologin:x:967:liveuser 16 | liveuser:x:1000: -------------------------------------------------------------------------------- /archiso/airootfs/etc/gshadow: -------------------------------------------------------------------------------- 1 | root:::root 2 | sys:!!::liveuser 3 | network:!!::liveuser 4 | power:!!::liveuser 5 | adm:!!::liveuser 6 | wheel:!!::liveuser 7 | uucp:!!::liveuser 8 | optical:!!::liveuser 9 | rfkill:!!::liveuser 10 | video:!!::liveuser 11 | storage:!!::liveuser 12 | audio:!!::liveuser 13 | users:!!::liveuser 14 | nopasswdlogin:!::liveuser 15 | autologin:!::liveuser 16 | liveuser:!:: 17 | -------------------------------------------------------------------------------- /archiso/airootfs/etc/hostname: -------------------------------------------------------------------------------- 1 | CachyOS 2 | -------------------------------------------------------------------------------- /archiso/airootfs/etc/hosts: -------------------------------------------------------------------------------- 1 | 185.199.108.133 raw.githubusercontent.com 2 | -------------------------------------------------------------------------------- /archiso/airootfs/etc/locale.conf: -------------------------------------------------------------------------------- 1 | LANG=C.UTF-8 2 | -------------------------------------------------------------------------------- /archiso/airootfs/etc/localtime: -------------------------------------------------------------------------------- 1 | /usr/share/zoneinfo/UTC -------------------------------------------------------------------------------- /archiso/airootfs/etc/mkinitcpio.conf.d/archiso.conf: -------------------------------------------------------------------------------- 1 | HOOKS=(base udev microcode modconf kms memdisk archiso archiso_loop_mnt archiso_pxe_common archiso_pxe_nbd archiso_pxe_http archiso_pxe_nfs block filesystems keyboard) 2 | COMPRESSION="xz" 3 | -------------------------------------------------------------------------------- /archiso/airootfs/etc/mkinitcpio.d/linux.preset: -------------------------------------------------------------------------------- 1 | # mkinitcpio preset file for the 'linux' package on archiso 2 | 3 | PRESETS=('archiso') 4 | 5 | ALL_kver='/boot/vmlinuz-linux-cachyos' 6 | archiso_config='/etc/mkinitcpio.conf.d/archiso.conf' 7 | 8 | archiso_image="/boot/initramfs-linux-cachyos.img" 9 | -------------------------------------------------------------------------------- /archiso/airootfs/etc/modprobe.d/broadcom-wl.conf: -------------------------------------------------------------------------------- 1 | # The broadcom-wl package requires some modules to be disabled in order to use 2 | # wl. Since the ISO image needs to cover many hardware cases, this file 3 | # overrides the default blacklist in /usr/lib/modprobe.d/ 4 | # 5 | # If you need to use wl, you may need to delete this file, then `rmmod` any 6 | # already-loaded modules that are now blacklisted before proceeding to modprobe 7 | # wl itself. 8 | -------------------------------------------------------------------------------- /archiso/airootfs/etc/modprobe.d/nvidia-loader.conf: -------------------------------------------------------------------------------- 1 | # Forwards all NVIDIA module load requests to a "smart" loader that selects 2 | # correct version of the module depending on used hardware. 3 | install nvidia /usr/local/bin/nvidia-module-loader 4 | install nvidia_drm /usr/local/bin/nvidia-module-loader 5 | install nvidia_uvm /usr/local/bin/nvidia-module-loader 6 | install nvidia_modeset /usr/local/bin/nvidia-module-loader 7 | -------------------------------------------------------------------------------- /archiso/airootfs/etc/modules-load.d/zfs.conf: -------------------------------------------------------------------------------- 1 | zfs 2 | -------------------------------------------------------------------------------- /archiso/airootfs/etc/os-release: -------------------------------------------------------------------------------- 1 | NAME="CachyOS" 2 | PRETTY_NAME="CachyOS" 3 | ID=arch 4 | BUILD_ID=rolling 5 | ANSI_COLOR="38;2;23;147;209" 6 | HOME_URL="https://cachyos.org" 7 | DOCUMENTATION_URL="https://wiki.cachyos.org/" 8 | SUPPORT_URL="https://discuss.cachyos.org" 9 | BUG_REPORT_URL="https://github.com/cachyos" 10 | LOGO=cachyos 11 | -------------------------------------------------------------------------------- /archiso/airootfs/etc/pacman-more.conf: -------------------------------------------------------------------------------- 1 | # 2 | # /etc/pacman.conf 3 | # 4 | # See the pacman.conf(5) manpage for option and repository directives 5 | 6 | # 7 | # GENERAL OPTIONS 8 | # 9 | [options] 10 | # The following paths are commented out with their default values listed. 11 | # If you wish to use different paths, uncomment and update the paths. 12 | #RootDir = / 13 | #DBPath = /var/lib/pacman/ 14 | #CacheDir = /var/cache/pacman/pkg/ 15 | #LogFile = /var/log/pacman.log 16 | #GPGDir = /etc/pacman.d/gnupg/ 17 | #HookDir = /etc/pacman.d/hooks/ 18 | HoldPkg = pacman glibc 19 | #XferCommand = /usr/bin/curl -L -C - -f -o %o %u 20 | #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u 21 | #CleanMethod = KeepInstalled 22 | #UseDelta = 0.7 23 | Architecture = auto 24 | 25 | # Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup 26 | #IgnorePkg = 27 | #IgnoreGroup = 28 | 29 | #NoUpgrade = 30 | #NoExtract = 31 | 32 | # Misc options 33 | #UseSyslog 34 | Color 35 | ILoveCandy 36 | #NoProgressBar 37 | #CheckSpace 38 | VerbosePkgLists 39 | DisableDownloadTimeout 40 | ParallelDownloads = 10 41 | DownloadUser = alpm 42 | #DisableSandbox 43 | 44 | # By default, pacman accepts packages signed by keys that its local keyring 45 | # trusts (see pacman-key and its man page), as well as unsigned packages. 46 | SigLevel = Required DatabaseOptional 47 | LocalFileSigLevel = Optional 48 | #RemoteFileSigLevel = Required 49 | 50 | # NOTE: You must run `pacman-key --init` before first using pacman; the local 51 | # keyring can then be populated with the keys of all official Arch Linux 52 | # packagers with `pacman-key --populate archlinux`. 53 | 54 | # 55 | # REPOSITORIES 56 | # - can be defined here or included from another file 57 | # - pacman will search repositories in the order defined here 58 | # - local/custom mirrors can be added here or in separate files 59 | # - repositories listed first will take precedence when packages 60 | # have identical names, regardless of version number 61 | # - URLs will have $repo replaced by the name of the current repo 62 | # - URLs will have $arch replaced by the name of the architecture 63 | # 64 | # Repository entries are of the format: 65 | # [repo-name] 66 | # Server = ServerName 67 | # Include = IncludePath 68 | # 69 | # The header [repo-name] is crucial - it must be present and 70 | # uncommented to enable the repo. 71 | # 72 | 73 | # cachyos repos 74 | 75 | #[cachyos-znver4] 76 | #Include = /etc/pacman.d/cachyos-v4-mirrorlist 77 | 78 | #[cachyos-core-znver4] 79 | #Include = /etc/pacman.d/cachyos-v4-mirrorlist 80 | 81 | #[cachyos-extra-znver4] 82 | #Include = /etc/pacman.d/cachyos-v4-mirrorlist 83 | 84 | #[cachyos-v4] 85 | #Include = /etc/pacman.d/cachyos-v4-mirrorlist 86 | 87 | #[cachyos-core-v4] 88 | #Include = /etc/pacman.d/cachyos-v4-mirrorlist 89 | 90 | #[cachyos-extra-v4] 91 | #Include = /etc/pacman.d/cachyos-v4-mirrorlist 92 | 93 | #[cachyos-v3] 94 | #Include = /etc/pacman.d/cachyos-v3-mirrorlist 95 | 96 | #[cachyos-core-v3] 97 | #Include = /etc/pacman.d/cachyos-v3-mirrorlist 98 | 99 | #[cachyos-extra-v3] 100 | #Include = /etc/pacman.d/cachyos-v3-mirrorlist 101 | 102 | [cachyos] 103 | Include = /etc/pacman.d/cachyos-mirrorlist 104 | 105 | # The testing repositories are disabled by default. To enable, uncomment the 106 | # repo name header and Include lines. You can add preferred servers immediately 107 | # after the header, and they will be used before the default mirrors. 108 | 109 | #[core-testing] 110 | #Include = /etc/pacman.d/mirrorlist 111 | 112 | [core] 113 | Include = /etc/pacman.d/mirrorlist 114 | 115 | #[extra-testing] 116 | #Include = /etc/pacman.d/mirrorlist 117 | 118 | [extra] 119 | Include = /etc/pacman.d/mirrorlist 120 | 121 | # If you want to run 32 bit applications on your x86_64 system, 122 | # enable the multilib repositories as required here. 123 | 124 | #[multilib-testing] 125 | #Include = /etc/pacman.d/mirrorlist 126 | 127 | [multilib] 128 | Include = /etc/pacman.d/mirrorlist 129 | 130 | # An example of a custom package repository. See the pacman manpage for 131 | # tips on creating your own repositories. 132 | #[custom] 133 | #SigLevel = Optional TrustAll 134 | #Server = file:///home/custompkgs 135 | -------------------------------------------------------------------------------- /archiso/airootfs/etc/pacman.conf: -------------------------------------------------------------------------------- 1 | # 2 | # /etc/pacman.conf 3 | # 4 | # See the pacman.conf(5) manpage for option and repository directives 5 | 6 | # 7 | # GENERAL OPTIONS 8 | # 9 | [options] 10 | # The following paths are commented out with their default values listed. 11 | # If you wish to use different paths, uncomment and update the paths. 12 | #RootDir = / 13 | #DBPath = /var/lib/pacman/ 14 | #CacheDir = /var/cache/pacman/pkg/ 15 | #LogFile = /var/log/pacman.log 16 | #GPGDir = /etc/pacman.d/gnupg/ 17 | #HookDir = /etc/pacman.d/hooks/ 18 | HoldPkg = pacman glibc 19 | #XferCommand = /usr/bin/curl -L -C - -f -o %o %u 20 | #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u 21 | #CleanMethod = KeepInstalled 22 | #UseDelta = 0.7 23 | Architecture = auto 24 | 25 | # Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup 26 | #IgnorePkg = 27 | #IgnoreGroup = 28 | 29 | #NoUpgrade = 30 | #NoExtract = 31 | 32 | # Misc options 33 | #UseSyslog 34 | Color 35 | ILoveCandy 36 | #NoProgressBar 37 | #CheckSpace 38 | VerbosePkgLists 39 | DisableDownloadTimeout 40 | ParallelDownloads = 10 41 | DownloadUser = alpm 42 | #DisableSandbox 43 | 44 | # By default, pacman accepts packages signed by keys that its local keyring 45 | # trusts (see pacman-key and its man page), as well as unsigned packages. 46 | SigLevel = Required DatabaseOptional 47 | LocalFileSigLevel = Optional 48 | #RemoteFileSigLevel = Required 49 | 50 | # NOTE: You must run `pacman-key --init` before first using pacman; the local 51 | # keyring can then be populated with the keys of all official Arch Linux 52 | # packagers with `pacman-key --populate archlinux`. 53 | 54 | # 55 | # REPOSITORIES 56 | # - can be defined here or included from another file 57 | # - pacman will search repositories in the order defined here 58 | # - local/custom mirrors can be added here or in separate files 59 | # - repositories listed first will take precedence when packages 60 | # have identical names, regardless of version number 61 | # - URLs will have $repo replaced by the name of the current repo 62 | # - URLs will have $arch replaced by the name of the architecture 63 | # 64 | # Repository entries are of the format: 65 | # [repo-name] 66 | # Server = ServerName 67 | # Include = IncludePath 68 | # 69 | # The header [repo-name] is crucial - it must be present and 70 | # uncommented to enable the repo. 71 | # 72 | 73 | [cachyos] 74 | SigLevel = Optional TrustAll 75 | Include = /etc/pacman.d/cachyos-mirrorlist 76 | 77 | # The testing repositories are disabled by default. To enable, uncomment the 78 | # repo name header and Include lines. You can add preferred servers immediately 79 | # after the header, and they will be used before the default mirrors. 80 | 81 | #[core-testing] 82 | #Include = /etc/pacman.d/mirrorlist 83 | 84 | [core] 85 | Include = /etc/pacman.d/mirrorlist 86 | 87 | #[extra-testing] 88 | #Include = /etc/pacman.d/mirrorlist 89 | 90 | [extra] 91 | Include = /etc/pacman.d/mirrorlist 92 | 93 | # If you want to run 32 bit applications on your x86_64 system, 94 | # enable the multilib repositories as required here. 95 | 96 | #[multilib-testing] 97 | #Include = /etc/pacman.d/mirrorlist 98 | 99 | [multilib] 100 | Include = /etc/pacman.d/mirrorlist 101 | 102 | # An example of a custom package repository. See the pacman manpage for 103 | # tips on creating your own repositories. 104 | #[custom] 105 | #SigLevel = Optional TrustAll 106 | #Server = file:///home/custompkgs 107 | -------------------------------------------------------------------------------- /archiso/airootfs/etc/pacman.d/hooks/uncomment-mirrors.hook: -------------------------------------------------------------------------------- 1 | # remove from airootfs! 2 | [Trigger] 3 | Operation = Install 4 | Operation = Upgrade 5 | Type = Package 6 | Target = pacman-mirrorlist 7 | 8 | [Action] 9 | Description = Uncommenting all mirrors in /etc/pacman.d/mirrorlist... 10 | When = PostTransaction 11 | Depends = pacman-mirrorlist 12 | Depends = sed 13 | Exec = /usr/bin/sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist 14 | -------------------------------------------------------------------------------- /archiso/airootfs/etc/pacman.d/hooks/zzzz99-remove-custom-hooks-from-airootfs.hook: -------------------------------------------------------------------------------- 1 | # remove from airootfs! 2 | # As a workaround for https://bugs.archlinux.org/task/49347 , remove pacman hooks specific to the ISO build process. 3 | # If not, they would be used when pacstrap is run in the live environment. 4 | 5 | [Trigger] 6 | Operation = Install 7 | Operation = Upgrade 8 | Operation = Remove 9 | Type = Package 10 | Target = * 11 | 12 | [Action] 13 | Description = Work around FS#49347 by removing custom pacman hooks that are only required during ISO build... 14 | When = PostTransaction 15 | Depends = sh 16 | Depends = coreutils 17 | Depends = grep 18 | Exec = /bin/sh -c "rm -- $(grep -Frl 'remove from airootfs' /etc/pacman.d/hooks/)" 19 | -------------------------------------------------------------------------------- /archiso/airootfs/etc/pacman.d/mirrorlist: -------------------------------------------------------------------------------- 1 | # Force good mirrors for installation 2 | # Mirrors from india currently being reported as fully synced but they are not 3 | # CachyOS provdes a CDN Cache archlinux mirror 4 | # as fallback an alternative cloudflare mirror will be used 5 | # as third fallback GEO mirrors from archlinux will be used 6 | Server = https://archlinux.cachyos.org/repo/$repo/os/$arch 7 | Server = https://geo.mirror.pkgbuild.com/$repo/os/$arch 8 | Server = https://build-1.cachyos.org/archlinux/$repo/os/$arch 9 | Server = https://mirror.rackspace.com/archlinux/$repo/os/$arch 10 | Server = http://mirror.rackspace.com/archlinux/$repo/os/$arch 11 | -------------------------------------------------------------------------------- /archiso/airootfs/etc/passwd: -------------------------------------------------------------------------------- 1 | root:x:0:0:root:/root:/bin/bash 2 | liveuser:x:1000:1000::/home/liveuser:/bin/bash 3 | -------------------------------------------------------------------------------- /archiso/airootfs/etc/polkit-1/rules.d/49-nopasswd_global.rules: -------------------------------------------------------------------------------- 1 | /* Allow members of the wheel group to execute any actions 2 | * without password authentication, similar to "sudo NOPASSWD:" 3 | */ 4 | polkit.addRule(function(action, subject) { 5 | if (subject.isInGroup("wheel")) { 6 | return polkit.Result.YES; 7 | } 8 | }); 9 | 10 | -------------------------------------------------------------------------------- /archiso/airootfs/etc/sddm.conf.d/autologin.conf: -------------------------------------------------------------------------------- 1 | [Autologin] 2 | Relogin=false 3 | Session=plasmax11 4 | User=liveuser 5 | 6 | [General] 7 | HaltCommand=/usr/bin/systemctl poweroff 8 | RebootCommand=/usr/bin/systemctl reboot 9 | 10 | [Theme] 11 | Current=breeze 12 | 13 | [Users] 14 | MaximumUid=60000 15 | MinimumUid=1000 16 | -------------------------------------------------------------------------------- /archiso/airootfs/etc/shadow: -------------------------------------------------------------------------------- 1 | root::14871:::::: 2 | liveuser::14871:::::: -------------------------------------------------------------------------------- /archiso/airootfs/etc/skel/.bash_profile: -------------------------------------------------------------------------------- 1 | # 2 | # ~/.bash_profile 3 | # 4 | 5 | [[ -f ~/.bashrc ]] && . ~/.bashrc 6 | -------------------------------------------------------------------------------- /archiso/airootfs/etc/skel/.bashrc: -------------------------------------------------------------------------------- 1 | # 2 | # ~/.bashrc 3 | # 4 | 5 | # If not running interactively, don't do anything 6 | [[ $- != *i* ]] && return 7 | 8 | [ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion 9 | 10 | # Change the window title of X terminals 11 | case ${TERM} in 12 | xterm*|rxvt*|Eterm*|aterm|kterm|gnome*|interix|konsole*) 13 | PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\007"' 14 | ;; 15 | screen*) 16 | PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\033\\"' 17 | ;; 18 | esac 19 | 20 | alias ls='ls --color=auto' 21 | alias la='ls -a' 22 | alias ll='ls -la' 23 | alias l='ls' 24 | alias l.="ls -A | egrep '^\.'" 25 | alias grep='grep --colour=auto' 26 | alias egrep='egrep --colour=auto' 27 | alias fgrep='fgrep --colour=auto' 28 | alias df='df -h' # human-readable sizes 29 | alias free='free -m' # show sizes in MB 30 | PS1='[\u@\h \W]\$ ' 31 | 32 | # Bash won't get SIGWINCH if another process is in the foreground. 33 | # Enable checkwinsize so that bash will check the terminal size when 34 | # it regains control. #65623 35 | # http://cnswww.cns.cwru.edu/~chet/bash/FAQ (E11) 36 | shopt -s checkwinsize 37 | 38 | shopt -s expand_aliases 39 | 40 | # export QT_SELECT=4 41 | 42 | # Enable history appending instead of overwriting. #139609 43 | shopt -s histappend 44 | 45 | #neofetch 46 | -------------------------------------------------------------------------------- /archiso/airootfs/etc/skel/.config/kded5rc: -------------------------------------------------------------------------------- 1 | [Module-device_automounter] 2 | autoload=false 3 | -------------------------------------------------------------------------------- /archiso/airootfs/etc/skel/.config/kscreenlockerrc: -------------------------------------------------------------------------------- 1 | [$Version] 2 | update_info=kscreenlocker.upd:0.1-autolock 3 | 4 | [Daemon] 5 | Autolock=false 6 | LockGrace=300 7 | LockOnResume=false 8 | -------------------------------------------------------------------------------- /archiso/airootfs/etc/skel/.config/kwalletrc: -------------------------------------------------------------------------------- 1 | [Wallet] 2 | Enabled=false 3 | -------------------------------------------------------------------------------- /archiso/airootfs/etc/skel/.config/powerdevilrc: -------------------------------------------------------------------------------- 1 | [AC][Display] 2 | TurnOffDisplayWhenIdle=false 3 | -------------------------------------------------------------------------------- /archiso/airootfs/etc/skel/.config/powermanagementprofilesrc: -------------------------------------------------------------------------------- 1 | [AC] 2 | icon=battery-charging 3 | 4 | [AC][DimDisplay] 5 | idleTime=300000 6 | 7 | [AC][HandleButtonEvents] 8 | lidAction=1 9 | powerButtonAction=0 10 | powerDownAction=16 11 | 12 | [AC][WirelessPowerSaving] 13 | btOption=2 14 | wifiOption=2 15 | wwanOption=1 16 | 17 | [Activities] 18 | mode=SpecialBehavior 19 | 20 | [Activities][SpecialBehavior] 21 | noScreenManagement=true 22 | noSuspend=true 23 | performAction=false 24 | 25 | [Activities][SpecialBehavior][ActionConfig] 26 | idleTime=60000 27 | suspendType=1 28 | 29 | [Battery] 30 | icon=battery-060 31 | 32 | [Battery][DPMSControl] 33 | idleTime=300 34 | lockBeforeTurnOff=0 35 | 36 | [Battery][DimDisplay] 37 | idleTime=120000 38 | 39 | [Battery][HandleButtonEvents] 40 | lidAction=1 41 | powerButtonAction=16 42 | powerDownAction=16 43 | 44 | [Battery][SuspendSession] 45 | idleTime=600000 46 | suspendThenHibernate=false 47 | suspendType=1 48 | 49 | [LowBattery] 50 | icon=battery-low 51 | 52 | [LowBattery][BrightnessControl] 53 | value=30 54 | 55 | [LowBattery][DPMSControl] 56 | idleTime=120 57 | lockBeforeTurnOff=0 58 | 59 | [LowBattery][DimDisplay] 60 | idleTime=60000 61 | 62 | [LowBattery][HandleButtonEvents] 63 | lidAction=1 64 | powerButtonAction=16 65 | powerDownAction=16 66 | 67 | [LowBattery][SuspendSession] 68 | idleTime=300000 69 | suspendThenHibernate=false 70 | suspendType=1 71 | -------------------------------------------------------------------------------- /archiso/airootfs/etc/ssh/sshd_config.d/10-archiso.conf: -------------------------------------------------------------------------------- 1 | # Allow root login using password authentication 2 | PasswordAuthentication yes 3 | PermitRootLogin yes 4 | -------------------------------------------------------------------------------- /archiso/airootfs/etc/sudoers.d/g_wheel: -------------------------------------------------------------------------------- 1 | %wheel ALL=(ALL) NOPASSWD: ALL 2 | -------------------------------------------------------------------------------- /archiso/airootfs/etc/sysctl.d/99-local.conf: -------------------------------------------------------------------------------- 1 | net.ipv6.conf.default.use_tempaddr = 2 2 | -------------------------------------------------------------------------------- /archiso/airootfs/etc/systemd/journald.conf.d/volatile-storage.conf: -------------------------------------------------------------------------------- 1 | [Journal] 2 | Storage=volatile 3 | -------------------------------------------------------------------------------- /archiso/airootfs/etc/systemd/logind.conf.d/do-not-suspend.conf: -------------------------------------------------------------------------------- 1 | [Login] 2 | HandleSuspendKey=ignore 3 | HandleHibernateKey=ignore 4 | HandleLidSwitch=ignore 5 | -------------------------------------------------------------------------------- /archiso/airootfs/etc/systemd/system-generators/systemd-gpt-auto-generator: -------------------------------------------------------------------------------- 1 | /dev/null -------------------------------------------------------------------------------- /archiso/airootfs/etc/systemd/system/bluetooth.target.wants/bluetooth.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/bluetooth.service -------------------------------------------------------------------------------- /archiso/airootfs/etc/systemd/system/dbus-fi.w1.wpa_supplicant1.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/wpa_supplicant.service -------------------------------------------------------------------------------- /archiso/airootfs/etc/systemd/system/dbus-org.bluez.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/bluetooth.service -------------------------------------------------------------------------------- /archiso/airootfs/etc/systemd/system/dbus-org.freedesktop.ModemManager1.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/ModemManager.service -------------------------------------------------------------------------------- /archiso/airootfs/etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/NetworkManager-dispatcher.service -------------------------------------------------------------------------------- /archiso/airootfs/etc/systemd/system/dbus-org.freedesktop.timesync1.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/systemd-timesyncd.service -------------------------------------------------------------------------------- /archiso/airootfs/etc/systemd/system/default.target: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/graphical.target -------------------------------------------------------------------------------- /archiso/airootfs/etc/systemd/system/etc-pacman.d-gnupg.mount: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Temporary /etc/pacman.d/gnupg directory 3 | 4 | [Mount] 5 | What=tmpfs 6 | Where=/etc/pacman.d/gnupg 7 | Type=tmpfs 8 | Options=mode=0755,noswap 9 | 10 | -------------------------------------------------------------------------------- /archiso/airootfs/etc/systemd/system/getty@tty1.service.d/autologin.conf: -------------------------------------------------------------------------------- 1 | [Service] 2 | ExecStart= 3 | ExecStart=-/sbin/agetty -o '-p -f -- \\u' --noclear --autologin liveuser - $TERM 4 | -------------------------------------------------------------------------------- /archiso/airootfs/etc/systemd/system/livecd-alsa-unmuter.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Unmute All Sound Card Controls For Use With The Live Arch Environment 3 | # This needs to run after the audio device becomes available. 4 | Wants=systemd-udev-settle.service 5 | After=systemd-udev-settle.service sound.target 6 | ConditionKernelCommandLine=accessibility=on 7 | 8 | [Service] 9 | Type=oneshot 10 | ExecStart=/usr/local/bin/livecd-sound -u 11 | 12 | [Install] 13 | WantedBy=sound.target 14 | -------------------------------------------------------------------------------- /archiso/airootfs/etc/systemd/system/livecd-talk.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Screen reader service 3 | After=livecd-alsa-unmuter.service 4 | Before=getty@tty1.service 5 | ConditionKernelCommandLine=accessibility=on 6 | 7 | [Service] 8 | Type=oneshot 9 | TTYPath=/dev/tty13 10 | ExecStartPre=/usr/bin/chvt 13 11 | ExecStart=/usr/local/bin/livecd-sound -p 12 | ExecStartPost=/usr/bin/chvt 1 13 | ExecStartPost=systemctl start espeakup.service 14 | StandardInput=tty 15 | TTYVHangup=yes 16 | TTYVTDisallocate=yes 17 | RemainAfterExit=true 18 | 19 | [Install] 20 | WantedBy=multi-user.target 21 | -------------------------------------------------------------------------------- /archiso/airootfs/etc/systemd/system/multi-user.target.wants/ModemManager.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/ModemManager.service -------------------------------------------------------------------------------- /archiso/airootfs/etc/systemd/system/multi-user.target.wants/NetworkManager.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/NetworkManager.service -------------------------------------------------------------------------------- /archiso/airootfs/etc/systemd/system/multi-user.target.wants/hv_fcopy_daemon.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/hv_fcopy_daemon.service -------------------------------------------------------------------------------- /archiso/airootfs/etc/systemd/system/multi-user.target.wants/hv_kvp_daemon.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/hv_kvp_daemon.service -------------------------------------------------------------------------------- /archiso/airootfs/etc/systemd/system/multi-user.target.wants/hv_vss_daemon.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/hv_vss_daemon.service -------------------------------------------------------------------------------- /archiso/airootfs/etc/systemd/system/multi-user.target.wants/livecd-talk.service: -------------------------------------------------------------------------------- 1 | /etc/systemd/system/livecd-talk.service -------------------------------------------------------------------------------- /archiso/airootfs/etc/systemd/system/multi-user.target.wants/pacman-init.service: -------------------------------------------------------------------------------- 1 | ../pacman-init.service -------------------------------------------------------------------------------- /archiso/airootfs/etc/systemd/system/multi-user.target.wants/sshd.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/sshd.service -------------------------------------------------------------------------------- /archiso/airootfs/etc/systemd/system/multi-user.target.wants/systemd-networkd.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/systemd-networkd.service -------------------------------------------------------------------------------- /archiso/airootfs/etc/systemd/system/multi-user.target.wants/systemd-resolved.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/systemd-resolved.service -------------------------------------------------------------------------------- /archiso/airootfs/etc/systemd/system/multi-user.target.wants/vboxservice.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/vboxservice.service -------------------------------------------------------------------------------- /archiso/airootfs/etc/systemd/system/multi-user.target.wants/vmtoolsd.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/vmtoolsd.service -------------------------------------------------------------------------------- /archiso/airootfs/etc/systemd/system/multi-user.target.wants/vmware-vmblock-fuse.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/vmware-vmblock-fuse.service -------------------------------------------------------------------------------- /archiso/airootfs/etc/systemd/system/multi-user.target.wants/wpa_supplicant.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/wpa_supplicant.service -------------------------------------------------------------------------------- /archiso/airootfs/etc/systemd/system/network-online.target.wants/NetworkManager-wait-online.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/NetworkManager-wait-online.service -------------------------------------------------------------------------------- /archiso/airootfs/etc/systemd/system/pacman-init.service: -------------------------------------------------------------------------------- 1 | # 2 | # SPDX-License-Identifier: GPL-3.0-or-later 3 | 4 | [Unit] 5 | Description=Initializes Pacman keyring 6 | 7 | [Service] 8 | Type=oneshot 9 | RemainAfterExit=yes 10 | ExecStart=/usr/bin/pacman-key --init 11 | ExecStart=/usr/bin/pacman-key --populate 12 | 13 | [Install] 14 | WantedBy=multi-user.target 15 | -------------------------------------------------------------------------------- /archiso/airootfs/etc/systemd/system/sockets.target.wants/pcscd.socket: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/pcscd.socket -------------------------------------------------------------------------------- /archiso/airootfs/etc/systemd/system/sockets.target.wants/systemd-networkd.socket: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/systemd-networkd.socket -------------------------------------------------------------------------------- /archiso/airootfs/etc/systemd/system/sound.target.wants/livecd-alsa-unmuter.service: -------------------------------------------------------------------------------- 1 | ../livecd-alsa-unmuter.service -------------------------------------------------------------------------------- /archiso/airootfs/etc/systemd/system/sysinit.target.wants/systemd-time-wait-sync.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/systemd-time-wait-sync.service -------------------------------------------------------------------------------- /archiso/airootfs/etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/systemd-timesyncd.service -------------------------------------------------------------------------------- /archiso/airootfs/root/.automated_script.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | script_cmdline() { 4 | local param 5 | for param in $(/etc/pacman.d/mirrorlist < /dev/null ; then 20 | ln -sf /usr/lib/systemd/system/ly.service /etc/systemd/system/display-manager.service 21 | fi 22 | package=sddm 23 | if pacman -Qs $package > /dev/null ; then 24 | ln -sf /usr/lib/systemd/system/sddm.service /etc/systemd/system/display-manager.service 25 | fi 26 | package=gdm 27 | if pacman -Qs $package > /dev/null ; then 28 | ln -sf /usr/lib/systemd/system/gdm.service /etc/systemd/system/display-manager.service 29 | fi 30 | package=lxdm 31 | if pacman -Qs $package > /dev/null ; then 32 | ln -sf /usr/lib/systemd/system/lxdm.service /etc/systemd/system/display-manager.service 33 | fi 34 | package=lightdm 35 | if pacman -Qs $package > /dev/null ; then 36 | ln -sf /usr/lib/systemd/system/lightdm.service /etc/systemd/system/display-manager.service 37 | fi 38 | -------------------------------------------------------------------------------- /archiso/airootfs/usr/local/bin/nvidia-module-loader: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Quick pass if one of the modules is already loaded. 3 | if [[ -e /sys/module/nvidia || -e /sys/module/nouveau ]]; then 4 | exit 0 5 | fi 6 | 7 | # Using "install" in modprobe seems to result in no dependency resolving for 8 | # modules, so we have to manually set the order in which all modules are loaded 9 | # at once. 10 | load_nvidia_modules() { 11 | local pkgname="$1" 12 | 13 | # Load some basic dependencies of nvidia modules 14 | modprobe video 15 | modprobe drm_ttm_helper 16 | modprobe drm_kms_helper 17 | 18 | for module in nvidia nvidia-modeset nvidia-drm nvidia-uvm; do 19 | modprobe --ignore-install "/usr/share/modules/${pkgname}/${module}.ko.zst" 20 | done 21 | } 22 | 23 | # Load compatible version of NVIDIA modules for current hardware 24 | if chwd --list | awk '{ if($2 == "nouveau" || $2 == "nvidia-dkms-390xx" || $2 == "nvidia-dkms-470xx") f=1 } END {exit (f == 1) ? 0 : 1 }'; then 25 | modprobe nouveau 26 | elif chwd --list | awk '{ if($2 == "nvidia-dkms") f=1 } END {exit (f == 1) ? 0 : 1 }'; then 27 | load_nvidia_modules linux-cachyos-nvidia 28 | elif chwd --list | awk '{ if($2 == "nvidia-open-dkms") f=1 } END {exit (f == 1) ? 0 : 1 }'; then 29 | load_nvidia_modules linux-cachyos-nvidia-open 30 | fi 31 | 32 | # Otherwise, do a fallback to nouveau anyway 33 | if [[ ! -e /sys/module/nouveau && ! -e /sys/module/nvidia ]]; then 34 | modprobe nouveau 35 | fi 36 | -------------------------------------------------------------------------------- /archiso/airootfs/usr/local/bin/prepare-live-desktop.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # borrowed from manjaro livecd 3 | 4 | xdg=$(xdg-user-dir DESKTOP) 5 | src='/usr/share/applications' 6 | 7 | ## We don't need .desktop on desktop, 8 | ## actually we should remove .desktop or fix the .desktop as it is running with pkexec, 9 | ## and using current calamares config (not even running with script to provide logs). 10 | #if [[ -f /usr/bin/calamares ]]; then 11 | # install -Dm755 $src/calamares.desktop \ 12 | # $xdg/calamares.desktop 13 | #fi 14 | 15 | # workaround for glib trash bug (https://bugzilla.gnome.org/show_bug.cgi?id=748248) 16 | userid=$(id -u $USER) 17 | if [ ! -d "/.Trash-$userid" ]; then 18 | sudo mkdir -p /.Trash-$userid/{expunged,files,info} 19 | sudo chown -R $userid /.Trash-$userid 20 | fi 21 | 22 | # mark launchers trusted for XFCE 4.18 23 | for f in $(ls $xdg/*desktop); do 24 | gio set -t string $f metadata::xfce-exe-checksum "$(sha256sum $f | awk '{print $1}')" 25 | done; 26 | -------------------------------------------------------------------------------- /archiso/airootfs/usr/local/bin/remove-nvidia: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | _remove_pacman_package() { 4 | local _pkgname="$1" 5 | pacman -Rsnc "$_pkgname" --noconfirm || true 6 | } 7 | 8 | # remove pkgs installed for VMs 9 | _clean_vm_packages() { 10 | 11 | #remove virtualbox 12 | if pacman -Qi virtualbox-guest-utils &> /dev/null; then 13 | systemctl disable vboxservice.service 14 | _remove_pacman_package virtualbox-guest-utils 15 | fi 16 | 17 | if pacman -Qi virtualbox-guest-utils-nox &> /dev/null; then 18 | systemctl disable vboxservice.service 19 | _remove_pacman_package virtualbox-guest-utils-nox 20 | fi 21 | 22 | #remove vmware 23 | if [ -f /etc/xdg/autostart/vmware-user.desktop ]; then 24 | rm /etc/xdg/autostart/vmware-user.desktop 25 | fi 26 | 27 | if pacman -Qi open-vm-tools &> /dev/null; then 28 | systemctl disable vmtoolsd.service 29 | _remove_pacman_package open-vm-tools 30 | fi 31 | 32 | if [ -f /etc/systemd/system/multi-user.target.wants/vmtoolsd.service ]; then 33 | rm /etc/systemd/system/multi-user.target.wants/vmtoolsd.service 34 | fi 35 | 36 | #remove qemu 37 | if pacman -Qi qemu-guest-agent &> /dev/null; then 38 | systemctl disable qemu-guest-agent.service 39 | _remove_pacman_package qemu-guest-agent 40 | fi 41 | } 42 | 43 | _check_not_running_vm="$(systemd-detect-virt | grep -q 'none'; echo $?)" 44 | if [[ "${_check_not_running_vm}" -eq 0 ]]; then 45 | _clean_vm_packages 46 | fi 47 | 48 | # vim:set ft=bash sw=2 sts=2 et: 49 | -------------------------------------------------------------------------------- /archiso/airootfs/usr/local/bin/removeun: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #set -e 3 | 4 | _clean_files() { 5 | local _files_to_remove=( 6 | /usr/local/bin/choose-mirror 7 | /usr/local/bin/prepare-live-desktop.sh 8 | /usr/local/bin/removeun-online 9 | /usr/local/share/livecd-sound 10 | ) 11 | 12 | local xx 13 | for xx in "${_files_to_remove[@]}"; do rm -rf "$xx" || true; done 14 | } 15 | 16 | _clean_packages() { 17 | local _packages_to_remove=( 18 | gparted 19 | grsync 20 | cachyos-calamares-grub 21 | cachyos-calamares-systemd 22 | cachyos-calamares-refind 23 | cachyos-calamares 24 | cachyos-calamares-config 25 | edk2-shell 26 | boost-libs 27 | doxygen 28 | expect 29 | gpart 30 | tcpdump 31 | arch-install-scripts 32 | squashfs-tools 33 | extra-cmake-modules 34 | cmake 35 | elinks 36 | yaml-cpp 37 | syslinux 38 | clonezilla 39 | memtest86+ 40 | mkinitcpio-archiso 41 | ) 42 | 43 | local _check_nvidia_card="$(chwd --is_nvidia_card | grep -q 'NVIDIA card found!'; echo $?)" 44 | if [[ "${_check_nvidia_card}" -ne 0 ]]; then 45 | echo "No NVIDIA card detected. Removing nvidia drivers" 46 | _packages_to_remove+=(linux-cachyos-nvidia-open nvidia-utils egl-wayland) 47 | fi 48 | 49 | local xx 50 | # @ does one by one to avoid errors in the entire process 51 | # taken from Erik Dubois script 52 | for xx in "${_packages_to_remove[@]}"; do pacman -Rsnc "$xx" --noconfirm; done 53 | } 54 | 55 | _clean_packages 56 | _clean_files 57 | 58 | # vim:set ft=bash sw=2 sts=2 et: 59 | -------------------------------------------------------------------------------- /archiso/airootfs/usr/local/bin/removeun-online: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | _clean_packages() { 4 | local _leave_these_packages="base\nbase-devel\ncachyos-keyring\ncachyos-hello\ngrub\nefibootmgr\noctopi\nca-certificates\n" 5 | local _leave_these_basepackages="filesystem\ngcc-libs\nglibc\nglib2\nbash\ncoreutils\nfile\nfindutils\ngawk\ngrep\nprocps-ng\nsed\ntar\ngettext\npciutils\npsmisc\nshadow\nutil-linux\nbzip2\ngzip\nxz\nlicenses\npacman\nsystemd\nsystemd-sysvcompat\niputils\niproute2\n" 6 | local _packages_to_remove=($(comm -23 <(pacman -Qq | sort) <({ pacman -Qqg base-devel; pacman -Qqg cachyos; printf $_leave_these_packages; printf $_leave_these_basepackages; } | sort -u))) 7 | local xx 8 | # @ does one by one to avoid errors in the entire process 9 | # * can be used to treat all packages in one command 10 | for xx in "${_packages_to_remove[@]}"; do pacman -Rs "$xx" --noconfirm; done 11 | 12 | # making sure they are removed 13 | # local _toberemoved_str=$'bash-completion\nxorg-xinit\nxorg-xkill\nxorg-xinput\nxorg-xrandr\nxorg-xrdb\nmkinitcpio-openswap\nalacritty\nkonsole\nkwin-scripts-forceblur\nnetworkmanager-vpnc\nnetworkmanager-qt\nnetworkmanager-openvpn\nwireguard-tools\nopenconnect\nopenvpn\nqt5-xmlpatterns\ndoxygen\ntcpdump\ndmidecode\nkparts\npolkit-qt5\nxorg-server\nxorg-apps\nqt5-tools\nzfs-utils\nlinux-cachyos-zfs\nwget\nvirtualbox-guest-utils\nxf86-video-vesa\nxf86-video-amdgpu\nxf86-video-intel\nnvidia-dkms\nnvidia-utils\nlightdm\nlightdm-gtk-greeter\nlightdm-webkit2-greeter\nbase-devel\nlinux-cachyos-headers\nplasma-browser-integration\nplasma-desktop\nplasma-firewall\nplasma-framework\nplasma-integration\nplasma-nm\nplasma-pa\nplasma-systemmonitor\nplasma-thunderbolt\nplasma-workspace\ndiscover\npackagekit-qt5\nxed\nparole\nristretto\ndolphin\ndolphin-plugins\ncapitaine-cursors\ngtk-engine-murrine\ngnome-themes-extra\nadwaita-icon-theme\nfile-roller\nlibwnck3\nnetwork-manager-applet\ngalculator\ncachy-browser\nkvantum-qt5\nqt5ct\nneofetch\nopen-vm-tools\nxf86-input-vmmouse\nxf86-video-vmware\ncachyos-kde-settings\ncachyos-picom-config\ncachyos-rate-mirrors\ncachyos-kernel-manager\nchwd\noctopi\nreflector-simple\nmeld\nparu\nnordic-theme-git\nlightly-git\ncachyos-nord-kde-theme-git\nchar-white' 14 | # local _toberemoved_packages 15 | # readarray -t _toberemoved_packages <<< "$_toberemoved_str" 16 | # local xxx 17 | # for xxx in "${_toberemoved_packages[@]}"; do pacman -Rs "$xxx" --noconfirm; done 18 | 19 | rm /etc/sddm.conf || true 20 | } 21 | 22 | _pacman_fix() { 23 | 24 | pacman-key --init 25 | pacman-key --populate cachyos 26 | } 27 | 28 | _try_v3() { 29 | /lib/ld-linux-x86-64.so.2 --help | grep "x86-64-v3 (supported, searched)" > /dev/null 30 | 31 | local pacman_conf="/etc/pacman.conf" 32 | local pacman_conf_cachyos="/etc/pacman-more.conf" 33 | local pacman_conf_path_backup="/etc/pacman.conf.bak" 34 | 35 | if [ $? -eq 0 ]; then 36 | echo "x86-64-v3 is supported" 37 | 38 | sed -i 's/Architecture = auto/#Architecture = auto/' $pacman_conf_cachyos 39 | sed -i 's/#//g' $pacman_conf_cachyos 40 | 41 | echo "backup old config" 42 | mv $pacman_conf $pacman_conf_path_backup 43 | 44 | echo "CachyOS -v3 Repo changed" 45 | mv $pacman_conf_cachyos $pacman_conf 46 | 47 | else 48 | echo "x86-64-v3 is not supported" 49 | fi 50 | 51 | } 52 | 53 | _clean_packages 54 | _try_v3 55 | _pacman_fix 56 | -------------------------------------------------------------------------------- /archiso/airootfs/usr/local/share/livecd-sound/asound.conf.in: -------------------------------------------------------------------------------- 1 | Defaults node 2 | defaults.ctl.card %card%; 3 | defaults.pcm.card %card%; 4 | -------------------------------------------------------------------------------- /archiso/bootstrap_packages.x86_64: -------------------------------------------------------------------------------- 1 | arch-install-scripts 2 | base 3 | -------------------------------------------------------------------------------- /archiso/efiboot/loader/entries/01-archiso-x86_64-linux.conf: -------------------------------------------------------------------------------- 1 | title CachyOS x86_64 UEFI Default 2 | sort-key A 3 | linux /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux-cachyos 4 | initrd /%INSTALL_DIR%/boot/x86_64/initramfs-linux-cachyos.img 5 | options archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% cow_spacesize=10G copytoram=auto module_blacklist=pcspkr i915.modeset=1 amdgpu.modeset=1 nvme_load=yes 6 | -------------------------------------------------------------------------------- /archiso/efiboot/loader/entries/03-archiso-x86_64-memtest86+.conf: -------------------------------------------------------------------------------- 1 | title Memtest86+ 2 | sort-key D 3 | efi /boot/memtest86+/memtest.efi 4 | -------------------------------------------------------------------------------- /archiso/efiboot/loader/entries/fallback.conf: -------------------------------------------------------------------------------- 1 | title CachyOS x86_64 Legacy Hardware Fallback (nomodeset) 2 | sort-key C 3 | linux /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux-cachyos 4 | initrd /%INSTALL_DIR%/boot/x86_64/initramfs-linux-cachyos.img 5 | options archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% cow_spacesize=10G copytoram=n module_blacklist=nvidia,nvidia_modeset,nvidia_uvm,nvidia_drm nomodeset nvme_load=yes 6 | -------------------------------------------------------------------------------- /archiso/efiboot/loader/loader.conf: -------------------------------------------------------------------------------- 1 | timeout 15 2 | default 01-archiso-x86_64-linux.conf 3 | -------------------------------------------------------------------------------- /archiso/grub/grub.cfg: -------------------------------------------------------------------------------- 1 | # Defining the Version of the ISO. This line could be easy changed by a Script wich do that automatic before creating ISO self. 2 | # Default "GIT", because if somebody outside from the DEVs create a ISO, this ISO wouldnt have a specific Version number. 3 | CACHYOS_VERSION="250131" 4 | 5 | if [ "${grub_platform}" == 'efi' ]; then 6 | bios_or_uefi='(UEFI)!' 7 | else 8 | bios_or_uefi='(BIOS)!' 9 | fi 10 | 11 | # Load partition table and file system modules 12 | insmod part_gpt 13 | insmod part_msdos 14 | insmod fat 15 | insmod iso9660 16 | insmod ntfs 17 | insmod ntfscomp 18 | insmod exfat 19 | insmod udf 20 | 21 | # Use graphics-mode output 22 | insmod font 23 | if loadfont "${prefix}/fonts/unicode.pf2" ; then 24 | insmod all_video 25 | set gfxmode="auto" 26 | terminal_input console 27 | terminal_output gfxterm 28 | fi 29 | 30 | # Enable serial console 31 | insmod serial 32 | insmod usbserial_common 33 | insmod usbserial_ftdi 34 | insmod usbserial_pl2303 35 | insmod usbserial_usbdebug 36 | if serial --unit=0 --speed=115200; then 37 | terminal_input --append serial 38 | terminal_output --append serial 39 | fi 40 | 41 | # Set default menu entry 42 | default=cachyos 43 | timeout=10 44 | timeout_style=menu 45 | 46 | # Welcome Text 47 | menuentry "Welcome to CachyOS $CACHYOS_VERSION Live ISO $bios_or_uefi" { 48 | insmod ext2 49 | } 50 | menuentry "----------------------------------------------------" { 51 | insmod ext2 52 | } 53 | 54 | 55 | # Menu entries 56 | menuentry "CachyOS" --class arch --class gnu-linux --class gnu --class os --id 'cachyos' { 57 | set gfxpayload=keep 58 | linux /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux-cachyos archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% cow_spacesize=10G copytoram=auto module_blacklist=pcspkr i915.modeset=1 amdgpu.modeset=1 nvme_load=yes 59 | initrd /%INSTALL_DIR%/boot/x86_64/initramfs-linux-cachyos.img 60 | } 61 | 62 | menuentry "CachyOS Legacy Hardware (GPU nomodeset)" --class arch --class gnu-linux --class gnu --class os --id 'cachyos-fallback' { 63 | set gfxpayload=keep 64 | linux /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux-cachyos archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% cow_spacesize=10G copytoram=auto module_blacklist=nvidia,nvidia_modeset,nvidia_uvm,nvidia_drm nomodeset nvme_load=yes 65 | initrd /%INSTALL_DIR%/boot/x86_64/initramfs-linux-cachyos.img 66 | } 67 | 68 | if [ "${grub_platform}" == 'efi' -a "${grub_cpu}" == 'x86_64' -a -f '/boot/memtest86+/memtest.efi' ]; then 69 | menuentry 'Run Memtest86+ (RAM test)' --class memtest86 --class memtest --class gnu --class tool { 70 | set gfxpayload=800x600,1024x768 71 | linux /boot/memtest86+/memtest.efi 72 | } 73 | fi 74 | 75 | if [ "${grub_platform}" == 'efi' ]; then 76 | if [ "${grub_cpu}" == 'x86_64' -a -f '/shellx64.efi' ]; then 77 | menuentry 'UEFI Shell' --class efi { 78 | chainloader /shellx64.efi 79 | } 80 | elif [ "${grub_cpu}" == "i386" -a -f '/shellia32.efi' ]; then 81 | menuentry 'UEFI Shell' --class efi { 82 | chainloader /shellia32.efi 83 | } 84 | fi 85 | 86 | menuentry 'UEFI Firmware Settings' --id 'uefi-firmware' { 87 | fwsetup 88 | } 89 | fi 90 | 91 | menuentry 'System shutdown' --class shutdown --class poweroff { 92 | echo 'System shutting down...' 93 | halt 94 | } 95 | 96 | menuentry 'System restart' --class reboot --class restart { 97 | echo 'System rebooting...' 98 | reboot 99 | } 100 | -------------------------------------------------------------------------------- /archiso/grub/loopback.cfg: -------------------------------------------------------------------------------- 1 | # Defining the Version of the ISO. This line could be easy changed by a Script wich do that automatic before creating ISO self. 2 | # Default "GIT", because if somebody outside from the DEVs create a ISO, this ISO wouldnt have a specific Version number. 3 | CACHYOS_VERSION="GIT" 4 | 5 | if [ "${grub_platform}" == 'efi' ]; then 6 | bios_or_uefi='(UEFI)!' 7 | else 8 | bios_or_uefi='(BIOS)!' 9 | fi 10 | 11 | # https://www.supergrubdisk.org/wiki/Loopback.cfg 12 | 13 | # Search for the ISO volume 14 | search --no-floppy --set=archiso_img_dev --file "${iso_path}" 15 | probe --set archiso_img_dev_uuid --fs-uuid "${archiso_img_dev}" 16 | 17 | # Set default menu entry 18 | default=cachyos 19 | timeout=10 20 | timeout_style=menu 21 | 22 | # Welcome Text 23 | menuentry "Welcome to CachyOS $CACHYOS_VERSION Live ISO $bios_or_uefi" { 24 | insmod ext2 25 | } 26 | menuentry "----------------------------------------------------" { 27 | insmod ext2 28 | } 29 | 30 | 31 | # Menu entries 32 | menuentry "CachyOS" --class arch --class gnu-linux --class gnu --class os --id 'cachyos' { 33 | set gfxpayload=keep 34 | linux /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux-cachyos archisobasedir=%INSTALL_DIR% img_dev=UUID=${archiso_img_dev_uuid} img_loop="${iso_path}" cow_spacesize=10G copytoram=auto module_blacklist=pcspkr i915.modeset=1 amdgpu.modeset=1 nvme_load=yes 35 | initrd /%INSTALL_DIR%/boot/x86_64/initramfs-linux-cachyos.img 36 | } 37 | 38 | menuentry "CachyOS Legacy Hardware (GPU nomodeset)" --class arch --class gnu-linux --class gnu --class os --id 'cachyos-fallback' { 39 | set gfxpayload=keep 40 | linux /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux-cachyos archisobasedir=%INSTALL_DIR% img_dev=UUID=${archiso_img_dev_uuid} img_loop="${iso_path}" cow_spacesize=10G copytoram=auto module_blacklist=nvidia,nvidia_modeset,nvidia_uvm,nvidia_drm nomodeset nvme_load=yes 41 | initrd /%INSTALL_DIR%/boot/x86_64/initramfs-linux-cachyos.img 42 | } 43 | 44 | if [ "${grub_platform}" == 'efi' -a "${grub_cpu}" == 'x86_64' -a -f '/boot/memtest86+/memtest.efi' ]; then 45 | menuentry 'Run Memtest86+ (RAM test)' --class memtest86 --class memtest --class gnu --class tool { 46 | set gfxpayload=800x600,1024x768 47 | linux /boot/memtest86+/memtest.efi 48 | } 49 | fi 50 | 51 | if [ "${grub_platform}" == 'efi' ]; then 52 | if [ "${grub_cpu}" == 'x86_64' -a -f '/shellx64.efi' ]; then 53 | menuentry 'UEFI Shell' --class efi { 54 | chainloader /shellx64.efi 55 | } 56 | elif [ "${grub_cpu}" == "i386" -a -f '/shellia32.efi' ]; then 57 | menuentry 'UEFI Shell' --class efi { 58 | chainloader /shellia32.efi 59 | } 60 | fi 61 | 62 | menuentry 'UEFI Firmware Settings' --id 'uefi-firmware' { 63 | fwsetup 64 | } 65 | fi 66 | 67 | menuentry 'System shutdown' --class shutdown --class poweroff { 68 | echo 'System shutting down...' 69 | halt 70 | } 71 | 72 | menuentry 'System restart' --class reboot --class restart { 73 | echo 'System rebooting...' 74 | reboot 75 | } 76 | -------------------------------------------------------------------------------- /archiso/grub/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CachyOS/CachyOS-Live-ISO/6d14bd4fc6346afb998af9c039498e2d06047496/archiso/grub/splash.png -------------------------------------------------------------------------------- /archiso/packages_desktop.x86_64: -------------------------------------------------------------------------------- 1 | alacritty 2 | alsa-utils 3 | amd-ucode 4 | arch-install-scripts 5 | archlinux-keyring 6 | avahi 7 | b43-fwcutter 8 | base 9 | bash-completion 10 | bcachefs-tools 11 | bind 12 | bluedevil 13 | breeze-gtk 14 | brltty 15 | btrfs-progs 16 | cachy-chroot 17 | cachyos-calamares-qt6-grub 18 | cachyos-cli-installer-new 19 | cachyos-fish-config 20 | cachyos-hello 21 | cachyos-hooks 22 | cachyos-kde-settings 23 | cachyos-keyring 24 | cachyos-mirrorlist 25 | cachyos-rate-mirrors 26 | cachyos-settings 27 | cachyos-themes-sddm 28 | cachyos-v3-mirrorlist 29 | cachyos-v4-mirrorlist 30 | chwd 31 | ckbcomp 32 | clonezilla 33 | cloud-init 34 | cryptsetup 35 | darkhttpd 36 | ddrescue 37 | dhcpcd 38 | diffutils 39 | dmidecode 40 | dmraid 41 | dnsmasq 42 | dolphin 43 | dosfstools 44 | e2fsprogs 45 | edk2-shell 46 | efibootmgr 47 | ethtool 48 | exfatprogs 49 | f2fs-tools 50 | fakeroot 51 | fatresize 52 | firefox 53 | gpart 54 | gparted 55 | gptfdisk 56 | grub 57 | haveged 58 | hwdetect 59 | hwinfo 60 | hyperv 61 | imwheel 62 | inetutils 63 | intel-ucode 64 | inxi 65 | irssi 66 | iw 67 | iwd 68 | jfsutils 69 | kate 70 | kcalc 71 | kde-gtk-config 72 | konsole 73 | kscreen 74 | ldns 75 | less 76 | lftp 77 | libfido2 78 | libusb-compat 79 | libwnck3 80 | linux-atm 81 | linux-cachyos 82 | linux-cachyos-zfs 83 | linux-firmware 84 | linux-firmware-marvell 85 | lsb-release 86 | lsof 87 | lsscsi 88 | lvm2 89 | lynx 90 | mc 91 | mdadm 92 | memtest86+ 93 | memtest86+-efi 94 | mesa 95 | micro 96 | mkinitcpio 97 | mkinitcpio-archiso 98 | mkinitcpio-nfs-utils 99 | mobile-broadband-provider-info 100 | modemmanager 101 | mtools 102 | nano 103 | nano-syntax-highlighting 104 | nbd 105 | ndisc6 106 | net-tools 107 | networkmanager 108 | nfs-utils 109 | nilfs-utils 110 | nmap 111 | noto-fonts 112 | noto-fonts-cjk 113 | nss-mdns 114 | ntfs-3g 115 | ntp 116 | nvidia-utils 117 | nvidia-module-extractor 118 | nvme-cli 119 | occt 120 | open-iscsi 121 | open-vm-tools 122 | opendesktop-fonts 123 | openssh 124 | openvpn 125 | os-prober 126 | partclone 127 | parted 128 | partimage 129 | partitionmanager 130 | paru 131 | pcsclite 132 | pipewire 133 | pipewire-alsa 134 | pipewire-jack 135 | pipewire-pulse 136 | plasma-desktop 137 | plasma-integration 138 | plasma-nm 139 | plasma-pa 140 | plasma-workspace 141 | polkit 142 | polkit-kde-agent 143 | power-profiles-daemon 144 | pv 145 | qemu-guest-agent 146 | realtime-privileges 147 | refind 148 | rp-pppoe 149 | rsync 150 | rtkit 151 | rxvt-unicode-terminfo 152 | sddm 153 | sdparm 154 | sg3_utils 155 | smartmontools 156 | smbclient 157 | sof-firmware 158 | spectacle 159 | spice-vdagent 160 | squashfs-tools 161 | sudo 162 | syslinux 163 | systemd-resolvconf 164 | tcpdump 165 | testdisk 166 | tpm2-tss 167 | traceroute 168 | ttf-bitstream-vera 169 | ttf-dejavu 170 | ttf-liberation 171 | ttf-opensans 172 | udftools 173 | usb_modeswitch 174 | usbmuxd 175 | usbutils 176 | vim 177 | virtualbox-guest-utils 178 | vpnc 179 | wget 180 | wireless-regdb 181 | wireless_tools 182 | wireplumber 183 | wpa_supplicant 184 | wvdial 185 | vulkan-virtio 186 | xdg-user-dirs-gtk 187 | xdg-utils 188 | xf86-input-elographics 189 | xf86-input-evdev 190 | xf86-input-libinput 191 | xf86-input-synaptics 192 | xf86-input-vmmouse 193 | xf86-input-void 194 | xf86-video-amdgpu 195 | xf86-video-fbdev 196 | xf86-video-nouveau 197 | xf86-video-qxl 198 | xf86-video-vmware 199 | xfsprogs 200 | xl2tpd 201 | xorg-server 202 | xorg-xinit 203 | xorg-xkill 204 | xorg-xrandr 205 | xorg-xrdb 206 | yad 207 | zfs-utils 208 | -------------------------------------------------------------------------------- /archiso/pacman.conf: -------------------------------------------------------------------------------- 1 | # 2 | # /etc/pacman.conf 3 | # 4 | # See the pacman.conf(5) manpage for option and repository directives 5 | 6 | # 7 | # GENERAL OPTIONS 8 | # 9 | [options] 10 | # The following paths are commented out with their default values listed. 11 | # If you wish to use different paths, uncomment and update the paths. 12 | #RootDir = / 13 | #DBPath = /var/lib/pacman/ 14 | #CacheDir = /var/cache/pacman/pkg/ 15 | #LogFile = /var/log/pacman.log 16 | #GPGDir = /etc/pacman.d/gnupg/ 17 | #HookDir = /etc/pacman.d/hooks/ 18 | HoldPkg = pacman glibc 19 | #XferCommand = /usr/bin/curl -L -C - -f -o %o %u 20 | #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u 21 | #CleanMethod = KeepInstalled 22 | Architecture = auto 23 | 24 | # Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup 25 | #IgnorePkg = 26 | #IgnoreGroup = 27 | 28 | #NoUpgrade = 29 | #NoExtract = 30 | 31 | # Misc options 32 | #UseSyslog 33 | Color 34 | ILoveCandy 35 | #TotalDownload 36 | # We cannot check disk space from within a chroot environment 37 | #CheckSpace 38 | VerbosePkgLists 39 | DisableDownloadTimeout 40 | ParallelDownloads = 10 41 | # DownloadUser = alpm 42 | DisableSandbox 43 | 44 | # By default, pacman accepts packages signed by keys that its local keyring 45 | # trusts (see pacman-key and its man page), as well as unsigned packages. 46 | SigLevel = Required DatabaseOptional 47 | LocalFileSigLevel = Optional 48 | #RemoteFileSigLevel = Required 49 | 50 | # NOTE: You must run `pacman-key --init` before first using pacman; the local 51 | # keyring can then be populated with the keys of all official Arch Linux 52 | # packagers with `pacman-key --populate archlinux`. 53 | 54 | # 55 | # REPOSITORIES 56 | # - can be defined here or included from another file 57 | # - pacman will search repositories in the order defined here 58 | # - local/custom mirrors can be added here or in separate files 59 | # - repositories listed first will take precedence when packages 60 | # have identical names, regardless of version number 61 | # - URLs will have $repo replaced by the name of the current repo 62 | # - URLs will have $arch replaced by the name of the architecture 63 | # 64 | # Repository entries are of the format: 65 | # [repo-name] 66 | # Server = ServerName 67 | # Include = IncludePath 68 | # 69 | # The header [repo-name] is crucial - it must be present and 70 | # uncommented to enable the repo. 71 | # 72 | 73 | # The testing repositories are disabled by default. To enable, uncomment the 74 | # repo name header and Include lines. You can add preferred servers immediately 75 | # after the header, and they will be used before the default mirrors. 76 | [cachyos] 77 | # Yeah, that's dumb, but we have to do it for nvidia-module-extractor hook, 78 | # since mkarchiso doesn't import the keys inside rootfs for cachyos repo before 79 | # creating squashfs. The right solution here would be to find a way to import 80 | # the keys properly. 81 | SigLevel = Never 82 | Server = https://mirror.cachyos.org/repo/$arch/$repo 83 | 84 | #[core-testing] 85 | #Include = /etc/pacman.d/mirrorlist 86 | 87 | [core] 88 | Include = /etc/pacman.d/mirrorlist 89 | 90 | #[extra-testing] 91 | #Include = /etc/pacman.d/mirrorlist 92 | 93 | [extra] 94 | Include = /etc/pacman.d/mirrorlist 95 | 96 | # If you want to run 32 bit applications on your x86_64 system, 97 | # enable the multilib repositories as required here. 98 | 99 | #[multilib-testing] 100 | #Include = /etc/pacman.d/mirrorlist 101 | 102 | [multilib] 103 | Include = /etc/pacman.d/mirrorlist 104 | 105 | # An example of a custom package repository. See the pacman manpage for 106 | # tips on creating your own repositories. 107 | #[custom] 108 | #SigLevel = Optional TrustAll 109 | #Server = file:///home/custompkgs 110 | -------------------------------------------------------------------------------- /archiso/profiledef.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # shellcheck disable=SC2034 3 | 4 | iso_name="cachyos" 5 | iso_label="COS_$(date --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y%m)" 6 | iso_publisher="CachyOS " 7 | iso_application="CachyOS Live/Rescue DVD" 8 | iso_version="$(date --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y.%m.%d)" 9 | install_dir="arch" 10 | buildmodes=('iso') 11 | ## GRUB 12 | bootmodes=('bios.syslinux.mbr' 'bios.syslinux.eltorito' 'uefi-x64.grub.esp' 'uefi-x64.grub.eltorito') 13 | ## systemd-boot 14 | #bootmodes=('bios.syslinux.mbr' 'bios.syslinux.eltorito' 'uefi-x64.systemd-boot.esp' 'uefi-x64.systemd-boot.eltorito') 15 | arch="x86_64" 16 | pacman_conf="pacman.conf" 17 | airootfs_image_type="squashfs" 18 | airootfs_image_tool_options=('-comp' 'xz' '-Xbcj' 'x86' '-b' '1M' '-Xdict-size' '1M') 19 | file_permissions=( 20 | ["/etc/shadow"]="0:0:400" 21 | ["/etc/gshadow"]="0:0:400" 22 | ["/root"]="0:0:750" 23 | ["/etc/polkit-1/rules.d"]="0:0:750" 24 | ["/etc/sudoers.d"]="0:0:750" 25 | ["/etc/sudoers.d/g_wheel"]="0:0:440" 26 | ["/root/.automated_script.sh"]="0:0:755" 27 | ["/root/.gnupg"]="0:0:700" 28 | ["/usr/local/bin/choose-mirror"]="0:0:755" 29 | ["/usr/local/bin/dmcheck"]="0:0:755" 30 | ["/usr/local/bin/calamares-online.sh"]="0:0:755" 31 | ["/usr/local/bin/remove-nvidia"]="0:0:755" 32 | ["/usr/local/bin/removeun"]="0:0:755" 33 | ["/usr/local/bin/removeun-online"]="0:0:755" 34 | ["/usr/local/bin/prepare-live-desktop.sh"]="0:0:755" 35 | ["/usr/local/bin/nvidia-module-loader"]="0:0:755" 36 | ) 37 | -------------------------------------------------------------------------------- /archiso/syslinux/archiso_head.cfg: -------------------------------------------------------------------------------- 1 | SERIAL 0 115200 2 | UI vesamenu.c32 3 | MENU TITLE CachyOS 4 | MENU BACKGROUND splash.png 5 | 6 | MENU WIDTH 78 7 | MENU MARGIN 4 8 | MENU ROWS 7 9 | MENU VSHIFT 10 10 | MENU TABMSGROW 14 11 | MENU CMDLINEROW 14 12 | MENU HELPMSGROW 16 13 | MENU HELPMSGENDROW 29 14 | 15 | # Refer to http://syslinux.zytor.com/wiki/index.php/Doc/menu 16 | 17 | MENU COLOR border 30;44 #40ffffff #a0000000 std 18 | MENU COLOR title 1;36;44 #9033ccff #a0000000 std 19 | MENU COLOR sel 7;37;40 #e0ffffff #20ffffff all 20 | MENU COLOR unsel 37;44 #50ffffff #a0000000 std 21 | MENU COLOR help 37;40 #c0ffffff #a0000000 std 22 | MENU COLOR timeout_msg 37;40 #80ffffff #00000000 std 23 | MENU COLOR timeout 1;37;40 #c0ffffff #00000000 std 24 | MENU COLOR msg07 37;40 #90ffffff #a0000000 std 25 | MENU COLOR tabmsg 31;40 #30ffffff #00000000 std 26 | 27 | MENU CLEAR 28 | MENU IMMEDIATE 29 | -------------------------------------------------------------------------------- /archiso/syslinux/archiso_pxe-linux.cfg: -------------------------------------------------------------------------------- 1 | LABEL arch64_nbd 2 | TEXT HELP 3 | Boot the CachyOS install medium using NBD. 4 | It allows you to install CachyOS or perform system maintenance. 5 | ENDTEXT 6 | MENU LABEL CachyOS install medium (x86_64, NBD) 7 | LINUX ::/%INSTALL_DIR%/boot/x86_64/vmlinuz-linux-cachyos 8 | INITRD ::/%INSTALL_DIR%/boot/x86_64/initramfs-linux-cachyos.img 9 | APPEND archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% archiso_nbd_srv=${pxeserver} cms_verify=y 10 | SYSAPPEND 3 11 | 12 | LABEL arch64_nfs 13 | TEXT HELP 14 | Boot the CachyOS live medium using NFS. 15 | It allows you to install CachyOS or perform system maintenance. 16 | ENDTEXT 17 | MENU LABEL CachyOS install medium (x86_64, NFS) 18 | LINUX ::/%INSTALL_DIR%/boot/x86_64/vmlinuz-linux-cachyos 19 | INITRD ::/%INSTALL_DIR%/boot/x86_64/initramfs-linux-cachyos.img 20 | APPEND archisobasedir=%INSTALL_DIR% archiso_nfs_srv=${pxeserver}:/run/archiso/bootmnt cms_verify=y 21 | SYSAPPEND 3 22 | 23 | LABEL arch64_http 24 | TEXT HELP 25 | Boot the CachyOS live medium using HTTP. 26 | It allows you to install CachyOS or perform system maintenance. 27 | ENDTEXT 28 | MENU LABEL CachyOS install medium (x86_64, HTTP) 29 | LINUX ::/%INSTALL_DIR%/boot/x86_64/vmlinuz-linux-cachyos 30 | INITRD ::/%INSTALL_DIR%/boot/x86_64/initramfs-linux-cachyos.img 31 | APPEND archisobasedir=%INSTALL_DIR% archiso_http_srv=http://${pxeserver}/ cms_verify=y 32 | SYSAPPEND 3 33 | -------------------------------------------------------------------------------- /archiso/syslinux/archiso_pxe.cfg: -------------------------------------------------------------------------------- 1 | INCLUDE archiso_head.cfg 2 | 3 | INCLUDE archiso_pxe-linux.cfg 4 | 5 | INCLUDE archiso_tail.cfg 6 | -------------------------------------------------------------------------------- /archiso/syslinux/archiso_sys-linux.cfg: -------------------------------------------------------------------------------- 1 | LABEL cos64 2 | TEXT HELP 3 | Boot the CachyOS install medium on BIOS. 4 | It allows you to install CachyOS or perform system maintenance. 5 | ENDTEXT 6 | MENU LABEL CachyOS default (x86_64, BIOS) 7 | LINUX /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux-cachyos 8 | INITRD /%INSTALL_DIR%/boot/x86_64/initramfs-linux-cachyos.img 9 | APPEND archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% cow_spacesize=10G copytoram=auto module_blacklist=pcspkr i915.modeset=1 amdgpu.modeset=1 nvme_load=yes 10 | 11 | # Fallback (nomodeset) 12 | LABEL cos64fb 13 | TEXT HELP 14 | Boot the CachyOS install medium on Bios in fallback mode 15 | It allows you to install CachyOS or perform system maintenance. 16 | ENDTEXT 17 | MENU LABEL CachyOS Fallback (nomodeset, BIOS) 18 | LINUX /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux-cachyos 19 | INITRD /%INSTALL_DIR%/boot/x86_64/initramfs-linux-cachyos.img 20 | APPEND archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% cow_spacesize=10G copytoram=auto module_blacklist=nvidia,nvidia_modeset,nvidia_uvm,nvidia_drm,pcspkr nomodeset nvme_load=yes 21 | -------------------------------------------------------------------------------- /archiso/syslinux/archiso_sys.cfg: -------------------------------------------------------------------------------- 1 | INCLUDE archiso_head.cfg 2 | 3 | DEFAULT arch64 4 | TIMEOUT 150 5 | 6 | INCLUDE archiso_sys-linux.cfg 7 | 8 | INCLUDE archiso_tail.cfg 9 | -------------------------------------------------------------------------------- /archiso/syslinux/archiso_tail.cfg: -------------------------------------------------------------------------------- 1 | LABEL existing 2 | TEXT HELP 3 | Boot an existing operating system. 4 | Press TAB to edit the disk and partition number to boot. 5 | ENDTEXT 6 | MENU LABEL Boot existing OS 7 | COM32 chain.c32 8 | APPEND hd0 0 9 | 10 | # http://www.memtest.org/ 11 | LABEL memtest 12 | MENU LABEL Run Memtest86+ (RAM test) 13 | LINUX /%INSTALL_DIR%/boot/memtest 14 | 15 | # http://hdt-project.org/ 16 | LABEL hdt 17 | MENU LABEL Hardware Information (HDT) 18 | COM32 hdt.c32 19 | APPEND modules_alias=hdt/modalias.gz pciids=hdt/pciids.gz 20 | 21 | LABEL reboot 22 | TEXT HELP 23 | Reboot computer. 24 | The computer's firmware must support APM. 25 | ENDTEXT 26 | MENU LABEL Reboot 27 | COM32 reboot.c32 28 | 29 | LABEL poweroff 30 | TEXT HELP 31 | Power off computer. 32 | The computer's firmware must support APM. 33 | ENDTEXT 34 | MENU LABEL Power Off 35 | COM32 poweroff.c32 36 | -------------------------------------------------------------------------------- /archiso/syslinux/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CachyOS/CachyOS-Live-ISO/6d14bd4fc6346afb998af9c039498e2d06047496/archiso/syslinux/splash.png -------------------------------------------------------------------------------- /archiso/syslinux/splash1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CachyOS/CachyOS-Live-ISO/6d14bd4fc6346afb998af9c039498e2d06047496/archiso/syslinux/splash1.png -------------------------------------------------------------------------------- /archiso/syslinux/syslinux.cfg: -------------------------------------------------------------------------------- 1 | DEFAULT select 2 | 3 | LABEL select 4 | COM32 whichsys.c32 5 | APPEND -pxe- pxe -sys- sys -iso- sys 6 | 7 | LABEL pxe 8 | CONFIG archiso_pxe.cfg 9 | 10 | LABEL sys 11 | CONFIG archiso_sys.cfg 12 | -------------------------------------------------------------------------------- /buildiso.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # This program is free software; you can redistribute it and/or modify 4 | # it under the terms of the GNU General Public License as published by 5 | # the Free Software Foundation; version 2 of the License. 6 | # 7 | # This program is distributed in the hope that it will be useful, 8 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | # GNU General Public License for more details. 11 | 12 | src_dir=$(pwd) 13 | [[ -r ${src_dir}/util-msg.sh ]] && source ${src_dir}/util-msg.sh 14 | import ${src_dir}/util.sh 15 | 16 | # setting of the general parameters 17 | work_dir="${src_dir}/build" 18 | outFolder="${src_dir}/out" 19 | 20 | build_list_iso="desktop" 21 | clean_first=true 22 | verbose=false 23 | 24 | usage() { 25 | echo "Usage: ${0##*/} [options]" 26 | echo ' -c Disable clean work dir' 27 | echo " -p Buildset or profile [default: ${build_list_iso}]" 28 | echo ' -v Verbose output to log file, show profile detail (-q)' 29 | echo ' -h This help' 30 | echo '' 31 | echo '' 32 | exit $1 33 | } 34 | 35 | orig_argv=("$@") 36 | 37 | opts='p:cvh' 38 | 39 | while getopts "${opts}" arg; do 40 | case "${arg}" in 41 | c) clean_first=false ;; 42 | p) build_list_iso="$OPTARG" ;; 43 | v) verbose=true ;; 44 | h|?) usage 0 ;; 45 | *) echo "invalid argument '${arg}'"; usage 1 ;; 46 | esac 47 | done 48 | 49 | shift $(($OPTIND - 1)) 50 | 51 | timer_start=$(get_timer) 52 | 53 | #check_root "$0" "${orig_argv[@]}" 54 | 55 | prepare_dir "${work_dir}" 56 | 57 | import ${src_dir}/util-iso.sh 58 | import ${src_dir}/util-iso-mount.sh 59 | 60 | check_requirements 61 | 62 | for sig in TERM HUP QUIT; do 63 | trap "trap_exit $sig \"$(gettext "%s signal caught. Exiting...")\" \"$sig\"" "$sig" 64 | done 65 | trap 'trap_exit INT "$(gettext "Aborted by user! Exiting...")"' INT 66 | trap 'trap_exit USR1 "$(gettext "An unknown error has occurred. Exiting...")"' ERR 67 | 68 | run_build "${build_list_iso}" 69 | -------------------------------------------------------------------------------- /ci.build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | pacman --noconfirm -Syu --needed base-devel archiso mkinitcpio-archiso git squashfs-tools 4 | 5 | sudo ./fix_permissions.sh 6 | sudo ./mkarchiso . 7 | -------------------------------------------------------------------------------- /lddd.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # This program is free software; you can redistribute it and/or modify 4 | # it under the terms of the GNU General Public License as published by 5 | # the Free Software Foundation; version 2 of the License. 6 | # 7 | # This program is distributed in the hope that it will be useful, 8 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | # GNU General Public License for more details. 11 | 12 | src_dir=$(pwd) 13 | [[ -r ${src_dir}/util-msg.sh ]] && source ${src_dir}/util-msg.sh 14 | 15 | ifs=$IFS 16 | IFS="${IFS}:" 17 | 18 | libdirs="/lib /usr/lib /usr/local/lib $(cat /etc/ld.so.conf.d/*)" 19 | extras= 20 | 21 | TMPDIR=$(mktemp -d --tmpdir lddd-script.XXXX) 22 | 23 | msg 'Go out and drink some tea, this will take a while :) ...' 24 | # Check ELF binaries in the PATH and specified dir trees. 25 | for tree in $PATH $libdirs $extras; do 26 | msg2 "DIR $tree" 27 | 28 | # Get list of files in tree. 29 | files=$(find $tree -type f ! -name '*.a' ! -name '*.la' ! -name '*.py*' ! -name '*.txt' ! -name '*.h' ! -name '*.ttf' ! \ 30 | -name '*.rb' ! -name '*.ko' ! -name '*.pc' ! -name '*.enc' ! -name '*.cf' ! -name '*.def' ! -name '*.rules' ! -name \ 31 | '*.cmi' ! -name '*.mli' ! -name '*.ml' ! -name '*.cma' ! -name '*.cmx' ! -name '*.cmxa' ! -name '*.pod' ! -name '*.pm' \ 32 | ! -name '*.pl' ! -name '*.al' ! -name '*.tcl' ! -name '*.bs' ! -name '*.o' ! -name '*.png' ! -name '*.gif' ! -name '*.cmo' \ 33 | ! -name '*.cgi' ! -name '*.defs' ! -name '*.conf' ! -name '*_LOCALE' ! -name 'Compose' ! -name '*_OBJS' ! -name '*.msg' ! \ 34 | -name '*.mcopclass' ! -name '*.mcoptype') 35 | IFS=$ifs 36 | for i in $files; do 37 | if (( $(file $i | grep -c 'ELF') != 0 )); then 38 | # Is an ELF binary. 39 | if (( $(ldd $i 2>/dev/null | grep -c 'not found') != 0 )); then 40 | # Missing lib. 41 | echo "$i:" >> $TMPDIR/raw.txt 42 | ldd $i 2>/dev/null | grep 'not found' >> $TMPDIR/raw.txt 43 | fi 44 | fi 45 | done 46 | done 47 | grep '^/' $TMPDIR/raw.txt | sed -e 's/://g' >> $TMPDIR/affected-files.txt 48 | # invoke pacman 49 | for i in $(cat $TMPDIR/affected-files.txt); do 50 | pacman -Qo $i | awk '{print $4,$5}' >> $TMPDIR/pacman.txt 51 | done 52 | # clean list 53 | sort -u $TMPDIR/pacman.txt >> $TMPDIR/possible-rebuilds.txt 54 | 55 | msg "Files saved to $TMPDIR" 56 | -------------------------------------------------------------------------------- /testiso.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # This program is free software; you can redistribute it and/or modify 4 | # it under the terms of the GNU General Public License as published by 5 | # the Free Software Foundation; version 2 of the License. 6 | # 7 | # This program is distributed in the hope that it will be useful, 8 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | # GNU General Public License for more details. 11 | 12 | src_dir=$(pwd) 13 | [[ -r ${src_dir}/util-msg.sh ]] && source ${src_dir}/util-msg.sh 14 | import ${src_dir}/util.sh 15 | 16 | # setting of the general parameters 17 | work_dir="${src_dir}/build" 18 | outFolder="${src_dir}/out" 19 | 20 | if [ $# -eq 0 ]; then 21 | msg "No " 22 | msg2 "Usage: testiso " 23 | exit 1 24 | fi 25 | 26 | vdi_size=10240 # 10GB size 27 | 28 | #Check if already exist virtual disk and in case create it 29 | if [[ -e ~/VirtualBox\ VMs/CachyOS/CachyOS.vbox ]]; then 30 | msg "CachyOS Virtual Machine Found" 31 | else 32 | msg "We create a new VirtualBox Machine called CachyOS" 33 | msg2 "We create a new Virtual Disk Image ( vdi ) with ${vdi_size}GB" 34 | VBoxManage createmedium disk --filename ~/VirtualBox\ VMs/CachyOS/CachyOS.vdi --size ${vdi_size} --format VDI --variant Fixed 35 | 36 | UUID=$(VBoxManage showhdinfo ~/VirtualBox\ VMs/CachyOS/CachyOS.vdi | awk 'NR == 1 {print $2}') #uuid of vdi disk 37 | gui_lang=$(awk -F'[.=]' '/LANG/ {print $2}' /etc/locale.conf) 38 | 39 | echo ' 40 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | ' > ~/VirtualBox\ VMs/CachyOS/CachyOS.vbox 97 | 98 | sed -i "s/UUID/$UUID/g" ~/VirtualBox\ VMs/CachyOS/CachyOS.vbox 99 | sed -i "s/gui_lang/$gui_lang/g" ~/VirtualBox\ VMs/CachyOS/CachyOS.vbox 100 | 101 | VBoxManage registervm ~/VirtualBox\ VMs/CachyOS/CachyOS.vbox #register the cachyos vbox machine 102 | fi 103 | 104 | 105 | VBoxManage storageattach CachyOS --storagectl IDE --port 1 --device 0 --medium emptydrive #empty the dvd drive 106 | sleep 1 107 | 108 | iso_dir=$(find ${outFolder} -type d -iname "$1") 109 | 110 | iso=${iso_dir} 111 | 112 | if [[ -e $(ls ${iso}/*.iso) ]]; then 113 | iso_name=$(ls ${iso}/*.iso) 114 | else msg "No ISO to load present" 115 | exit 1 116 | fi 117 | 118 | VBoxManage storageattach CachyOS --storagectl IDE --port 1 --device 0 --type dvddrive --medium $iso_name #attach dvd cachyos iso 119 | 120 | sleep 1 121 | 122 | msg2 "Run Vbox CachyOS with ${iso_name}" 123 | 124 | sleep 2 125 | 126 | VBoxManage startvm CachyOS #run vbox machine 127 | 128 | -------------------------------------------------------------------------------- /util-iso-mount.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # This program is free software; you can redistribute it and/or modify 4 | # it under the terms of the GNU General Public License as published by 5 | # the Free Software Foundation; version 2 of the License. 6 | # 7 | # This program is distributed in the hope that it will be useful, 8 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | # GNU General Public License for more details. 11 | 12 | umount_img() { 13 | if [[ -n ${IMG_ACTIVE_MOUNTS[@]} ]]; then 14 | info "umount: [%s]" "${IMG_ACTIVE_MOUNTS[@]}" 15 | sudo umount "${IMG_ACTIVE_MOUNTS[@]}" 16 | unset IMG_ACTIVE_MOUNTS 17 | rm -r "$1" 18 | fi 19 | } 20 | 21 | check_umount() { 22 | if mountpoint -q "$1"; then 23 | sudo umount "$1" 24 | fi 25 | } 26 | 27 | umount_fs(){ 28 | if [[ -n ${FS_ACTIVE_MOUNTS[@]} ]]; then 29 | info "overlayfs umount: [%s]" "${FS_ACTIVE_MOUNTS[@]}" 30 | #umount "${FS_ACTIVE_MOUNTS[@]}" 31 | for i in "${FS_ACTIVE_MOUNTS[@]}" 32 | do 33 | info "umount overlayfs: [%s]" "$i" 34 | check_umount $i 35 | done 36 | unset FS_ACTIVE_MOUNTS 37 | rm -rf "${mnt_dir}/work" 38 | fi 39 | mount_folders=$(grep "${work_dir}" /proc/mounts | awk '{print$2}' | sort -r) 40 | for i in $mount_folders 41 | do 42 | info "umount folder: [%s]" "$i" 43 | check_umount $i 44 | done 45 | } 46 | -------------------------------------------------------------------------------- /util-iso.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # This program is free software; you can redistribute it and/or modify 4 | # it under the terms of the GNU General Public License as published by 5 | # the Free Software Foundation; version 2 of the License. 6 | # 7 | # This program is distributed in the hope that it will be useful, 8 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | # GNU General Public License for more details. 11 | 12 | error_function() { 13 | if [[ -p $logpipe ]]; then 14 | rm "$logpipe" 15 | fi 16 | # first exit all subshells, then print the error 17 | if (( ! BASH_SUBSHELL )); then 18 | error "A failure occurred in %s()." "$1" 19 | plain "Aborting..." 20 | fi 21 | umount_fs 22 | umount_img 23 | exit 2 24 | } 25 | 26 | run_safe() { 27 | local restoretrap func="$1" 28 | set -e 29 | set -E 30 | restoretrap=$(trap -p ERR) 31 | trap 'error_function $func' ERR 32 | 33 | if ${verbose}; then 34 | run_log "$func" 35 | else 36 | "$func" 37 | fi 38 | 39 | eval $restoretrap 40 | set +E 41 | set +e 42 | } 43 | 44 | check_umount() { 45 | if mountpoint -q "$1"; then 46 | umount -l "$1" 47 | fi 48 | } 49 | 50 | trap_exit() { 51 | local sig=$1; shift 52 | error "$@" 53 | umount_fs 54 | trap -- "$sig" 55 | kill "-$sig" "$$" 56 | } 57 | 58 | generate_motd() { 59 | cat << 'EOF' > ${src_dir}/archiso/airootfs/etc/motd 60 | This ISO is based on ArchLinux ISO modified to provide Installation Environment for CachyOS. 61 | https://cachyos.org 62 | 63 | CachyOS Archiso Sources: 64 | https://github.com/cachyos/cachyos-live-iso 65 | 66 | ArchLinux ISO Source: 67 | https://gitlab.archlinux.org/archlinux/archiso 68 | 69 | Calamares is used as GUI installer: 70 | https://github.com/calamares/calamares 71 | 72 | Live environment will start now and let you install CachyOS to disk. 73 | 74 | Getting help at the forum: https://discuss.cachyos.org 75 | 76 | Welcome to your CachyOS! 77 | 78 |                                            79 | EOF 80 | } 81 | 82 | fetch_cachyos_mirrorlist() { 83 | mkdir -p ${src_dir}/archiso/airootfs/etc/pacman.d 84 | local _mirrorlist_url="https://github.com/CachyOS/CachyOS-PKGBUILDS/raw/master/cachyos-mirrorlist/cachyos-mirrorlist" 85 | 86 | curl -sSL "${_mirrorlist_url}" > ${src_dir}/archiso/airootfs/etc/pacman.d/cachyos-mirrorlist 87 | } 88 | 89 | change_grub_version() { 90 | local _version="$1" 91 | sed -i "s/CACHYOS_VERSION=\".*\"/CACHYOS_VERSION=\"${_version}\"/" ${src_dir}/archiso/grub/grub.cfg 92 | } 93 | 94 | generate_environment() { 95 | local _profile="$1" 96 | if [ "$_profile" == "desktop" ]; then 97 | cat << 'EOF' > ${src_dir}/archiso/airootfs/etc/environment 98 | ZPOOL_VDEV_NAME_PATH=1 99 | EOF 100 | fi 101 | } 102 | 103 | generate_version_tag() { 104 | local _profile="$1" 105 | local _version="$2" 106 | if [ "$_profile" == "desktop" ]; then 107 | echo "${_version}" > ${src_dir}/archiso/airootfs/etc/version-tag 108 | fi 109 | } 110 | 111 | generate_edition_tag() { 112 | local _edition="$1" 113 | echo "${_edition}" > ${src_dir}/archiso/airootfs/etc/edition-tag 114 | } 115 | 116 | modify_mkarchiso() { 117 | local _is_hack_applied="$(grep -q 'archlinux-keyring-wkd-sync.timer' /usr/bin/mkarchiso; echo $?)" 118 | if [ $_is_hack_applied -ne 0 ]; then 119 | msg "Patching mkarchiso with disabled arch keyrings timer..." 120 | 121 | sudo sed 's/_run_once _make_customize_airootfs/_run_once _make_customize_airootfs\n\trm -f "${pacstrap_dir}\/usr\/lib\/systemd\/system\/timers.target.wants\/archlinux-keyring-wkd-sync.timer"\n/' -i /usr/bin/mkarchiso 122 | else 123 | msg "mkarchiso is already patched!" 124 | fi 125 | } 126 | 127 | prepare_profile(){ 128 | profile=$1 129 | 130 | info "Profile: [%s]" "${profile}" 131 | 132 | local _iso_version="$(date +%y%m%d)" 133 | change_grub_version "${_iso_version}" 134 | 135 | # Fetch up-to-date version of CachyOS repo mirrorlist 136 | fetch_cachyos_mirrorlist 137 | 138 | generate_motd 139 | 140 | rm -f ${src_dir}/archiso/airootfs/etc/systemd/system/display-manager.service 141 | if [ "$profile" == "desktop" ]; then 142 | cp ${src_dir}/archiso/packages_desktop.x86_64 ${src_dir}/archiso/packages.x86_64 143 | ln -sf /usr/lib/systemd/system/sddm.service ${src_dir}/archiso/airootfs/etc/systemd/system/display-manager.service 144 | else 145 | die "Unknown profile: [%s]" "${profile}" 146 | fi 147 | 148 | generate_environment "${profile}" 149 | 150 | # Write out version to be able to check ISO version 151 | generate_version_tag "${profile}" "${_iso_version}" 152 | 153 | # Write out edition to be able to check ISO edition 154 | generate_edition_tag "${profile}" 155 | 156 | iso_file=$(gen_iso_fn).iso 157 | } 158 | 159 | run_build() { 160 | prepare_profile "$1" 161 | local _profile="$1" 162 | 163 | msg "Prepare [work: ${work_dir}, out: ${outFolder}]" 164 | 165 | if $verbose; then 166 | msg2 "Making mkarchiso verbose" 167 | sudo sed -i 's/quiet="y"/quiet="n"/g' /usr/bin/mkarchiso 168 | fi 169 | 170 | if $clean_first; then 171 | msg2 "Deleting the build folder if one exists - takes some time" 172 | umount_fs 173 | [ -d ${work_dir} ] && sudo rm -rf ${work_dir} 174 | fi 175 | 176 | msg2 "Copying the Archiso folder to build work" 177 | mkdir -p ${work_dir} 178 | cp -r archiso ${work_dir}/archiso 179 | 180 | msg "Start [Build ISO]" 181 | 182 | # insert removal of archlinux keyrings timer on the ISO before pack 183 | modify_mkarchiso 184 | 185 | [ -d "$outFolder/$_profile" ] || mkdir -p "$outFolder/$_profile" 186 | cd ${work_dir}/archiso/ 187 | sudo mkarchiso -v -w ${work_dir} -o "$outFolder/$_profile" ${work_dir}/archiso/ 188 | sudo chown $USER $outFolder 189 | 190 | cp ${work_dir}/iso/arch/pkglist.x86_64.txt "$outFolder/$_profile/$(gen_iso_fn).pkgs.txt" 191 | mv "$outFolder/$_profile/cachyos-$(date --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y.%m.%d)-x86_64.iso" "$outFolder/$_profile/${iso_file}" 192 | 193 | msg "Done [Build ISO] ${iso_file}" 194 | msg "Finished building [%s]" "${_profile}" 195 | 196 | cd "$outFolder/$_profile" 197 | for f in $(find . -maxdepth 1 -name '*.iso' | cut -d'/' -f2); do 198 | if [[ ! -e $f.sha256 ]]; then 199 | create_chksums $f 200 | elif [[ $f -nt $f.sha256 ]]; then 201 | create_chksums $f 202 | else 203 | info "checksums for [$f] already created" 204 | fi 205 | if [[ ! -e $f.sig ]]; then 206 | sign_with_key $f 207 | elif [[ $f -nt $f.sig ]]; then 208 | rm $f.sig 209 | sign_with_key $f 210 | else 211 | info "signature file for [$f] already created" 212 | fi 213 | done 214 | show_elapsed_time "${FUNCNAME}" "${timer_start}" 215 | } 216 | 217 | gen_iso_fn(){ 218 | local vars=() name 219 | vars+=("cachyos") 220 | [[ -n ${profile} ]] && vars+=("${profile}") 221 | 222 | vars+=("linux") 223 | vars+=("$(date +%y%m%d)") 224 | 225 | for n in ${vars[@]}; do 226 | name=${name:-}${name:+-}${n} 227 | done 228 | 229 | echo $name 230 | } 231 | -------------------------------------------------------------------------------- /util-msg.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # This program is free software; you can redistribute it and/or modify 3 | # it under the terms of the GNU General Public License as published by 4 | # the Free Software Foundation; version 2 of the License. 5 | # 6 | # This program is distributed in the hope that it will be useful, 7 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 9 | # GNU General Public License for more details. 10 | 11 | export LC_MESSAGES=C 12 | export LANG=C 13 | 14 | disable_colors(){ 15 | unset ALL_OFF BOLD BLUE GREEN RED YELLOW 16 | } 17 | 18 | enable_colors(){ 19 | # prefer terminal safe colored and bold text when tput is supported 20 | if tput setaf 0 &>/dev/null; then 21 | ALL_OFF="$(tput sgr0)" 22 | BOLD="$(tput bold)" 23 | RED="${BOLD}$(tput setaf 1)" 24 | GREEN="${BOLD}$(tput setaf 2)" 25 | YELLOW="${BOLD}$(tput setaf 3)" 26 | BLUE="${BOLD}$(tput setaf 4)" 27 | else 28 | ALL_OFF="\e[0m" 29 | BOLD="\e[1m" 30 | RED="${BOLD}\e[31m" 31 | GREEN="${BOLD}\e[32m" 32 | YELLOW="${BOLD}\e[33m" 33 | BLUE="${BOLD}\e[34m" 34 | fi 35 | readonly ALL_OFF BOLD BLUE GREEN RED YELLOW 36 | } 37 | 38 | if [[ -t 2 ]]; then 39 | enable_colors 40 | else 41 | disable_colors 42 | fi 43 | 44 | plain() { 45 | local mesg=$1; shift 46 | printf "${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&2 47 | } 48 | 49 | msg() { 50 | local mesg=$1; shift 51 | printf "${GREEN}==>${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&2 52 | } 53 | 54 | msg2() { 55 | local mesg=$1; shift 56 | printf "${BLUE} ->${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&2 57 | } 58 | 59 | info() { 60 | local mesg=$1; shift 61 | printf "${YELLOW} -->${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&2 62 | } 63 | 64 | warning() { 65 | local mesg=$1; shift 66 | printf "${YELLOW}==> WARNING:${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&2 67 | } 68 | 69 | error() { 70 | local mesg=$1; shift 71 | printf "${RED}==> ERROR:${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&2 72 | } 73 | 74 | stat_busy() { 75 | local mesg=$1; shift 76 | printf "${GREEN}==>${ALL_OFF}${BOLD} ${mesg}...${ALL_OFF}" >&2 77 | } 78 | 79 | stat_done() { 80 | printf "${BOLD}done${ALL_OFF}\n" >&2 81 | } 82 | 83 | cleanup() { 84 | exit ${1:-0} 85 | } 86 | 87 | abort() { 88 | error 'Aborting...' 89 | cleanup 255 90 | } 91 | 92 | die() { 93 | (( $# )) && error "$@" 94 | cleanup 255 95 | } 96 | 97 | import(){ 98 | if [[ -r $1 ]]; then 99 | source $1 100 | else 101 | die "Could not import $1" 102 | fi 103 | } 104 | -------------------------------------------------------------------------------- /util.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # This program is free software; you can redistribute it and/or modify 3 | # it under the terms of the GNU General Public License as published by 4 | # the Free Software Foundation; version 2 of the License. 5 | # 6 | # This program is distributed in the hope that it will be useful, 7 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 9 | # GNU General Public License for more details. 10 | 11 | get_timer(){ 12 | echo $(date +%s) 13 | } 14 | 15 | # $1: start timer 16 | elapsed_time(){ 17 | echo $(echo $1 $(get_timer) | awk '{ printf "%0.2f",($2-$1)/60 }') 18 | } 19 | 20 | show_elapsed_time(){ 21 | info "Time %s: %s minutes" "$1" "$(elapsed_time $2)" 22 | } 23 | 24 | check_root(){ 25 | (( EUID == 0 )) && return 26 | if type -P sudo >/dev/null; then 27 | exec sudo -- "$@" 28 | else 29 | exec su root -c "$(printf ' %q' "$@")" 30 | fi 31 | } 32 | 33 | check_requirements(){ 34 | local package="archiso" 35 | #checking if application is already installed or else install with aur helpers 36 | if ! pacman -Qi $package &> /dev/null; then 37 | # checking which helper is installed 38 | if pacman -Qi yay &> /dev/null; then 39 | echo "################################################################" 40 | echo "######### Installing with yay" 41 | echo "################################################################" 42 | yay -S --noconfirm $package 43 | elif pacman -Qi trizen &> /dev/null; then 44 | echo "################################################################" 45 | echo "######### Installing with trizen" 46 | echo "################################################################" 47 | trizen -S --noconfirm --needed --noedit $package 48 | fi 49 | 50 | # Just checking if installation was successful 51 | if pacman -Qi $package &> /dev/null; then 52 | echo "################################################################" 53 | echo "######### "$package" has been installed" 54 | echo "################################################################" 55 | else 56 | echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" 57 | echo "!!!!!!!!! "$package" has NOT been installed" 58 | echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" 59 | exit 1 60 | fi 61 | fi 62 | } 63 | 64 | prepare_dir(){ 65 | if [[ ! -d $1 ]]; then 66 | mkdir -p $1 67 | fi 68 | } 69 | 70 | load_vars() { 71 | [[ -f $1 ]] || return 1 72 | 73 | local var 74 | for var in {SRC,SRCPKG,PKG,LOG}DEST MAKEFLAGS PACKAGER CARCH GPGKEY; do 75 | [[ -z ${!var} ]] && eval $(grep -a "^${var}=" "$1") 76 | done 77 | 78 | return 0 79 | } 80 | 81 | create_chksums() { 82 | msg2 "creating checksums for [$1]" 83 | sha1sum $1 > $1.sha1 84 | sha256sum $1 > $1.sha256 85 | } 86 | 87 | sign_with_key() { 88 | load_vars "$HOME/.makepkg.conf" 89 | load_vars /etc/makepkg.conf 90 | 91 | if [ ! -e "$1" ]; then 92 | error "%s does not exist!" "$1" 93 | exit 1 94 | fi 95 | 96 | msg2 "signing [%s] with key %s" "${1##*/}" "${GPGKEY}" 97 | [[ -e "$1".sig ]] && rm "$1".sig 98 | 99 | local SIGNWITHKEY=() 100 | if [[ -n $GPGKEY ]]; then 101 | SIGNWITHKEY=(-u "${GPGKEY}") 102 | fi 103 | gpg --detach-sign --use-agent "${SIGNWITHKEY[@]}" "$1" 104 | } 105 | --------------------------------------------------------------------------------