Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/honjow/chimeraos into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
honjow committed Sep 24, 2023
2 parents 2dcdb6c + db40073 commit af3e0f4
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ LABEL contributor="[email protected]"
COPY rootfs/etc/pacman.conf /etc/pacman.conf
RUN echo -e "keyserver-options auto-key-retrieve" >> /etc/pacman.d/gnupg/gpg.conf && \
pacman-key --init && \
pacman --noconfirm -Syyuu && \
pacman --noconfirm -Syy && \
pacman --noconfirm -S \
arch-install-scripts \
btrfs-progs \
Expand Down
1 change: 1 addition & 0 deletions manifest
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ export PACKAGES="\
xf86-video-amdgpu \
xorg-server \
xfsprogs \
zram-generator \
zsh \
"

Expand Down
4 changes: 4 additions & 0 deletions rootfs/etc/sysctl.d/99-vm-zram-parameters.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
vm.swappiness = 180
vm.watermark_boost_factor = 0
vm.watermark_scale_factor = 125
vm.page-cluster = 0
5 changes: 5 additions & 0 deletions rootfs/etc/systemd/zram-generator.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[zram0]
zram-size = max(ram / 4, 8192)
compression-algorithm = zst
swap-priority = 100
fs-type = swap
2 changes: 1 addition & 1 deletion rootfs/usr/bin/sk-update-boot-entry
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if [[ "$service_status" == "enabled" ]]; then
fi

# swap uuid
swap_dev=$(awk '$2 == "partition" && $1 ~ "^/dev/" {print $1}' /proc/swaps)
swap_dev=$(awk '$2 == "partition" && $1 ~ "^/dev/[^z]" {print $1}' /proc/swaps)
if [[ -n "$swap_dev" ]]; then
SWAP_PARTUUID=$(lsblk -no PARTUUID -f "$swap_dev")
fi
Expand Down
2 changes: 1 addition & 1 deletion rootfs/usr/lib/frzr.d/bootconfig.conf
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ibt=off pci=noaer split_lock_detect=off iomem=relaxed amd-pstate=passive nowatchdog
ibt=off pci=noaer split_lock_detect=off iomem=relaxed amd-pstate=passive zswap.enabled=0 nowatchdog

0 comments on commit af3e0f4

Please sign in to comment.