Skip to content

Commit 1818f17

Browse files
pull[bot]biebelstellaberrantBWBellairsKyleGospo
authored
[pull] main from ublue-os:main (#29)
* fix(just): fix configure-grub error (ublue-os#3896) Fixes the "Recipe `configure-grub` failed with exit code 1" error when menu_auto_hide is not set in grubenv * fix(dnf) hide erroneous error messages from the user (ublue-os#3897) the custom dnf handler script opens the webpage via xdg-open, which seems to be buggy in both GNOME and KDE and will give erroneous error messages in both (while still working). We can redirect error output to /dev/null to suppress the messages. * fix(beesd): Move override file (ublue-os#3907) * feat(beesd): Various improvements (ublue-os#3913) * fix(beesd): Move override file * fix(beesd): rename override.conf to bees-timeout.conf * feat(beesd): Cleanup leftover .beeshome subvolume upon configuration removal * feat(beesd): Set thread factor parameter * fix(beesd): Manually mount the root subvolume if not already mounted elsewhere (ublue-os#3914) * fix(beesd): This should be an empty string check (ublue-os#3915) * fix: Add zlib-devel to terra ignore list * fix: Remove old and broken ujust * chore: Clean up some layers from ujust, lets start disincentivizing this when possible. * feat(kcminputrc): add global pointer defaults for KDE with no acceleration (ublue-os#3884) * chore: Move to -deck * fix: Disable mouse accel on gnome-deck * chore(deps): update system_files/desktop/silverblue/usr/share/gnome-shell/extensions/tmp/caffeine digest to 07643c3 (ublue-os#3921) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --------- Co-authored-by: biebel <badk666@hotmail.com> Co-authored-by: stellaberrant <104581805+stellaberrant@users.noreply.github.com> Co-authored-by: Bradley Bellairs <11426553+BWBellairs@users.noreply.github.com> Co-authored-by: Kyle Gospodnetich <me@kylegospodneti.ch> Co-authored-by: Xarishark <Xarishark@outlook.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent e8e4491 commit 1818f17

File tree

11 files changed

+58
-107
lines changed

11 files changed

+58
-107
lines changed

Containerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ RUN --mount=type=cache,dst=/var/cache \
6767
sed -i 's|baseurl=https://pkg.surfacelinux.com/fedora/f\$releasever/|baseurl=https://pkg.surfacelinux.com/fedora/f42/|' /etc/yum.repos.d/linux-surface.repo && \
6868
dnf5 -y config-manager setopt "linux-surface".enabled=false && \
6969
dnf5 -y config-manager setopt "*bazzite*".priority=1 && \
70-
dnf5 -y config-manager setopt "*terra*".priority=3 "*terra*".exclude="nerd-fonts topgrade scx-tools scx-scheds steam python3-protobuf" && \
70+
dnf5 -y config-manager setopt "*terra*".priority=3 "*terra*".exclude="nerd-fonts topgrade scx-tools scx-scheds steam python3-protobuf zlib-devel" && \
7171
dnf5 -y config-manager setopt "terra-mesa".enabled=true && \
7272
eval "$(/ctx/dnf5-setopt setopt '*negativo17*' priority=4 exclude='mesa-* *xone*')" && \
7373
dnf5 -y config-manager setopt "*rpmfusion*".priority=5 "*rpmfusion*".exclude="mesa-*" && \
@@ -423,7 +423,6 @@ RUN --mount=type=cache,dst=/var/cache \
423423
echo "import \"/usr/share/ublue-os/just/81-bazzite-fixes.just\"" >> /usr/share/ublue-os/justfile && \
424424
echo "import \"/usr/share/ublue-os/just/82-bazzite-apps.just\"" >> /usr/share/ublue-os/justfile && \
425425
echo "import \"/usr/share/ublue-os/just/82-bazzite-beesd.just\"" >> /usr/share/ublue-os/justfile && \
426-
echo "import \"/usr/share/ublue-os/just/82-bazzite-cdemu.just\"" >> /usr/share/ublue-os/justfile && \
427426
echo "import \"/usr/share/ublue-os/just/82-bazzite-sunshine.just\"" >> /usr/share/ublue-os/justfile && \
428427
echo "import \"/usr/share/ublue-os/just/82-bazzite-waydroid.just\"" >> /usr/share/ublue-os/justfile && \
429428
echo "import \"/usr/share/ublue-os/just/83-bazzite-audio.just\"" >> /usr/share/ublue-os/justfile && \
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[Libinput]
2+
PointerAcceleration=0.0
3+
PointerAccelerationProfile=2

system_files/deck/shared/usr/share/ublue-os/just/85-bazzite-image.just

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -169,15 +169,6 @@ restore-virtual-keyboard:
169169
fi
170170
fi
171171

172-
_toggle-autologin:
173-
#!/usr/bin/bash
174-
DESKTOP_AUTOLOGIN="/etc/bazzite/desktop_autologin"
175-
if [[ -f $DESKTOP_AUTOLOGIN ]]; then
176-
sudo rm -f $DESKTOP_AUTOLOGIN
177-
else
178-
sudo touch $DESKTOP_AUTOLOGIN
179-
fi
180-
181172
# Restore the "Return to Gaming Mode" shortcut on the Desktop
182173
restore-gamemode-shortcut:
183174
#!/usr/bin/bash
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Relocatable schemas are located here in dconf
2+
# Some Gnome extensions don't ship gschema XML, so their settings also need to go in dconf
3+
4+
[org/gnome/desktop/peripherals/mouse]
5+
accel-profile='flat'

system_files/desktop/shared/etc/systemd/beesd@.service.d/override.conf renamed to system_files/desktop/shared/etc/systemd/system/beesd@.service.d/bees-timeout.conf

File renamed without changes.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[Service]
2+
ExecStart=
3+
ExecStart=/usr/bin/timeout 10m /usr/bin/beesd --no-timestamps %i
4+
Restart=no
5+
SuccessExitStatus=124
6+
OOMScoreAdjust=1000
7+
OOMPolicy=stop

system_files/desktop/shared/usr/share/ublue-os/just/80-bazzite.just

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,11 @@ configure-grub ACTION="":
100100
# Function to get the current GRUB menu_auto_hide setting and explain it
101101
get_current_setting() {
102102
local CURRENT_SETTING
103-
CURRENT_SETTING=$(sudo grub2-editenv - list | grep menu_auto_hide | cut -d= -f2)
103+
if sudo grub2-editenv - list | grep -q '^menu_auto_hide='; then
104+
CURRENT_SETTING=$(sudo grub2-editenv - list | awk -F= '/menu_auto_hide/ {print $2}')
105+
else
106+
CURRENT_SETTING=""
107+
fi
104108
if [ -z "$CURRENT_SETTING" ]; then
105109
echo "Current GRUB menu_auto_hide setting: ${bold}${red}Not Set (default to 0)${normal}"
106110
echo "Explanation:"

system_files/desktop/shared/usr/share/ublue-os/just/82-bazzite-beesd.just

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,40 @@ configure-beesd ACTION="":
1818
sudo rm -f "/etc/systemd/system/beesd@${uuid}.service.d/override.conf"
1919
sudo rmdir "/etc/systemd/system/beesd@${uuid}.service.d" 2>/dev/null || true
2020
echo "Configuration removed and timer disabled."
21+
22+
echo "Cleaning leftover data"
23+
fs_root=$(findmnt --source UUID="$uuid" -o TARGET,OPTIONS | grep "subvolid=5" | awk '{print $1}')
24+
is_manual_mount=false
25+
if [[ -z "$fs_root" ]]; then
26+
fs_root="/run/bees/mnt/${uuid}"
27+
sudo mkdir -p "$fs_root"
28+
if ! sudo mount -o subvolid=5 UUID="$uuid" "$fs_root"; then
29+
fs_root=""
30+
else
31+
is_manual_mount=true
32+
fi
33+
fi
34+
35+
if [[ -n "$fs_root" ]]; then
36+
beeshome_id=$(sudo btrfs subvolume list "$fs_root" -t | grep "\.beeshome" | awk '{print $1}')
37+
if [[ -n "$beeshome_id" ]]; then
38+
echo "Found .beeshome subvolume with ID: $beeshome_id"
39+
sudo btrfs subvolume delete -i "$beeshome_id" "$fs_root"
40+
echo "Deleted .beeshome subvolume"
41+
else
42+
echo "No .beeshome subvolume found"
43+
fi
44+
45+
if [[ "$is_manual_mount" == true ]]; then
46+
sudo umount "$fs_root"
47+
sleep 1
48+
# Device might still be busy
49+
# Not critical if this fails
50+
sudo rmdir "$fs_root" >/dev/null 2>&1
51+
fi
52+
fi
53+
54+
sudo systemctl daemon-reload
2155
}
2256

2357
while true; do
@@ -106,7 +140,7 @@ configure-beesd ACTION="":
106140
# https://github.com/Zygo/bees/blob/master/docs/options.md#load-management-options
107141
sudo sed -i "s/^UUID=.*/UUID=${UUID}/" "/etc/bees/${UUID}.conf"
108142
sudo sed -i "s/# DB_SIZE=.*/DB_SIZE=${db_size}/" "/etc/bees/${UUID}.conf"
109-
sudo sed -i "s/# OPTIONS=.*/OPTIONS=\"--strip-paths --no-timestamps --throttle-factor 10\"/" "/etc/bees/${UUID}.conf"
143+
sudo sed -i "s/# OPTIONS=.*/OPTIONS=\"--strip-paths --no-timestamps --thread-factor 0.5 --throttle-factor 10\"/" "/etc/bees/${UUID}.conf"
110144
echo "Created /etc/bees/${UUID}.conf with DB_SIZE=${db_size} bytes"
111145

112146
# Only start the service if enough memory is free

system_files/desktop/shared/usr/share/ublue-os/just/82-bazzite-cdemu.just

Lines changed: 0 additions & 92 deletions
This file was deleted.

0 commit comments

Comments
 (0)