From e943f3a8c967d95cb9d57367a57db78e79972d74 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Thu, 25 Nov 2021 20:38:04 +0100 Subject: move archlinux stuff to subdir --- misc/arch/etc/grub.d/42_vtcol | 47 +++++++++++++++++++++++++++++++++ misc/arch/etc/initcpio/hooks/vtcol | 21 +++++++++++++++ misc/arch/etc/initcpio/install/vtcol | 29 ++++++++++++++++++++ misc/arch/etc/mkinitcpio-vtcol.conf | 26 ++++++++++++++++++ misc/arch/etc/mkinitcpio.d/vtcol.preset | 32 ++++++++++++++++++++++ misc/etc/grub.d/42_vtcol | 47 --------------------------------- misc/etc/initcpio/hooks/vtcol | 21 --------------- misc/etc/initcpio/install/vtcol | 29 -------------------- misc/etc/mkinitcpio-vtcol.conf | 26 ------------------ misc/etc/mkinitcpio.d/vtcol.preset | 32 ---------------------- 10 files changed, 155 insertions(+), 155 deletions(-) create mode 100755 misc/arch/etc/grub.d/42_vtcol create mode 100644 misc/arch/etc/initcpio/hooks/vtcol create mode 100644 misc/arch/etc/initcpio/install/vtcol create mode 100644 misc/arch/etc/mkinitcpio-vtcol.conf create mode 100644 misc/arch/etc/mkinitcpio.d/vtcol.preset delete mode 100755 misc/etc/grub.d/42_vtcol delete mode 100644 misc/etc/initcpio/hooks/vtcol delete mode 100644 misc/etc/initcpio/install/vtcol delete mode 100644 misc/etc/mkinitcpio-vtcol.conf delete mode 100644 misc/etc/mkinitcpio.d/vtcol.preset diff --git a/misc/arch/etc/grub.d/42_vtcol b/misc/arch/etc/grub.d/42_vtcol new file mode 100755 index 0000000..cb570ed --- /dev/null +++ b/misc/arch/etc/grub.d/42_vtcol @@ -0,0 +1,47 @@ +#!/bin/sh +exec tail -n +3 $0 +############################################################################### +# Copyright 2017--2017 Philipp Gesang +# Example grub menu entries for loading a vtcol-enabled ramdisk +############################################################################### +# +# See grub-mkconfig(8) for details. +# +# This file will require adaptation depending on the local setup. It is +# advisable that you only use this file for guidance and derive your own +# configuration from the examples under ``/etc/grub.d/``. Especially the +# encryption and LVM setup vary greatly with respect to the system +# configuration. (The actual UUIDs have been replaced by some fresh ones +# retrieved via /proc/sys/kernel/random/uuid.) YMMV. +# +# Always double-check the kernel and initrd lines! +# + +menuentry "linux: initramfs with solarized theme" { + echo "Booting initramfs with solarized theme ..." + load_video + set gfxpayload=keep + insmod gzio + insmod part_gpt + insmod ext2 + set root="hd0,gpt2" + echo "Booting the kernel ..." + linux /vmlinuz-linux root=UUID=0d59f480-9149-42ef-bb0d-4dfb66bcfc76 rw cryptdevice=/dev/sda3:secret quiet + echo "Loading the initramfs ..." + initrd /initramfs-linux-vtcol.img +} + +menuentry "linux: initramfs with solarized theme / fallback" { + echo "Booting initramfs with solarized theme ..." + load_video + set gfxpayload=keep + insmod gzio + insmod part_gpt + insmod ext2 + set root="hd0,gpt2" + echo "Booting the kernel ..." + linux /vmlinuz-linux root=UUID=0d59f480-9149-42ef-bb0d-4dfb66bcfc76 rw cryptdevice=/dev/sda3:secret quiet + echo "Booting initramfs with solarized theme ..." + initrd /initramfs-linux-vtcol-fallback.img +} + diff --git a/misc/arch/etc/initcpio/hooks/vtcol b/misc/arch/etc/initcpio/hooks/vtcol new file mode 100644 index 0000000..42170b4 --- /dev/null +++ b/misc/arch/etc/initcpio/hooks/vtcol @@ -0,0 +1,21 @@ +#!/usr/bin/ash +############################################################################### +# Copyright 2015--2017 Philipp Gesang +# Example mkinitcpio hook invoking vtcol in the initramfs environment +############################################################################### +# +# See mkinitcpio(8) for details. +# + +run_hook () +{ + binary=/usr/bin/vtcol + scheme=solarized + schemedir=/usr/share/vtcol/schemes + + if [ -f "${schemedir}/${scheme}" ] && [ -x "${binary}" ]; then + "${binary}" --scheme "${schemedir}/${scheme}" + fi +} + +# vim:ft=sh:sw=4:et diff --git a/misc/arch/etc/initcpio/install/vtcol b/misc/arch/etc/initcpio/install/vtcol new file mode 100644 index 0000000..400ec07 --- /dev/null +++ b/misc/arch/etc/initcpio/install/vtcol @@ -0,0 +1,29 @@ +#!/bin/bash +############################################################################### +# Copyright 2015--2017 Philipp Gesang +# Example mkinitcpio build hook invoking vtcol in the initramfs environment +############################################################################### +# +# See mkinitcpio(8) for details. +# +# This does nothing besides invoking ``add_runscript`` to add the vtcol +# initcpio hook and displaying some basic info. + +build () { + add_runscript +} + +help () { + cat <