diff --git a/arch-portable/PKGBUILD b/arch-portable/PKGBUILD new file mode 100644 index 0000000..76acd23 --- /dev/null +++ b/arch-portable/PKGBUILD @@ -0,0 +1,56 @@ +# Maintainer: Tobias Reisinger +# shellcheck disable=SC2034 +pkgname=serguzim-system-portalo +pkgver=1 +pkgrel=1 +epoch= +pkgdesc="" +arch=("any") +url="https://git.serguzim.me/serguzim/system" +license=("unknown") +groups=() +depends=( + "intel-ucode" + + "amdgpu-fan" + "xf86-video-amdgpu" + "vulkan-radeon" +) +source=( + "boot_loader_entries_portable.conf" + "boot_loader_loader.conf" + "etc_fstab" + "etc_hostname" + "etc_systemd_network_20-wired.network" +) +sha256sums=( + "SKIP" + "SKIP" + "SKIP" + "SKIP" + "SKIP" +) +backup=() + +_sed_path() { + echo "$1" | sed -e "s/\//_/g" +} + +_install() { + temp_pkg=$1 + temp_src=$(_sed_path "$temp_pkg") + # shellcheck disable=SC2154 + install "-Dm${2:-644}" "${srcdir}/${temp_src}" "${pkgdir}/${temp_pkg}" +} + + +package() { + _install "boot/loader/entries/portable.conf" "755" + _install "boot/loader/loader.conf" "755" + + _install "etc/fstab" + _install "etc/hostname" + _install "etc/systemd/network/20-wired.network" +} + +# vim: ft=sh diff --git a/arch-portable/boot_loader_entries_portable.conf b/arch-portable/boot_loader_entries_portable.conf new file mode 100755 index 0000000..5c91947 --- /dev/null +++ b/arch-portable/boot_loader_entries_portable.conf @@ -0,0 +1,5 @@ +title Arch Linux Portable +linux /vmlinuz-linux +initrd /intel-ucode.img +initrd /initramfs-linux.img +options root="LABEL=arch_portable" rw quiet splash acpi_enforce_resources=lax mitigations=off diff --git a/arch-portable/boot_loader_loader.conf b/arch-portable/boot_loader_loader.conf new file mode 100755 index 0000000..ecc75cb --- /dev/null +++ b/arch-portable/boot_loader_loader.conf @@ -0,0 +1,3 @@ +timeout 2 +default portable.conf +console-mode keep diff --git a/arch-portable/etc_fstab b/arch-portable/etc_fstab new file mode 100644 index 0000000..6c2648a --- /dev/null +++ b/arch-portable/etc_fstab @@ -0,0 +1,5 @@ +LABEL=arch_portable / ext4 rw,relatime 0 1 + +LABEL=BOOT_PORTABLE /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 2 + +LABEL=home_portable /home ext4 rw,relatime 0 2 diff --git a/arch-portable/etc_hostname b/arch-portable/etc_hostname new file mode 100644 index 0000000..4af1ba4 --- /dev/null +++ b/arch-portable/etc_hostname @@ -0,0 +1 @@ +portalo diff --git a/arch-portable/etc_systemd_network_20-wired.network b/arch-portable/etc_systemd_network_20-wired.network new file mode 100644 index 0000000..30a36df --- /dev/null +++ b/arch-portable/etc_systemd_network_20-wired.network @@ -0,0 +1,5 @@ +[Match] +Name=enp0s31f6 + +[Network] +DHCP=yes