generated from parchlinux/parch-iso-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 565429e
Showing
94 changed files
with
2,364 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# This workflow will build an Arch Linux ISO file when a release is created. | ||
name: build parchiso per release | ||
on: | ||
release: | ||
types: | ||
- created | ||
|
||
jobs: | ||
build: | ||
permissions: | ||
contents: write | ||
runs-on: ubuntu-latest | ||
container: | ||
image: archlinux:latest | ||
options: --privileged | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install Packages via Pacman | ||
run: | | ||
pacman -Suy --noconfirm --noprogressbar | ||
pacman -Sy --noconfirm --noprogressbar --needed git archiso python python-pygithub reflector | ||
- name: Change pacman mirrors | ||
run: | | ||
reflector -n 3 --protocol https --save /etc/pacman.d/mirrorlist | ||
pacman -Syy | ||
- name: Build image | ||
run: mkarchiso -v iso/ | ||
- name: Upload iso to the release | ||
env: | ||
API_KEY: ${{ secrets.GITHUB_TOKEN }} | ||
REPO_NAME: ${{ github.repository }} | ||
RELEASE_NAME: ${{ github.ref_name }} | ||
run: python tools/upload_asset.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
ci: | ||
autoupdate_branch: "2.1.x" | ||
autoupdate_schedule: monthly | ||
repos: | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v2.32.0 | ||
hooks: | ||
- id: pyupgrade | ||
args: ["--py36-plus"] | ||
- repo: https://github.com/asottile/reorder_python_imports | ||
rev: v3.1.0 | ||
hooks: | ||
- id: reorder-python-imports | ||
name: Reorder Python imports (src, tests) | ||
files: "^(?!examples/)" | ||
args: ["--application-directories", "src"] | ||
additional_dependencies: ["setuptools>60.9"] | ||
- repo: https://github.com/psf/black | ||
rev: 22.3.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 4.0.1 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: | ||
- flake8-bugbear | ||
- flake8-implicit-str-concat | ||
- repo: https://github.com/peterdemin/pip-compile-multi | ||
rev: v2.4.5 | ||
hooks: | ||
- id: pip-compile-multi-verify | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.2.0 | ||
hooks: | ||
- id: fix-byte-order-marker | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.2.0 | ||
hooks: | ||
- id: fix-byte-order-marker | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-case-conflict | ||
- id: check-merge-conflict |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Parch Linux iso template | ||
|
||
## Use this template for making releases |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
work/ | ||
out/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Section "InputClass" | ||
Identifier "MyTouchpad" | ||
MatchIsTouchpad "on" | ||
Driver "libinput" | ||
Option "Tapping" "on" | ||
EndSection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
root:x:0:root | ||
sys:x:3:bin,liveuser | ||
network:x:90:liveuser | ||
power:x:98:liveuser | ||
adm:x:999:liveuser | ||
wheel:x:998:liveuser | ||
uucp:x:987:liveuser | ||
optical:x:990:liveuser | ||
rfkill:x:983:liveuser | ||
video:x:986:liveuser | ||
storage:x:988:liveuser | ||
audio:x:995:liveuser | ||
users:x:985:liveuser | ||
nopasswdlogin:x:966:liveuser | ||
autologin:x:967:liveuser | ||
liveuser:x:1000: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
root:::root | ||
sys:!!::liveuser | ||
network:!!::liveuser | ||
power:!!::liveuser | ||
adm:!!::liveuser | ||
wheel:!!::liveuser | ||
uucp:!!::liveuser | ||
optical:!!::liveuser | ||
rfkill:!!::liveuser | ||
video:!!::liveuser | ||
storage:!!::liveuser | ||
audio:!!::liveuser | ||
users:!!::liveuser | ||
nopasswdlogin:!::liveuser | ||
autologin:!::liveuser | ||
liveuser:!:: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
parchiso |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
LANG=C.UTF-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/usr/share/zoneinfo/UTC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,159 @@ | ||
#!/hint/bash | ||
# | ||
# /etc/makepkg.conf | ||
# | ||
|
||
######################################################################### | ||
# SOURCE ACQUISITION | ||
######################################################################### | ||
# | ||
#-- The download utilities that makepkg should use to acquire sources | ||
# Format: 'protocol::agent' | ||
DLAGENTS=('file::/usr/bin/curl -qgC - -o %o %u' | ||
'ftp::/usr/bin/curl -qgfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u' | ||
'http::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u' | ||
'https::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u' | ||
'rsync::/usr/bin/rsync --no-motd -z %u %o' | ||
'scp::/usr/bin/scp -C %u %o') | ||
|
||
# Other common tools: | ||
# /usr/bin/snarf | ||
# /usr/bin/lftpget -c | ||
# /usr/bin/wget | ||
|
||
#-- The package required by makepkg to download VCS sources | ||
# Format: 'protocol::package' | ||
VCSCLIENTS=('bzr::bzr' | ||
'fossil::fossil' | ||
'git::git' | ||
'hg::mercurial' | ||
'svn::subversion') | ||
|
||
######################################################################### | ||
# ARCHITECTURE, COMPILE FLAGS | ||
######################################################################### | ||
# | ||
CARCH="x86_64" | ||
CHOST="x86_64-pc-linux-gnu" | ||
|
||
#-- Compiler and Linker Flags | ||
#CPPFLAGS="" | ||
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \ | ||
-Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \ | ||
-fstack-clash-protection -fcf-protection" | ||
CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS" | ||
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" | ||
LTOFLAGS="-flto=auto" | ||
#RUSTFLAGS="-C opt-level=2" | ||
#-- Make Flags: change this for DistCC/SMP systems | ||
MAKEFLAGS="-j$(nproc)" | ||
#-- Debugging flags | ||
DEBUG_CFLAGS="-g" | ||
DEBUG_CXXFLAGS="$DEBUG_CFLAGS" | ||
#DEBUG_RUSTFLAGS="-C debuginfo=2" | ||
|
||
######################################################################### | ||
# BUILD ENVIRONMENT | ||
######################################################################### | ||
# | ||
# Makepkg defaults: BUILDENV=(!distcc !color !ccache check !sign) | ||
# A negated environment option will do the opposite of the comments below. | ||
# | ||
#-- distcc: Use the Distributed C/C++/ObjC compiler | ||
#-- color: Colorize output messages | ||
#-- ccache: Use ccache to cache compilation | ||
#-- check: Run the check() function if present in the PKGBUILD | ||
#-- sign: Generate PGP signature file | ||
# | ||
BUILDENV=(!distcc color !ccache check !sign) | ||
# | ||
#-- If using DistCC, your MAKEFLAGS will also need modification. In addition, | ||
#-- specify a space-delimited list of hosts running in the DistCC cluster. | ||
#DISTCC_HOSTS="" | ||
# | ||
#-- Specify a directory for package building. | ||
#BUILDDIR=/tmp/makepkg | ||
|
||
######################################################################### | ||
# GLOBAL PACKAGE OPTIONS | ||
# These are default values for the options=() settings | ||
######################################################################### | ||
# | ||
# Makepkg defaults: OPTIONS=(!strip docs libtool staticlibs emptydirs !zipman !purge !debug !lto) | ||
# A negated option will do the opposite of the comments below. | ||
# | ||
#-- strip: Strip symbols from binaries/libraries | ||
#-- docs: Save doc directories specified by DOC_DIRS | ||
#-- libtool: Leave libtool (.la) files in packages | ||
#-- staticlibs: Leave static library (.a) files in packages | ||
#-- emptydirs: Leave empty directories in packages | ||
#-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip | ||
#-- purge: Remove files specified by PURGE_TARGETS | ||
#-- debug: Add debugging flags as specified in DEBUG_* variables | ||
#-- lto: Add compile flags for building with link time optimization | ||
# | ||
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug !lto) | ||
|
||
#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2 | ||
INTEGRITY_CHECK=(sha256) | ||
#-- Options to be used when stripping binaries. See `man strip' for details. | ||
STRIP_BINARIES="--strip-all" | ||
#-- Options to be used when stripping shared libraries. See `man strip' for details. | ||
STRIP_SHARED="--strip-unneeded" | ||
#-- Options to be used when stripping static libraries. See `man strip' for details. | ||
STRIP_STATIC="--strip-debug" | ||
#-- Manual (man and info) directories to compress (if zipman is specified) | ||
MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info}) | ||
#-- Doc directories to remove (if !docs is specified) | ||
DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc}) | ||
#-- Files to be removed from all packages (if purge is specified) | ||
PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod) | ||
#-- Directory to store source code in for debug packages | ||
DBGSRCDIR="/usr/src/debug" | ||
|
||
######################################################################### | ||
# PACKAGE OUTPUT | ||
######################################################################### | ||
# | ||
# Default: put built package and cached source in build directory | ||
# | ||
#-- Destination: specify a fixed directory where all packages will be placed | ||
#PKGDEST=/home/packages | ||
#-- Source cache: specify a fixed directory where source files will be cached | ||
#SRCDEST=/home/sources | ||
#-- Source packages: specify a fixed directory where all src packages will be placed | ||
#SRCPKGDEST=/home/srcpackages | ||
#-- Log files: specify a fixed directory where all log files will be placed | ||
#LOGDEST=/home/makepkglogs | ||
#-- Packager: name/email of the person or organization building packages | ||
#PACKAGER="John Doe <[email protected]>" | ||
#-- Specify a key to use for package signing | ||
#GPGKEY="" | ||
|
||
######################################################################### | ||
# COMPRESSION DEFAULTS | ||
######################################################################### | ||
# | ||
COMPRESSGZ=(gzip -c -f -n) | ||
COMPRESSBZ2=(bzip2 -c -f) | ||
COMPRESSXZ=(xz -c -z -) | ||
COMPRESSZST=(zstd -c -z -q -) | ||
COMPRESSLRZ=(lrzip -q) | ||
COMPRESSLZO=(lzop -q) | ||
COMPRESSZ=(compress -c -f) | ||
COMPRESSLZ4=(lz4 -q) | ||
COMPRESSLZ=(lzip -c -f) | ||
|
||
######################################################################### | ||
# EXTENSION DEFAULTS | ||
######################################################################### | ||
# | ||
PKGEXT='.pkg.tar.zst' | ||
SRCEXT='.src.tar.gz' | ||
|
||
######################################################################### | ||
# OTHER | ||
######################################################################### | ||
# | ||
#-- Command used to run pacman as root, instead of trying sudo and su | ||
#PACMAN_AUTH=() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# vim:set ft=sh | ||
# MODULES | ||
# The following modules are loaded before any boot hooks are | ||
# run. Advanced users may wish to specify all system modules | ||
# in this array. For instance: | ||
# MODULES=(piix ide_disk reiserfs) | ||
MODULES=() | ||
|
||
# BINARIES | ||
# This setting includes any additional binaries a given user may | ||
# wish into the CPIO image. This is run last, so it may be used to | ||
# override the actual binaries included by a given hook | ||
# BINARIES are dependency parsed, so you may safely ignore libraries | ||
BINARIES=() | ||
|
||
# FILES | ||
# This setting is similar to BINARIES above, however, files are added | ||
# as-is and are not parsed in any way. This is useful for config files. | ||
FILES=() | ||
|
||
# HOOKS | ||
# This is the most important setting in this file. The HOOKS control the | ||
# modules and scripts added to the image, and what happens at boot time. | ||
# Order is important, and it is recommended that you do not change the | ||
# order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for | ||
# help on a given hook. | ||
# 'base' is _required_ unless you know precisely what you are doing. | ||
# 'udev' is _required_ in order to automatically load modules | ||
# 'filesystems' is _required_ unless you specify your fs modules in MODULES | ||
# Examples: | ||
## This setup specifies all modules in the MODULES setting above. | ||
## No raid, lvm2, or encrypted root is needed. | ||
# HOOKS=(base) | ||
# | ||
## This setup will autodetect all modules for your system and should | ||
## work as a sane default | ||
# HOOKS=(base udev autodetect block filesystems) | ||
# | ||
## This setup will generate a 'full' image which supports most systems. | ||
## No autodetection is done. | ||
# HOOKS=(base udev block filesystems) | ||
# | ||
## This setup assembles a pata mdadm array with an encrypted root FS. | ||
## Note: See 'mkinitcpio -H mdadm' for more information on raid devices. | ||
# HOOKS=(base udev block mdadm encrypt filesystems) | ||
# | ||
## This setup loads an lvm2 volume group on a usb device. | ||
# HOOKS=(base udev block lvm2 filesystems) | ||
# | ||
## NOTE: If you have /usr on a separate partition, you MUST include the | ||
# usr, fsck and shutdown hooks. | ||
HOOKS=(base udev modconf memdisk archiso archiso_loop_mnt archiso_pxe_common archiso_pxe_nbd archiso_pxe_http archiso_pxe_nfs archiso_kms block filesystems keyboard) | ||
|
||
# COMPRESSION | ||
# Use this to compress the initramfs image. By default, gzip compression | ||
# is used. Use 'cat' to create an uncompressed image. | ||
#COMPRESSION="gzip" | ||
#COMPRESSION="bzip2" | ||
#COMPRESSION="lzma" | ||
COMPRESSION="xz" | ||
#COMPRESSION="lzop" | ||
#COMPRESSION="lz4" | ||
#COMPRESSION="zstd" | ||
|
||
# COMPRESSION_OPTIONS | ||
# Additional options for the compressor | ||
#COMPRESSION_OPTIONS=() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# mkinitcpio preset file for the 'linux' package on archiso | ||
|
||
PRESETS=('archiso') | ||
|
||
ALL_kver='/boot/vmlinuz-linux' | ||
ALL_config='/etc/mkinitcpio.conf' | ||
|
||
archiso_image="/boot/initramfs-linux.img" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# mkinitcpio preset file for the 'linux' package on archiso | ||
|
||
PRESETS=('default' 'fallback') | ||
|
||
ALL_kver='/boot/vmlinuz-linux' | ||
ALL_config='/etc/mkinitcpio.conf' | ||
|
||
#default_config="/etc/mkinitcpio.conf" | ||
default_image="/boot/initramfs-linux.img" | ||
#default_options="" | ||
|
||
#fallback_config="/etc/mkinitcpio.conf" | ||
fallback_image="/boot/initramfs-linux-fallback.img" | ||
fallback_options="-S autodetect" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# The broadcom-wl package requires some modules to be disabled in order to use | ||
# wl. Since the ISO image needs to cover many hardware cases, this file | ||
# overrides the default blacklist in /usr/lib/modprobe.d/ | ||
# | ||
# If you need to use wl, you may need to delete this file, then `rmmod` any | ||
# already-loaded modules that are now blacklisted before proceeding to modprobe | ||
# wl itself. |
Oops, something went wrong.