Skip to content

Commit

Permalink
EOS Artemis-T2 commit!
Browse files Browse the repository at this point in the history
  • Loading branch information
NoaHimesaka1873 committed Jun 25, 2022
1 parent ae9a6e4 commit 9c1bd83
Show file tree
Hide file tree
Showing 11 changed files with 57 additions and 35 deletions.
2 changes: 1 addition & 1 deletion calamares-extra-modules/src/modules/copy_kernel/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def run():
"""

kernel_path = "/run/archiso/bootmnt/arch/boot/x86_64/"
kernel_root = "vmlinuz"
kernel_root = "vmlinuz-linux-t2"
ucode_tail = "ucode.img"

root_mount_point = libcalamares.globalstorage.value("rootMountPoint")
Expand Down
8 changes: 8 additions & 0 deletions calamares/files/pacman.conf
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,14 @@ Include = /etc/pacman.d/mirrorlist
SigLevel = PackageRequired
Include = /etc/pacman.d/endeavouros-mirrorlist

[arch-mact2]
SigLevel = Never
Server = https://mirror.funami.tech/$repo/os/$arch

[Redecorating-t2]
SigLevel = Never
Server = https://github.com/Redecorating/archlinux-t2-packages/releases/download/packages

# An example of a custom package repository. See the pacman manpage for
# tips on creating your own repositories.
#[custom]
Expand Down
6 changes: 3 additions & 3 deletions calamares/modules/bootloader.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

efiBootLoader: "grub"

kernel: "/vmlinuz-linux"
img: "/initramfs-linux.img"
fallback: "/initramfs-linux-fallback.img"
kernel: "/vmlinuz-linux-t2"
img: "/initramfs-linux-t2.img"
fallback: "/initramfs-linux-t2-fallback.img"
timeout: "5"

efiBootloaderId: "endeavouros"
Expand Down
35 changes: 17 additions & 18 deletions calamares/modules/netinstall-ce-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,23 @@
- sed
- vi
- wget
- name: "Extras for Apple T2-based devices"
description: "Device-specific configuration files for Apple T2-based devices. Check https://wiki.t2linux.org for more infomation."
hidden: false
selected: false
critical: true
packages:
- apple-t2-audio-config
- apple-t2-audio-config-alt
- name: "Xanmod Kernel in addition"
description: "Adding Xanmod kernel in addition to main one (Patched to support Macs with T2)"
hidden: false
selected: false
expanded: false
critical: true
packages:
- linux-xanmod-edge-t2-headers
- linux-xanmod-edge-t2-headers
- name: "Firefox and language package"
description: "Add firefox and language pack if possible"
hidden: false
Expand All @@ -202,24 +219,6 @@
packages:
- firefox
- firefox-i18n-$LOCALE
- name: "LTS Kernel in addition"
description: "Adding Long Term Supported Kernel in addition to main one"
hidden: false
selected: false
expanded: false
critical: true
packages:
- linux-lts
- linux-lts-headers
- name: "Zen Kernel in addition"
description: "Adding ZEN kernel in addition to main one"
hidden: false
selected: false
expanded: false
critical: true
packages:
- linux-zen
- linux-zen-headers
- name: "Printing-Support"
description: "Support for printing (Cups)"
hidden: false
Expand Down
17 changes: 17 additions & 0 deletions calamares/modules/netinstall.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,23 @@
- sed
- vi
- wget
- name: "Extras for Apple T2-based devices"
description: "Device-specific configuration files for Apple T2-based devices. Check https://wiki.t2linux.org for more infomation."
hidden: false
selected: false
critical: true
packages:
- apple-t2-audio-config
- apple-t2-audio-config-alt
- name: "Xanmod Kernel in addition"
description: "Adding Xanmod kernel in addition to main one (Patched to support Macs with T2)"
hidden: false
selected: false
expanded: false
critical: true
packages:
- linux-xanmod-edge-t2-headers
- linux-xanmod-edge-t2-headers
- name: "Firefox and language package"
description: "Add firefox and language pack if possible"
hidden: false
Expand Down
2 changes: 0 additions & 2 deletions calamares/modules/shellprocess_fixes_offline.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
dontChroot: true

script:
- "cp /etc/calamares/files/nv-modprobe @@ROOT@@/usr/lib/modprobe.d/nvidia-utils.conf"
- "cp /etc/calamares/files/nv-modules-load @@ROOT@@/usr/lib/modules-load.d/nvidia-utils.conf"
- "cp /etc/calamares/files/endeavouros-wallpaper.png @@ROOT@@/usr/share/endeavouros/backgrounds/endeavouros-wallpaper.png"
- "cp -a /etc/calamares/scripts @@ROOT@@/etc/calamares/"

Expand Down
8 changes: 1 addition & 7 deletions calamares/modules/shellprocess_modify_mk_hook.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@
dontChroot: true

script:
- "mkdir -p /etc/pacman.d/hooks/"
- "cp /etc/calamares/scripts/90-mkinitcpio-install.hook /etc/pacman.d/hooks/"
- "mkdir -p @@ROOT@@/usr/share/libalpm/scripts/"
- "cp /etc/calamares/scripts/mkinitcpio-install-calamares @@ROOT@@/usr/share/libalpm/scripts/"
- "chmod +x @@ROOT@@/usr/share/libalpm/scripts/mkinitcpio-install-calamares"
- "mkdir -p @@ROOT@@/etc/pacman.d/hooks/"
- "cp /etc/calamares/scripts/90-mkinitcpio-install.hook @@ROOT@@/etc/pacman.d/hooks/"
- "echo ''"

i18n:
name: "modify 90-mkinitcpio-install.hook on host and chroot"
3 changes: 1 addition & 2 deletions calamares/modules/shellprocess_reset_mk_hook.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
dontChroot: false

script:
- "rm /etc/pacman.d/hooks/90-mkinitcpio-install.hook"
- "rm /usr/share/libalpm/scripts/mkinitcpio-install-calamares"
- "echo ''"

i18n:
name: "reset 90-mkinitcpio-install.hook"
2 changes: 1 addition & 1 deletion calamares/scripts/chrooted_cleaner_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ Main() {
_clean_up
_run_hotfix_end

rm -rf /etc/calamares /opt/extra-drivers
rm -rf /etc/calamares

_c_c_s_msg info "$filename done."
}
Expand Down
1 change: 0 additions & 1 deletion calamares/scripts/cleaner_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ _copy_files(){
touch $target/tmp/r8168_in_use
fi

_manage_broadcom_wifi_driver

# copy endeavouros-release file
local file=/usr/lib/endeavouros-release
Expand Down
8 changes: 8 additions & 0 deletions calamares/scripts/eos-pacman-conf-fix
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ Main()
SigLevel = PackageRequired
Include = /etc/pacman.d/endeavouros-mirrorlist
[arch-mact2]
SigLevel = Never
Server = https://mirror.funami.tech/arch-mact2/os/x86_64
[Redecorating-t2]
Server = https://github.com/Redecorating/archlinux-t2-packages/releases/download/packages
SigLevel = Optional TrustAll
EOF

# Make other adjustments in pacman.conf:
Expand Down

0 comments on commit 9c1bd83

Please sign in to comment.