Skip to content

Commit

Permalink
prepare for graphical installer
Browse files Browse the repository at this point in the history
place graphical binary in chimeraos/airootfs/usr/bin/chimeraos-installer.x86_64
  • Loading branch information
BoukeHaarsma23 committed May 10, 2024
1 parent cb85649 commit 6bf9cba
Show file tree
Hide file tree
Showing 80 changed files with 381 additions and 833 deletions.
6 changes: 3 additions & 3 deletions build-iso.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash

set -e
if [ $EUID -ne 0 ]; then
echo "$(basename $0) must be run as root"
exit 1
Expand Down Expand Up @@ -32,8 +32,8 @@ AUR_PACKAGES="\
"

ADDITIONAL_PACKAGES="\
https://github.com/ChimeraOS/linux-chimeraos/releases/download/v6.6.13-chos1-1/linux-chimeraos-6.6.13.chos1-1-x86_64.pkg.tar.zst \
https://github.com/ChimeraOS/linux-chimeraos/releases/download/v6.6.13-chos1-1/linux-chimeraos-headers-6.6.13.chos1-1-x86_64.pkg.tar.zst \
https://github.com/ChimeraOS/linux-chimeraos/releases/download/v6.8.9-chos1-1/linux-chimeraos-6.8.9.chos1-1-x86_64.pkg.tar.zst \
https://github.com/ChimeraOS/linux-chimeraos/releases/download/v6.8.9-chos1-1/linux-chimeraos-headers-6.8.9.chos1-1-x86_64.pkg.tar.zst \
"

# create repo directory if it doesn't exist yet
Expand Down
2 changes: 1 addition & 1 deletion chimeraos/airootfs/etc/hostname
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#
# SPDX-License-Identifier: GPL-3.0-or-later
chimeraos
chimeraos-installer
5 changes: 1 addition & 4 deletions chimeraos/airootfs/etc/locale.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#
# SPDX-License-Identifier: GPL-3.0-or-later

LANG=en_US.UTF-8
LANG=C.UTF-8
70 changes: 0 additions & 70 deletions chimeraos/airootfs/etc/mkinitcpio.conf

This file was deleted.

3 changes: 3 additions & 0 deletions chimeraos/airootfs/etc/mkinitcpio.conf.d/archiso.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
HOOKS=(base udev modconf kms plymouth archiso archiso_loop_mnt block filesystems)
COMPRESSION="xz"
COMPRESSION_OPTIONS=(-T0 -9 --memlimit=7000MiB)
5 changes: 1 addition & 4 deletions chimeraos/airootfs/etc/mkinitcpio.d/linux-chimeraos.preset
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
#
# SPDX-License-Identifier: GPL-3.0-or-later

# mkinitcpio preset file for the 'linux' package on archiso

PRESETS=('archiso')

ALL_kver='/boot/vmlinuz-linux-chimeraos'
ALL_config='/etc/mkinitcpio.conf'
archiso_config='/etc/mkinitcpio.conf.d/archiso.conf'

archiso_image="/boot/initramfs-linux-chimeraos.img"
1 change: 0 additions & 1 deletion chimeraos/airootfs/etc/modprobe.d/xpad.conf

This file was deleted.

1 change: 1 addition & 0 deletions chimeraos/airootfs/etc/modules-load.d/xpad.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
xpad
10 changes: 0 additions & 10 deletions chimeraos/airootfs/etc/motd

This file was deleted.

14 changes: 14 additions & 0 deletions chimeraos/airootfs/etc/pacman.d/hooks/10-set-logo.hook
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# remove from airootfs!
[Trigger]
Operation = Install
Operation = Upgrade
Type = Package
Target = *

[Action]
Description = Set ChimeraOS logo in plymouth
When = PostTransaction
Depends = plymouth
Depends = sh
Depends = coreutils
Exec = /bin/sh -c "/usr/bin/cp /usr/share/chimeraos/chimeraos-text.png /usr/share/plymouth/themes/spinner/watermark.png"
13 changes: 0 additions & 13 deletions chimeraos/airootfs/etc/pacman.d/hooks/40-locale-gen.hook

This file was deleted.

13 changes: 0 additions & 13 deletions chimeraos/airootfs/etc/pacman.d/hooks/uncomment-mirrors.hook

This file was deleted.

4 changes: 4 additions & 0 deletions chimeraos/airootfs/etc/pam.d/gamescope
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
auth required pam_unix.so nullok
account required pam_unix.so
session required pam_unix.so
session required pam_systemd.so
1 change: 0 additions & 1 deletion chimeraos/airootfs/etc/resolv.conf

This file was deleted.

116 changes: 0 additions & 116 deletions chimeraos/airootfs/etc/ssh/sshd_config

This file was deleted.

3 changes: 3 additions & 0 deletions chimeraos/airootfs/etc/ssh/sshd_config.d/10-archiso.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Allow root login using password authentication
PasswordAuthentication yes
PermitRootLogin yes
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
#
# SPDX-License-Identifier: GPL-3.0-or-later

[Journal]
Storage=volatile
Storage=volatile
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
#
# SPDX-License-Identifier: GPL-3.0-or-later

[Login]
HandleSuspendKey=ignore
HandleHibernateKey=ignore
HandleLidSwitch=ignore
HandleLidSwitch=ignore
22 changes: 14 additions & 8 deletions chimeraos/airootfs/etc/systemd/network/20-ethernet.network
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
#
# SPDX-License-Identifier: GPL-3.0-or-later

[Match]
Type=ether
# Matching with "Type=ether" causes issues with containers because it also matches virtual Ethernet interfaces (veth*).
# See https://bugs.archlinux.org/task/70892
# Instead match by globbing the network interface name.
Name=en*
Name=eth*

[Network]
DHCP=yes
IPv6PrivacyExtensions=yes
MulticastDNS=yes

# systemd-networkd does not set per-interface-type default route metrics
# https://github.com/systemd/systemd/issues/17698
# Explicitly set route metric, so that Ethernet is preferred over Wi-Fi and Wi-Fi is preferred over mobile broadband.
# Use values from NetworkManager. From nm_device_get_route_metric_default in
# https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/main/src/core/devices/nm-device.c
[DHCPv4]
RouteMetric=512
RouteMetric=100

[DHCPv6]
RouteMetric=512
[IPv6AcceptRA]
RouteMetric=100
18 changes: 10 additions & 8 deletions chimeraos/airootfs/etc/systemd/network/20-wlan.network
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
#
# SPDX-License-Identifier: GPL-3.0-or-later

[Match]
Type=wlan
Name=wl*

[Network]
DHCP=yes
IPv6PrivacyExtensions=yes
MulticastDNS=yes

# systemd-networkd does not set per-interface-type default route metrics
# https://github.com/systemd/systemd/issues/17698
# Explicitly set route metric, so that Ethernet is preferred over Wi-Fi and Wi-Fi is preferred over mobile broadband.
# Use values from NetworkManager. From nm_device_get_route_metric_default in
# https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/main/src/core/devices/nm-device.c
[DHCPv4]
RouteMetric=1024
RouteMetric=600

[DHCPv6]
RouteMetric=1024
[IPv6AcceptRA]
RouteMetric=600
15 changes: 0 additions & 15 deletions chimeraos/airootfs/etc/systemd/network/20-wwan.network

This file was deleted.

Loading

0 comments on commit 6bf9cba

Please sign in to comment.