Skip to content

Commit

Permalink
fix(just): Wait for any existing transactions to complete before invo…
Browse files Browse the repository at this point in the history
…king rpm-ostree
  • Loading branch information
EyeCantCU committed Sep 2, 2023
1 parent 07674ff commit 7889e2e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions system_files/deck/shared/usr/share/ublue-os/just/custom.just
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ get-steamcmd:

install-oversteer:
sudo wget https://copr.fedorainfracloud.org/coprs/kylegospo/oversteer/repo/fedora-$(rpm -E %fedora)/kylegospo-oversteer-fedora-$(rpm -E %fedora).repo -O /etc/yum.repos.d/_copr_kylegospo-oversteer.repo
ublue-update --wait
rpm-ostree install oversteer

install-nix:
Expand Down Expand Up @@ -217,6 +218,7 @@ switch-to-ext4:

zram-on:
#!/usr/bin/env bash
ublue-update --wait
KARGS=$(rpm-ostree kargs)
if grep -q 'zram' <<< ${KARGS}; then
rpm-ostree kargs --delete=zram
Expand All @@ -227,6 +229,7 @@ zram-on:
zram-off:
#!/usr/bin/env bash
ublue-update --wait
KARGS=$(rpm-ostree kargs)
if grep -qv 'zram' <<< ${KARGS}; then
rpm-ostree kargs --append=zram=0
Expand Down Expand Up @@ -320,6 +323,7 @@ _toggle_wayland:
sign-image:
source /etc/default/bazzite && \
ublue-update --wait && \
if grep -qvz "/var/${IMAGE_VENDOR}/image" <<< $(rpm-ostree status); then \
rpm-ostree rebase ostree-image-signed:$(just --unstable _get-image); \
else \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@ configure-waydroid:
install-corectrl:
echo 'Installing CoreCtrl...'
ublue-update --wait
rpm-ostree install corectrl
echo 'Setting needed kargs for CoreCtrl...'
rpm-ostree kargs --append="amdgpu.ppfeaturemask=0xffffffff"

install-oversteer:
sudo wget https://copr.fedorainfracloud.org/coprs/kylegospo/oversteer/repo/fedora-$(rpm -E %fedora)/kylegospo-oversteer-fedora-$(rpm -E %fedora).repo -O /etc/yum.repos.d/_copr_kylegospo-oversteer.repo
ublue-update --wait
rpm-ostree install oversteer

install-nix:
Expand Down Expand Up @@ -157,6 +159,7 @@ set-btrfs-flags:

zram-on:
#!/usr/bin/env bash
ublue-update --wait
KARGS=$(rpm-ostree kargs)
if grep -q 'zram' <<< ${KARGS}; then
rpm-ostree kargs --delete=zram
Expand All @@ -167,6 +170,7 @@ zram-on:
zram-off:
#!/usr/bin/env bash
ublue-update --wait
KARGS=$(rpm-ostree kargs)
if grep -qv 'zram' <<< ${KARGS}; then
rpm-ostree kargs --append=zram=0
Expand Down Expand Up @@ -229,6 +233,7 @@ unhide-grub:
sign-image:
source /etc/default/bazzite && \
ublue-update --wait && \
if grep -qvz "/var/${IMAGE_VENDOR}/image" <<< $(rpm-ostree status); then \
rpm-ostree rebase ostree-image-signed:$(just --unstable _get-image); \
else \
Expand Down

0 comments on commit 7889e2e

Please sign in to comment.