Skip to content

Instantly share code, notes, and snippets.

View Strykar's full-sized avatar
💭
What is Bash?

Avinash H. Duduskar Strykar

💭
What is Bash?
  • India
View GitHub Profile
@Strykar
Strykar / 01-minimal-aurutils-setup.sh
Created July 2, 2025 15:04
Minimal aurutils setup / install inside an Arch linux rescue EFI created by mkosi
#!/bin/bash
# mkosi.conf.d/01-minimal-aurutils-setup.sh
# Call this from mkosi.postinst.chroot
#
# Prepare an mkosi image for (optionally) installing aurutils (post-boot) in an Arch linux rescue EFI.
# A rescue EFI has no need for persistent storage, instead we drop a 0.2 MB compiled / packaged
# "aurutils-*.pkg.tar.zst" into the image's "/home/packages" or "$AURUTILS_PKG_PATH" directory before mkosi's image build completion.
#
# This keeps the EFI size down as pre-installing any aur helper will pull in 100+ MBs of dependencies.
# The script sticks with pacman.conf's example username "packages" and repository name "custom".
‣ Loading configuration file /home/strykar/arch_packages/localpkgs/rescue-image/mkosi.conf
‣ Loading configuration file /home/strykar/arch_packages/localpkgs/rescue-image/mkosi.conf.d/01-aurutils-packages.conf
‣ Loading configuration file /home/strykar/arch_packages/localpkgs/rescue-image/mkosi.conf.d/arch.conf
‣ Removing output files of rescue image…
‣ Acquiring lock on /home/strykar/arch_packages/localpkgs/rescue-image/mkosi.output/rescue_80e7a53132-2025-06-30
‣ Acquired lock on /home/strykar/arch_packages/localpkgs/rescue-image/mkosi.output/rescue_80e7a53132-2025-06-30
‣ + rm -rf -- /work/home/strykar/arch_packages/localpkgs/rescue-image/mkosi.output/rescue_80e7a53132-2025-06-30 /work/home/strykar/arch_packages/localpkgs/rescue-image/mkosi.output/rescue_80e7a53132-2025-06-30.SHA256SUMS /work/home/strykar/arch_packages/localpkgs/rescue-image/mkosi.output/rescue_80e7a53132-2025-06-30.SHA256SUMS.gpg /work/home/st
‣ Loading configuration file /home/strykar/arch_packages/localpkgs/rescue-image/mkosi.conf
‣ Loading configuration file /home/strykar/arch_packages/localpkgs/rescue-image/mkosi.conf.d/01-aurutils-packages.conf
‣ Loading configuration file /home/strykar/arch_packages/localpkgs/rescue-image/mkosi.conf.d/arch.conf
‣ Loading configuration file /tmp/tmp4exfr9sf/resources/mkosi-initrd/mkosi.conf
‣ Loading configuration file /tmp/tmp4exfr9sf/resources/mkosi-initrd/mkosi.conf.d/10-arch.conf
‣ Loading configuration file /tmp/tmp4exfr9sf/resources/mkosi-initrd/mkosi.conf
‣ Loading configuration file /tmp/tmp4exfr9sf/resources/mkosi-initrd/mkosi.conf.d/10-arch.conf
‣ Validating certificates and keys
‣ Populating pacman keyring
‣ + pacman-key --init
‣ Loading configuration file /home/strykar/arch_packages/localpkgs/rescue-image/mkosi.conf
‣ Loading configuration file /home/strykar/arch_packages/localpkgs/rescue-image/mkosi.conf.d/arch.conf
‣ Removing output files of rescue image…
‣ Acquiring lock on /home/strykar/arch_packages/localpkgs/rescue-image/mkosi.output/rescue_80e7a53132_28_Jun_2025
‣ Acquired lock on /home/strykar/arch_packages/localpkgs/rescue-image/mkosi.output/rescue_80e7a53132_28_Jun_2025
‣ + rm -rf -- /work/home/strykar/arch_packages/localpkgs/rescue-image/mkosi.output/rescue_80e7a53132_28_Jun_2025 /work/home/strykar/arch_packages/localpkgs/rescue-image/mkosi.output/rescue_80e7a53132_28_Jun_2025.efi /work/home/strykar/arch_packages/localpkgs/rescue-image/mkosi.output/rescue_80e7a53132_28_Jun_2025.initrd /work/home/strykar/arch_packages/localpkgs/rescue-image/mkosi.output/rescue_80e7a53132_28_Jun_2025.vmlinuz
‣ Loading configuration file /tmp/tmp8j794ipe/resources/mkosi-initrd/mkosi.conf
‣ Loading configuration file /tmp/tmp8j794ipe/resourc
@Strykar
Strykar / mkosi.build.chroot
Created June 28, 2025 20:08 — forked from michaelbeaumont/mkosi.build.chroot
Using mkosi and AUR to install packages
#!/usr/bin/env bash
set -ex
PACKAGES=(
neovim-git
)
# All this is basically to get around makepkg calling pacman with sudo
# Otherwise we could just call `aur sync` and be done with it
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
declare -A seen=()
declare -A unowned=()
check_dyndbg_enabled() {
if grep -qw 'dyndbg="func fw_log_firmware_info +p"' /proc/cmdline && [[ -r /proc/dynamic_debug/control ]]; then
---
version: 1
events:
- EventNum: 0
PCRIndex: 0
EventType: EV_NO_ACTION
Digest: "0000000000000000000000000000000000000000"
EventSize: 37
SpecID:
- Signature: Spec ID Event03
#? Config file for btop v. 1.4.3
#* Name of a btop++/bpytop/bashtop formatted ".theme" file, "Default" and "TTY" for builtin themes.
#* Themes should be placed in "../share/btop/themes" relative to binary or "$HOME/.config/btop/themes"
color_theme = "/usr/share/btop/themes/adapta.theme"
#* If the theme set background should be shown, set to False if you want terminal background transparency.
theme_background = True
#* Sets if 24-bit truecolor should be used, will convert 24-bit colors to 256 color (6x6x6 color cube) if false.
==========
VULKANINFO
==========
Vulkan Instance Version: 1.4.313
Instance Extensions: count = 24
===============================
VK_EXT_acquire_drm_display : extension revision 1
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by mosh configure 1.4.0, which was
generated by GNU Autoconf 2.72. Invocation command line was
$ ./configure
## --------- ##
## Platform. ##