Skip to content

Commit

Permalink
Merge pull request #19 from lauretano/dracut_mod
Browse files Browse the repository at this point in the history
a potential fix for needing initramfs regen on local systems
  • Loading branch information
lauretano authored Nov 9, 2024
2 parents 5c4f4ce + 3dd8062 commit d05de75
Show file tree
Hide file tree
Showing 26 changed files with 114 additions and 50 deletions.
10 changes: 10 additions & 0 deletions files/scripts/t2-apple-bce.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

# Tell this script to exit if there are any errors.
# You should have this in every custom script, to ensure that your completed
# builds actually ran successfully without any errors!
set -oue pipefail

echo 'T2-Atomic: Kernel Post-Install: Running Dracut to load apple_bce module at early boot'

set -x; kver=$(cd /usr/lib/modules && echo *); dracut -vf /usr/lib/modules/$kver/initramfs.img $kver
2 changes: 1 addition & 1 deletion files/system/etc/dracut.conf.d/cmdline.conf
Original file line number Diff line number Diff line change
@@ -1 +1 @@
kernel_cmdline+=" intel_iommu=on iommu=pt mem_sleep_default=s2idle"
kernel_cmdline+=" intel_iommu=on iommu=pt mem_sleep_default=s2idle "
2 changes: 1 addition & 1 deletion files/system/etc/dracut.conf.d/t2-bce.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#load apple-bce early so keyboard works for LUKS and early boot
force_drivers+=" apple-bce snd snd-pcm "
force_drivers+=" apple_bce snd snd-pcm "
2 changes: 2 additions & 0 deletions files/system/hyprland/etc/environment
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
GTK_THEME=Adwaita:dark
QT_STYLE_OVERRIDE=adwaita-dark
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Desktop Entry]
Name=Hyprland
Comment=An intelligent dynamic tiling Wayland compositor
Exec=/usr/bin/starthyprland
Type=Application
13 changes: 13 additions & 0 deletions files/system/hyprland/usr/bin/starthyprland
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

set -oue pipefail


hyprland_conf="$HOME/.config/hypr/hyprland.conf"
base="/usr/share/hyprland/hyprland.conf"

if [ -f "$hyprland_conf" ]; then
Hyprland -c "$hyprland_conf"
else
Hyprland -c "$base"
fi
14 changes: 7 additions & 7 deletions recipes/common/common-apps-cosmic.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# modules and things general to all cosmic recipes
modules:
- type: rpm-ostree
repos:
# TEMP: this is hardcoded as rawhide as of 20240531 as f40 repo isn't yet available (brand new copr)
- https://copr.fedorainfracloud.org/coprs/ryanabx/cosmic-epoch/repo/fedora-40/ryanabx-cosmic-epoch-fedora-%OS_VERSION%.repo
# repos:
# # TEMP: this is hardcoded as rawhide as of 20240531 as f40 repo isn't yet available (brand new copr)
# - https://copr.fedorainfracloud.org/coprs/ryanabx/cosmic-epoch/repo/fedora-40/ryanabx-cosmic-epoch-fedora-%OS_VERSION%.repo
install:
- cosmic-desktop


- type: rpm-ostree
install:
- tuned
- gnome-keyring
#- type: rpm-ostree
# install:
# - tuned
# - gnome-keyring
24 changes: 24 additions & 0 deletions recipes/common/common-apps-hyprland.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
modules:
- type: rpm-ostree
install:
- hyprland
- waybar
- xdg-desktop-portal-hyprland
- hyprpaper
- hyprlock
- hypridle
- hyprpicker
- grim
- slurp
- swaync
- wlogout

- type: rpm-ostree
repos:
- https://copr.fedorainfracloud.org/coprs/erikreider/SwayNotificationCenter/repo/fedora-%OS_VERSION%/erikreider-SwayNotificationCenter-fedora-%OS_VERSION%.repo
install:
- SwayNotificationCenter

- type: script
snippets:
#- "sed -i '/^UseIn/ s/$/,sway/' /usr/share/xdg-desktop-portal/portals/gnome-keyring.portal"
6 changes: 6 additions & 0 deletions recipes/common/common-files-hyprland.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: files
files:
- source: system/hyprland/etc
destination: /etc
- source: system/hyprland/usr
destination: /usr
4 changes: 4 additions & 0 deletions recipes/common/common-t2-enablement-f41.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@ modules:
# using asahi-installer fork to package for use in fedora
# it's hacky <3
- apple-bcm-firmware.sh

- type: script
snippets:
#- "set -x; kver=$(cd /usr/lib/modules && echo *); dracut -vf /usr/lib/modules/$kver/initramfs.img $kver"
5 changes: 3 additions & 2 deletions recipes/common/common-t2-kernel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ modules:
- https://copr.fedorainfracloud.org/coprs/sharpenedblade/t2linux/repo/fedora-%OS_VERSION%/sharpenedblade-t2linux-fedora-%OS_VERSION%.repo


# install the t2 kerel
# install the t2 kernel
- type: script
scripts:
- t2-kernel.sh
- t2-kernel.sh
#- t2-apple-bce.sh
4 changes: 2 additions & 2 deletions recipes/t2-atomic-cosmic-gnome-fsync-ba.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ image-version: 41
alt-tags:
- fsync-ba
modules:
- from-file: common/common-t2-enablement.yml #installs t2 kernel, t2 grub arguments, and packages for enabling t2 hardware
- from-file: common/common-t2-enablement-fsync-ba.yml #pulls fsync containerfile and overrides base image kernel
- from-file: common/common-files.yml
- from-file: common/common-files-cosmic.yml
- from-file: common/common-files-gnome.yml
- from-file: common/common-t2-enablement.yml #installs t2 kernel, t2 grub arguments, and packages for enabling t2 hardware
- from-file: common/common-t2-enablement-fsync-ba.yml #pulls fsync containerfile and overrides base image kernel
- from-file: common/common-apps.yml
- from-file: common/common-apps-cosmic.yml
- from-file: common/common-apps-gnome.yml #and gnome flatpaks etc because this has both
Expand Down
4 changes: 2 additions & 2 deletions recipes/t2-atomic-cosmic-gnome.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ base-image: ghcr.io/ublue-os/silverblue-main
image-version: 41

modules:
- from-file: common/common-t2-enablement-f41.yml #installs t2 kernel, t2 grub arguments, and packages for enabling t2 hardware
- from-file: common/common-t2-kernel.yml #pulls fsync containerfile and overrides base image kernel
- from-file: common/common-files.yml
- from-file: common/common-files-cosmic.yml
- from-file: common/common-files-gnome.yml
- from-file: common/common-t2-enablement-f41.yml #installs t2 kernel, t2 grub arguments, and packages for enabling t2 hardware
- from-file: common/common-t2-kernel.yml #pulls fsync containerfile and overrides base image kernel
- from-file: common/common-apps.yml
- from-file: common/common-apps-cosmic.yml
- from-file: common/common-apps-gnome.yml #and gnome flatpaks etc because this has both
Expand Down
4 changes: 2 additions & 2 deletions recipes/t2-atomic-cosmic-plasma.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ base-image: ghcr.io/ublue-os/kinoite-main
image-version: 41

modules:
- from-file: common/common-t2-enablement-f41.yml #installs t2 kernel, t2 grub arguments, and packages for enabling t2 hardware
- from-file: common/common-t2-kernel.yml #pulls fsync containerfile and overrides base image kernel
- from-file: common/common-files.yml
- from-file: common/common-files-cosmic.yml
- from-file: common/common-files-plasma.yml
- from-file: common/common-t2-enablement-f41.yml #installs t2 kernel, t2 grub arguments, and packages for enabling t2 hardware
- from-file: common/common-t2-kernel.yml #pulls fsync containerfile and overrides base image kernel
- from-file: common/common-apps-cosmic.yml
- from-file: common/common-apps.yml
- from-file: common/common-apps-plasma.yml #and plasma flatpaks etc because this has both
Expand Down
6 changes: 2 additions & 4 deletions recipes/t2-atomic-cosmic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,14 @@ name: t2-atomic-cosmic
# description will be included in the image's metadata
description: Fedora Atomic Cosmic base spin for Apple T2 Hardware

base-image: ghcr.io/ublue-os/base-main
base-image: quay.io/fedora-ostree-desktops/cosmic-atomic
image-version: 41

modules:
- from-file: common/common-files.yml
- from-file: common/common-t2-enablement.yml #installs t2 kernel, t2 grub arguments, and packages for enabling t2 hardware
- from-file: common/common-t2-kernel.yml #pulls fsync containerfile and overrides base image kernel
- from-file: common/common-files.yml
- from-file: common/common-files-cosmic.yml
- from-file: common/common-apps.yml
- from-file: common/common-apps-cosmic.yml

- type: signing # this sets up the proper policy & signing files for signed images to work fully

Expand Down
4 changes: 2 additions & 2 deletions recipes/t2-atomic-gnome-fsync-ba.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ image-version: 41
alt-tags:
- fsync-ba
modules:
- from-file: common/common-t2-enablement.yml #installs t2 kernel, t2 grub arguments, and packages for enabling t2 hardware
- from-file: common/common-t2-enablement-fsync-ba.yml #pulls fsync containerfile and overrides base image kernel
- from-file: common/common-files.yml
- from-file: common/common-files-gnome.yml
- from-file: common/common-t2-enablement.yml #installs t2 kernel, t2 grub arguments, and packages for enabling t2 hardware
- from-file: common/common-t2-enablement-fsync-ba.yml #pulls fsync containerfile and overrides base image kernel
- from-file: common/common-apps.yml #installs apps common across all the t2 editions
- from-file: common/common-apps-gnome.yml #installs gnome flatpaks and such

Expand Down
4 changes: 2 additions & 2 deletions recipes/t2-atomic-gnome-kansei.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ image-version: 41 # latest is also supported if you want new updates ASAP
# module configuration, executed in order
# you can include multiple instances of the same module
modules:
- from-file: common/common-t2-enablement.yml #installs t2 kernel, t2 grub arguments, and packages for enabling t2 hardware
- from-file: common/common-t2-kernel.yml #pulls fsync containerfile and overrides base image kernel
- from-file: common/common-files.yml
- from-file: common/common-files-gnome.yml
- from-file: common/common-t2-enablement.yml #installs t2 kernel, t2 grub arguments, and packages for enabling t2 hardware
- from-file: common/common-t2-kernel.yml #pulls fsync containerfile and overrides base image kernel
- from-file: common/common-apps.yml #installs apps common across all the t2 editions
- from-file: common/common-kansei.yml
- from-file: common/common-apps-gnome.yml #gnome flatpaks
Expand Down
4 changes: 2 additions & 2 deletions recipes/t2-atomic-gnome.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ base-image: ghcr.io/ublue-os/silverblue-main
image-version: 41

modules:
- from-file: common/common-t2-enablement-f41.yml #installs t2 kernel, t2 grub arguments, and packages for enabling t2 hardware
- from-file: common/common-t2-kernel.yml #pulls fsync containerfile and overrides base image kernel
- from-file: common/common-files.yml
- from-file: common/common-files-gnome.yml
- from-file: common/common-t2-enablement-f41.yml #installs t2 kernel, t2 grub arguments, and packages for enabling t2 hardware
- from-file: common/common-t2-kernel.yml #pulls fsync containerfile and overrides base image kernel
- from-file: common/common-apps.yml #installs apps common across all the t2 editions
- from-file: common/common-apps-gnome.yml #installs gnome flatpaks and such

Expand Down
17 changes: 9 additions & 8 deletions recipes/t2-atomic-kansei.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,21 @@ base-image: ghcr.io/ublue-os/sericea-main
image-version: 41

modules:
- from-file: common/common-files.yml
- from-file: common/common-files-hyprland.yml
- from-file: common/common-files-plasma.yml
- from-file: common/common-files-river.yml
#- from-file: common/common-files-sway.yml
- from-file: common/common-t2-enablement-f41.yml #installs t2 kernel, t2 grub arguments, and packages for enabling t2 hardware
- from-file: common/common-t2-kernel.yml #pulls fsync containerfile and overrides base image kernel
#- from-file: common/common-apps-gnome.yml
- from-file: common/common-apps-cosmic.yml
- from-file: common/common-apps-hyprland.yml
- from-file: common/common-apps-plasma.yml
- from-file: common/common-apps.yml #installs apps common across all the t2 editions
- from-file: common/common-apps-wayland.yml
- from-file: common/common-apps-river.yml
- from-file: common/common-apps-sway.yml
#- from-file: common/common-apps-sway.yml
- from-file: common/common-kansei.yml
- from-file: common/common-files.yml
#- from-file: common/common-files-gnome.yml
#- from-file: common/common-files-cosmic.yml
- from-file: common/common-files-river.yml
- from-file: common/common-files-sway.yml


- type: script
snippets:
Expand Down
4 changes: 2 additions & 2 deletions recipes/t2-atomic-plasma-fsync-ba.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ image-version: 41
alt-tags:
- fsync-ba
modules:
- from-file: common/common-t2-enablement.yml #installs t2 kernel, t2 grub arguments, and packages for enabling t2 hardware
- from-file: common/common-t2-enablement-fsync-ba.yml #pulls fsync containerfile and overrides base image kernel
- from-file: common/common-files.yml
- from-file: common/common-files-plasma.yml
- from-file: common/common-t2-enablement.yml #installs t2 kernel, t2 grub arguments, and packages for enabling t2 hardware
- from-file: common/common-t2-enablement-fsync-ba.yml #pulls fsync containerfile and overrides base image kernel
- from-file: common/common-apps.yml #installs apps common across all the t2 editions
- from-file: common/common-apps-plasma.yml #and plasma flatpaks etc because this has both
- type: signing # this sets up the proper policy & signing files for signed images to work fully
Expand Down
4 changes: 2 additions & 2 deletions recipes/t2-atomic-plasma-fsync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ image-version: 41
alt-tags:
- fsync
modules:
- from-file: common/common-t2-enablement-f41.yml #installs t2 kernel, t2 grub arguments, and packages for enabling t2 hardware
- from-file: common/common-t2-enablement-fsync-f41.yml #pulls fsync containerfile and overrides base image kernel
- from-file: common/common-files.yml
- from-file: common/common-files-plasma.yml
- from-file: common/common-t2-enablement-f41.yml #installs t2 kernel, t2 grub arguments, and packages for enabling t2 hardware
- from-file: common/common-t2-enablement-fsync-f41.yml #pulls fsync containerfile and overrides base image kernel
- from-file: common/common-apps.yml #installs apps common across all the t2 editions
- from-file: common/common-apps-plasma.yml #and plasma flatpaks etc because this has both
- type: signing # this sets up the proper policy & signing files for signed images to work fully
Expand Down
4 changes: 2 additions & 2 deletions recipes/t2-atomic-plasma-kansei.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ base-image: ghcr.io/ublue-os/kinoite-main
image-version: 41

modules:
- from-file: common/common-t2-enablement-f41.yml #installs t2 kernel, t2 grub arguments, and packages for enabling t2 hardware
- from-file: common/common-t2-kernel.yml #pulls fsync containerfile and overrides base image kernel
- from-file: common/common-files.yml
- from-file: common/common-files-plasma.yml
- from-file: common/common-t2-enablement-f41.yml #installs t2 kernel, t2 grub arguments, and packages for enabling t2 hardware
- from-file: common/common-t2-kernel.yml #pulls fsync containerfile and overrides base image kernel
- from-file: common/common-apps.yml #installs apps common across all the t2 editions
- from-file: common/common-apps-plasma.yml #and plasma flatpaks etc because this has both
- from-file: common/common-kansei.yml
Expand Down
4 changes: 2 additions & 2 deletions recipes/t2-atomic-plasma.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ base-image: ghcr.io/ublue-os/kinoite-main
image-version: 41

modules:
- from-file: common/common-t2-enablement-f41.yml #installs t2 kernel, t2 grub arguments, and packages for enabling t2 hardware
- from-file: common/common-t2-kernel.yml #pulls fsync containerfile and overrides base image kernel
- from-file: common/common-files.yml
- from-file: common/common-files-plasma.yml
- from-file: common/common-t2-enablement-f41.yml #installs t2 kernel, t2 grub arguments, and packages for enabling t2 hardware
- from-file: common/common-t2-kernel.yml #pulls fsync containerfile and overrides base image kernel
- from-file: common/common-apps.yml #installs apps common across all the t2 editions
- from-file: common/common-apps-plasma.yml #and plasma flatpaks etc because this has both
- type: signing # this sets up the proper policy & signing files for signed images to work fully
Expand Down
4 changes: 2 additions & 2 deletions recipes/t2-atomic-river.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ base-image: ghcr.io/ublue-os/base-main
image-version: 41

modules:
- from-file: common/common-t2-kernel.yml #installs fsync kernel
- from-file: common/common-t2-enablement-f41.yml #installs t2 kernel, t2 grub arguments, and packages for enabling t2 hardware
- from-file: common/common-files.yml
- from-file: common/common-files-river.yml
- from-file: common/common-t2-kernel.yml #installs fsync kernel
- from-file: common/common-t2-enablement-f41.yml #installs t2 kernel, t2 grub arguments, and packages for enabling t2 hardware
- from-file: common/common-apps-wayland.yml
- from-file: common/common-apps.yml
- from-file: common/common-apps-river.yml
Expand Down
4 changes: 2 additions & 2 deletions recipes/t2-atomic-sway-fsync-ba.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ image-version: 41
alt-tags:
- fsync-ba
modules:
- from-file: common/common-t2-enablement.yml #installs t2 kernel, t2 grub arguments, and packages for enabling t2 hardware
- from-file: common/common-t2-enablement-fsync-ba.yml #pulls fsync containerfile and overrides base image kernel
- from-file: common/common-files.yml
- from-file: common/common-files-sway.yml
- from-file: common/common-t2-enablement.yml #installs t2 kernel, t2 grub arguments, and packages for enabling t2 hardware
- from-file: common/common-t2-enablement-fsync-ba.yml #pulls fsync containerfile and overrides base image kernel
- from-file: common/common-apps-sway.yml
- from-file: common/common-apps-wayland.yml
- from-file: common/common-apps.yml
Expand Down
6 changes: 3 additions & 3 deletions recipes/t2-atomic-sway.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ description: Fedora Atomic Sway (sericea) spin for Apple T2 Hardware
base-image: ghcr.io/ublue-os/sericea-main
image-version: 41

modules:
- from-file: common/common-t2-enablement-f41.yml #installs t2 kernel, t2 grub arguments, and packages for enabling t2 hardware
- from-file: common/common-t2-kernel.yml #pulls fsync containerfile and overrides base image kernel
modules:
- from-file: common/common-files.yml
- from-file: common/common-files-sway.yml
- from-file: common/common-t2-enablement-f41.yml #installs t2 kernel, t2 grub arguments, and packages for enabling t2 hardware
- from-file: common/common-t2-kernel.yml #pulls fsync containerfile and overrides base image kernel
- from-file: common/common-apps-sway.yml
- from-file: common/common-apps-wayland.yml
- from-file: common/common-apps.yml
Expand Down

0 comments on commit d05de75

Please sign in to comment.