Out Of Space Error with 6.7 Kernel

The day before yesday I was updating and got message about a possible out of space error that might arise after the kernel is updated to 6.7. I’m a bit confused did telling that yes address the issue so when 6.7 does drop the issue won’t happen? Or was it just a heads up that the issue might arise? Thanks

╰─λ garuda-inxi
System:
Kernel: 6.6.10-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
clocksource: tsc available: hpet,acpi_pm
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=bdb799c2-641a-456b-8bbb-d286e94a9d63 rw rootflags=subvol=@
quiet loglevel=3 ibt=off
Desktop: KDE Plasma v: 5.27.10 tk: Qt v: 5.15.12 wm: kwin_x11 vt: 2
dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
Mobo: ASUSTeK model: TUF GAMING B550-PLUS WIFI II v: Rev X.0x
serial: <superuser required> UEFI: American Megatrends v: 3404
date: 10/07/2023
Battery:
Device-1: hidpp_battery_0 model: Logitech Wireless Mouse M325
serial: <filter> charge: 55% (should be ignored) rechargeable: yes
status: discharging
Device-2: hidpp_battery_1 model: Logitech Wireless Keyboard K360
serial: <filter> charge: 100% (should be ignored) rechargeable: yes
status: discharging
CPU:
Info: model: AMD Ryzen 7 5700X bits: 64 type: MT MCP arch: Zen 3+ gen: 4
level: v3 note: check built: 2022 process: TSMC n6 (7nm) family: 0x19 (25)
model-id: 0x21 (33) stepping: 2 microcode: 0xA20120E
Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB
L3: 32 MiB desc: 1x32 MiB
Speed (MHz): avg: 3412 high: 3593 min/max: 2200/4662 boost: enabled
scaling: driver: acpi-cpufreq governor: performance cores: 1: 3400 2: 3400
3: 3593 4: 3400 5: 3400 6: 3400 7: 3400 8: 3400 9: 3400 10: 3400 11: 3400
12: 3400 13: 3400 14: 3400 15: 3400 16: 3400 bogomips: 108586
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities: <filter>
Graphics:
Device-1: NVIDIA GA106 [GeForce RTX 3060 Lite Hash Rate] vendor: ASUSTeK
driver: nvidia v: 545.29.06 alternate: nouveau,nvidia_drm non-free: 545.xx+
status: current (as of 2023-10; EOL~2026-12-xx) arch: Ampere code: GAxxx
process: TSMC n7 (7nm) built: 2020-2023 pcie: gen: 4 speed: 16 GT/s
lanes: 16 ports: active: none off: HDMI-A-1 empty: DP-1,DP-2,DP-3
bus-ID: 07:00.0 chip-ID: 10de:2504 class-ID: 0300
Display: x11 server: X.Org v: 21.1.10 with: Xwayland v: 23.2.3
compositor: kwin_x11 driver: X: loaded: nvidia unloaded: modesetting
alternate: fbdev,nouveau,nv,vesa gpu: nvidia,nvidia-nvswitch
display-ID: :0 screens: 1
Screen-1: 0 s-res: 2560x1080 s-dpi: 97 s-size: 670x283mm (26.38x11.14")
s-diag: 727mm (28.63")
Monitor-1: HDMI-A-1 mapped: HDMI-0 note: disabled model: AOC Q2963
serial: <filter> built: 2016 res: 2560x1080 hz: 60 dpi: 97 gamma: 1.2
size: 673x284mm (26.5x11.18") diag: 730mm (28.8") modes: max: 2560x1080
min: 640x480
API: EGL v: 1.5 hw: drv: nvidia platforms: device: 0 drv: nvidia device: 2
drv: swrast gbm: drv: nvidia surfaceless: drv: nvidia x11: drv: nvidia
inactive: wayland,device-1
API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 545.29.06
glx-v: 1.4 direct-render: yes renderer: NVIDIA GeForce RTX 3060/PCIe/SSE2
memory: 11.72 GiB
API: Vulkan v: 1.3.274 layers: 7 device: 0 type: discrete-gpu
name: NVIDIA GeForce RTX 3060 driver: nvidia v: 545.29.06
device-ID: 10de:2504 surfaces: xcb,xlib
Audio:
Device-1: NVIDIA GA106 High Definition Audio vendor: ASUSTeK
driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
bus-ID: 07:00.1 chip-ID: 10de:228e class-ID: 0403
Device-2: AMD Starship/Matisse HD Audio vendor: ASUSTeK
driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
bus-ID: 09:00.4 chip-ID: 1022:1487 class-ID: 0403
API: ALSA v: k6.6.10-zen1-1-zen status: kernel-api with: aoss
type: oss-emulator tools: N/A
Server-1: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Realtek RTL8125 2.5GbE vendor: ASUSTeK driver: r8169 v: kernel
pcie: gen: 2 speed: 5 GT/s lanes: 1 port: f000 bus-ID: 06:00.0
chip-ID: 10ec:8125 class-ID: 0200
IF: enp6s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
Local Storage: total: 26.89 TiB used: 15.98 TiB (59.4%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:2 vendor: Crucial model: CT1000T500SSD8
size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
lanes: 4 tech: SSD serial: <filter> fw-rev: P8CR002 temp: 27.9 C
scheme: GPT
ID-2: /dev/nvme1n1 maj-min: 259:0 vendor: Crucial model: CT500P3SSD8
size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
lanes: 4 tech: SSD serial: <filter> fw-rev: P9CR30A temp: 27.9 C
scheme: GPT
ID-3: /dev/sda maj-min: 8:0 vendor: Seagate model: Expansion HDD
size: 10.91 TiB block-size: physical: 4096 B logical: 512 B type: USB
rev: 3.2 spd: 5 Gb/s lanes: 1 mode: 3.2 gen-1x1 tech: N/A serial: <filter>
fw-rev: 0003 scheme: GPT
ID-4: /dev/sdb maj-min: 8:16 vendor: Seagate model: Expansion HDD
size: 7.28 TiB block-size: physical: 4096 B logical: 512 B type: USB
rev: 3.2 spd: 5 Gb/s lanes: 1 mode: 3.2 gen-1x1 tech: N/A serial: <filter>
fw-rev: 1801 scheme: GPT
ID-5: /dev/sdc maj-min: 8:32 vendor: Seagate model: ST8000AS0002-1NA17Z
size: 7.28 TiB block-size: physical: 4096 B logical: 512 B type: USB
rev: 2.1 spd: 480 Mb/s lanes: 1 mode: 2.0 tech: HDD rpm: 5980
serial: <filter> scheme: GPT
ID-6: /dev/sdd maj-min: 8:48 vendor: SanDisk model: USB 3.2Gen1
size: 57.3 GiB block-size: physical: 512 B logical: 512 B type: USB rev: 2.1
spd: 480 Mb/s lanes: 1 mode: 2.0 tech: N/A serial: <filter> fw-rev: 1.00
scheme: GPT
SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
Partition:
ID-1: / raw-size: 232.8 GiB size: 232.8 GiB (100.00%)
used: 34.68 GiB (14.9%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:4
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 2 MiB (0.7%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:3
ID-3: /home raw-size: 232.8 GiB size: 232.8 GiB (100.00%)
used: 34.68 GiB (14.9%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:4
ID-4: /var/log raw-size: 232.8 GiB size: 232.8 GiB (100.00%)
used: 34.68 GiB (14.9%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:4
ID-5: /var/tmp raw-size: 232.8 GiB size: 232.8 GiB (100.00%)
used: 34.68 GiB (14.9%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:4
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
ID-1: swap-1 type: zram size: 46.95 GiB used: 0 KiB (0.0%) priority: 100
comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 16 dev: /dev/zram0
Sensors:
System Temperatures: cpu: 40.5 C mobo: N/A gpu: nvidia temp: 33 C
Fan Speeds (rpm): N/A gpu: nvidia fan: 0%
Info:
Processes: 479 Uptime: 1h 19m wakeups: 0 Memory: total: 48 GiB
available: 46.95 GiB used: 9.01 GiB (19.2%) Init: systemd v: 255
default: graphical tool: systemctl Compilers: gcc: 13.2.1 Packages: 2199
pm: pacman pkgs: 2185 libs: 580 tools: paru,pikaur pm: flatpak pkgs: 14
pm: snap pkgs: 0 Shell: fish v: 3.7.0 running-in: konsole inxi: 3.3.31
Garuda (2.6.22-1):
System install date:     2024-01-11
Last full system update: 2024-01-11
Is partially upgraded:   No
Relevant software:       snapper NetworkManager dracut nvidia-dkms
Windows dual boot:       No/Undetected
Failed units:

Maybe you have more than one kernel OR you have old/unused packages (old kernels, etc…) occupying the space, what lead to / being out of space ?
reference : [SOLVED] system cleanup - remove old kernel modules / Kernel & Hardware / Arch Linux Forums

1 Like

In the past I might have thought that, but with this install of Garuda I left the default kernel and let the updates deal with upgrading it when pushed. As for the message it looked to be something deliberately pushed out by the Garuda devs. I also saw a thread on either Discord or another forum. Pretty sure it was the Xero OS Discord channel where I saw it. I just posted in their lounge and will add here whatever info I get.

1 Like

I have similar problems. My disk was full. I’m currently in the process of restoring it.

sudo systemctl start snapper-cleanup.service

via https://www.reddit.com/r/archlinux/comments/z4r4u4/snapper_not_deleting_old_snapshots/

sudo paccache -r

How to delete old packages installed by pacman in Arch Linux? - Unix & Linux Stack Exchange

And some more:

How to remove orphaned unused packages in Arch Linux - nixCraft

I hope one day these things will be part of garuda-upgrade and the boot screen (Kernel selection, boot)

The message and the tread I saw had to do with the EFI partition not the main partition. Sorry sould of clarified that.

Hmm, I guess it is too late now but it would be useful to know exactly what the message says. This is not a message that everyone is getting if that is what you are asking; it must be related to something specific happening with your system.

For what it’s worth, none of your partitions look like they are in danger of running out of space. The root partition (where the kernel and initramfs images are stored) is only showing 14.9% used:

Your EFI partition is less than 1% full.

If you see the message again, be sure to paste it into the thread so we can take a look.


This service is enabled by default in Garuda Linux–no need to start it.

Keep in mind, if the package cache is captured in any Btrfs snapshots then clearing the cache doesn’t actually release any disk space until the snapshots are deleted.

The defaults for paccache are pretty conservative (as in, a lot is saved). You can automate cleaning the cache more aggressively if you want with paccache.timer: https://wiki.archlinux.org/title/pacman#Cleaning_the_package_cache

I usually set up a hook that clears all but the last cache and the currently installed after every Pacman transaction like so:

sudo micro /etc/pacman.d/hooks/paccache.hook

Paste in the hook:

[Trigger]
Operation = Remove
Operation = Install
Operation = Upgrade
Type = Package
Target = *

[Action]
Description = Keep the last cache and the currently installed.
When = PostTransaction
Exec = /usr/bin/paccache -rk2

You can make the hook as aggressive as you wish. After you have it set up, there is no need to explicitly clear package cache.

Many users find the package cache useful, for example for downgrading packages. Most likely that is why the defaults are so conservative.

garuda-update does announce the presence of orphans at the end of each update. After you review them, you can remove them with the cleanup function.

cleanup

Garuda Assistant also has utilities for clearing cache and removing orphaned packages.

6 Likes

Yea my bad I rebooted before saving the output. I copied it but didn’t save it. If nothing else I did get some useful info out of this thread, so thanks everyone.

I know what you mean about being too aggressive in cleaning the cache. There is aother OS that I would call second to Garuda, but they auto clean the cach either after each update or on reboot, not sure which. Now with what you posted I should be able to take a look and maybe adjust it to my liking.

EDIT:

Is there by chance a way to auto-save the Konsole output, then if all goes as it should I can just delete the file?

Maybe with the script command, but I never tried.
I read that (only?) xterm allows to dump screen contents somehow, never tried that either.
Most terminal emulators don’t.
And screendump only works with the virtual consoles as far as I can tell (on a side note, doing that I spotted some errors I never seen before).
I tried with tee some time ago but failed because then how do I provide input to prompts?
Hope it’s of some use, though I doubt.
Interesting question, I guess I’ll try something some day or another.

Decided to have a look through Konsole’s rightclick menu and under Menu there is a “Save Output As” option and it saves everything to a text file.

                                        locutus@Unimatrix-Zero
                                        ----------------------
                                        OS: Garuda Linux x86_64
                                        Kernel: 6.6.10-zen1-1-zen
                                        Uptime: 9 hours, 51 mins

                                        Packages: 2185 (pacman)[stable], 15 (flatpak)
                                        Shell: fish 3.7.0
                                        Terminal: konsole 23.8.4

                                        CPU: AMD Ryzen 7 5700X (16) @ 4.66 GHz
                                        GPU: NVIDIA GeForce RTX 3060 Lite Hash Rate
                                        Memory: 9.94 GiB / 46.95 GiB (21%)

                                        ████████████████████████
                                        ████████████████████████





 ╭─locutus@Unimatrix in ~ 
 ╰─λ garuda-update
[sudo] password for locutus:                      
:: Synchronizing package databases...
 garuda is up to date
 herecura is up to date
 core is up to date
 extra                                  8.3 MiB  2.82 MiB/s 00:03 [------------------------------------] 100%
 multilib is up to date
 chaotic-aur                            2.6 MiB  3.61 MiB/s 00:01 [------------------------------------] 100%
 arcolinux_repo                       145.0 KiB   929 KiB/s 00:00 [------------------------------------] 100%
 arcolinux_repo_3party                362.2 KiB  2.12 MiB/s 00:00 [------------------------------------] 100%
 arcolinux_repo_xlarge                 40.5 KiB   337 KiB/s 00:00 [------------------------------------] 100%
 nemesis_repo is up to date
 endeavouros                           21.6 KiB  16.2 KiB/s 00:01 [------------------------------------] 100%
 Reborn-OS is up to date
 cachyos-v3 is up to date
 cachyos-core-v3 is up to date
 cachyos-extra-v3                       3.7 MiB  1830 KiB/s 00:02 [------------------------------------] 100%
 cachyos is up to date

--> Refreshing mirrorlists using rate-mirrors, please be patient..🍵

:: Synchronizing package databases...
 garuda downloading...
 herecura downloading...
 core downloading...
 extra downloading...
 multilib downloading...
 chaotic-aur downloading...
 arcolinux_repo downloading...
 arcolinux_repo_3party downloading...
 arcolinux_repo_xlarge downloading...
 nemesis_repo downloading...
 endeavouros downloading...
 Reborn-OS downloading...
 cachyos-v3 downloading...
 cachyos-core-v3 downloading...
 cachyos-extra-v3 downloading...
 cachyos downloading...
:: Starting full system upgrade...
warning: garuda-settings-manager: local (1.0.2-5) is newer than garuda (1.0.2-3)
warning: garuda-settings-manager-kcm: local (1.0.2-5) is newer than garuda (1.0.2-3)
warning: pacman: local (6.0.2-14) is newer than core (6.0.2-8)
resolving dependencies...
looking for conflicting packages...

Package (9)                      Old Version     New Version     Net Change  Download Size

extra/appstream                  1.0.1-1         1.0.1-2           0.00 MiB       3.49 MiB
extra/appstream-qt5              1.0.1-1         1.0.1-2           0.00 MiB       0.09 MiB
chaotic-aur/brave-nightly-bin    1.63.109-1      1.63.111-1       -0.02 MiB     147.52 MiB
extra/eza                        0.17.0-1        0.17.1-1          0.00 MiB       0.45 MiB
chaotic-aur/google-chrome-dev    122.0.6226.2-1  122.0.6238.2-1    0.30 MiB     138.81 MiB
extra/htop                       3.2.2-1         3.3.0-1           0.02 MiB       0.15 MiB
extra/oath-toolkit               2.6.10-1        2.6.11-1          0.00 MiB       0.24 MiB
extra/python-fonttools           4.47.1-1        4.47.2-1          0.00 MiB       2.68 MiB
chaotic-aur/reshade-shaders-git  r41.a570e20-1   r42.e23da87-1     0.00 MiB      68.91 MiB

Total Download Size:   362.32 MiB
Total Installed Size:  807.40 MiB
Net Upgrade Size:        0.31 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 appstream-qt5-1.0.1-2-x86_64          88.2 KiB   235 KiB/s 00:00 [------------------------------------] 100%
 htop-3.3.0-1-x86_64                  156.6 KiB   343 KiB/s 00:00 [------------------------------------] 100%
 oath-toolkit-2.6.11-1-x86_64         246.5 KiB   479 KiB/s 00:01 [------------------------------------] 100%
 eza-0.17.1-1-x86_64                  457.0 KiB   735 KiB/s 00:01 [------------------------------------] 100%
 appstream-1.0.1-2-x86_64               3.5 MiB  5.39 MiB/s 00:01 [------------------------------------] 100%
 python-fonttools-4.47.2-1-x86_64       2.7 MiB  1283 KiB/s 00:02 [------------------------------------] 100%
 reshade-shaders-git-r42.e23da87...    68.9 MiB  17.6 MiB/s 00:04 [------------------------------------] 100%
 google-chrome-dev-122.0.6238.2-...   138.8 MiB  31.6 MiB/s 00:04 [------------------------------------] 100%
 brave-nightly-bin-1.63.111-1-x86_64  147.5 MiB  31.2 MiB/s 00:05 [------------------------------------] 100%
 Total (9/9)                          362.3 MiB  69.3 MiB/s 00:05 [------------------------------------] 100%
(9/9) checking keys in keyring                                    [------------------------------------] 100%
(9/9) checking package integrity                                  [------------------------------------] 100%
(9/9) loading package files                                       [------------------------------------] 100%
(9/9) checking for file conflicts                                 [------------------------------------] 100%
(9/9) checking available disk space                               [------------------------------------] 100%
:: Running pre-transaction hooks...
(1/1) Performing snapper pre snapshots for the following configurations...
==> root: 421
:: Processing package changes...
(1/9) upgrading appstream                                         [------------------------------------] 100%
(2/9) upgrading appstream-qt5                                     [------------------------------------] 100%
(3/9) upgrading brave-nightly-bin                                 [------------------------------------] 100%
(4/9) upgrading eza                                               [------------------------------------] 100%
(5/9) upgrading google-chrome-dev                                 [------------------------------------] 100%
(6/9) upgrading htop                                              [------------------------------------] 100%
(7/9) upgrading oath-toolkit                                      [------------------------------------] 100%
(8/9) upgrading python-fonttools                                  [------------------------------------] 100%
(9/9) upgrading reshade-shaders-git                               [------------------------------------] 100%
The files are now installed in a new location to be usable within Steam Proton.
You may need to update any config file with a path pointing to the previous location.
:: Running post-transaction hooks...
(1/9) Arming ConditionNeedsUpdate...
(2/9) Updating the appstream cache...
? Metadata cache was updated successfully.
(3/9) Foreign/AUR package notification
aur-check-updates-bin 1.0.10-1
bauh-staging 0.10.7.RC-3
emby-server-beta 4.8.0.66-1
flaresolverr-bin 3.3.12-1
freefilesync-bin 13.2-1
kf5-servicemenus-rootactions-git r16.cdfe53f-3
komga 1.10.0-1
libretro-duckstation 2105-2
plasma5-applets-tiledmenu 42-2
plasma5-applets-volumewin7mixer 26-1
prowlarr-nightly 1.12.1.4195-1
radarr-develop 5.2.6.8376-1
renamemytvseries-qt-bin 2.1.8-1
searchmonkey-gtk 0.8.3-2
sharik-bin 3.1-4
sonarr-develop 4.0.0.752-1
vdhcoapp-bin 2.0.11-1
(4/9) Orphaned package notification...
kdsoap-ws-discovery-client 0.3.0-2
libinput-gestures-qt 0.4-1
python-build 1.0.3-1
python-installer 0.7.0-3
python-wheel 0.42.0-1
wayland-protocols 1.32-1
(5/9) Checking for .pacnew and .pacsave files...
(6/9) Updating icon theme caches...
(7/9) Updating the desktop file MIME type cache...
(8/9) Performing snapper post snapshots for the following configurations...
==> root: 422
(9/9) Syncing all file systems...

System updated! 🐧


 ╭─locutus@Unimatrix in ~ as 🧙 took 58s
 ╰─λ topgrade

── 14:42:34 - System update ────────────────────────────────────────────────────
:: Synchronizing package databases...
 garuda is up to date
 herecura is up to date
 core is up to date
 extra is up to date
 multilib is up to date
 chaotic-aur                            2.6 MiB  4.06 MiB/s 00:01 [------------------------------------] 100%
 arcolinux_repo                       145.0 KiB   630 KiB/s 00:00 [------------------------------------] 100%
 arcolinux_repo_3party                362.2 KiB  1497 KiB/s 00:00 [------------------------------------] 100%
 arcolinux_repo_xlarge                 40.5 KiB   203 KiB/s 00:00 [------------------------------------] 100%
 nemesis_repo is up to date
 endeavouros is up to date
 Reborn-OS is up to date
 cachyos-v3 is up to date
 cachyos-core-v3 is up to date
 cachyos-extra-v3 is up to date
 cachyos is up to date
:: Starting full system upgrade...
warning: garuda-settings-manager: local (1.0.2-5) is newer than garuda (1.0.2-3)
warning: garuda-settings-manager-kcm: local (1.0.2-5) is newer than garuda (1.0.2-3)
warning: pacman: local (6.0.2-14) is newer than core (6.0.2-8)
 there is nothing to do

--> Updating AUR packages with paru..
:: Looking for devel upgrades...
:: Resolving dependencies...
:: Calculating conflicts...
:: Calculating inner conflicts...
:: packages not in the AUR: libretro-duckstation
:: marked out of date: plasma5-applets-tiledmenu

Aur (1)               Old Version  New Version    Make Only
aur/emby-server-beta  4.8.0.66-1   4.8.0.67-1     No

:: Proceed to review? [Y/n]: 

:: Downloading PKGBUILDs...
 (1/1) downloading: emby-server-beta-4.8.0.67-1
/home/locutus/.cache/paru/clone/emby-server-beta/PKGBUILD
# Maintainer: Nicola Hinssen <[email protected]>
# Contributor: Bjorn Nostvold <[email protected]>
# Contributor: Maxime Gauduin <[email protected]>
# Contributor: Daniel Seymour <[email protected]>

pkgname=emby-server-beta
pkgver=4.8.0.67
pkgrel=1
_ffmpeg_ver=2023_06_25
pkgdesc='Bring together your videos, music, photos, and live television'
arch=('x86_64')
url='https://emby.media'
license=('custom')
depends=('alsa-lib'
         'aom'
         'aspnet-runtime-6.0'
         'bzip2'
         'dotnet-runtime-6.0'
         'expat'
         'fontconfig'
         'fribidi'
         'glibc'
         'gmp'
         'gnutls'
         'lame'
         'libass.so'
         'libchromaprint.so'
         'libdav1d.so'         
         'libdrm'
         'libfreetype.so'
         'libjpeg-turbo'
         'libmfx'
         'libpng'
         'libtesseract.so'
         'libtheora'
         'libva-drm.so'
         'libva.so'
         'libvorbisenc.so'
         'libvorbis.so'
         'libwebp'
         'libx264.so'
         'libx265.so'
         'ocl-icd'
         'opus'
         'skia-sharp'
         'sqlite'
         'zvbi'
         'zlib')
makedepends=()
optdepends=('intel-media-sdk: Intel QuickSync support (requires Emby Premiere)'
            'nvidia-utils: Nvidia NVDEC/NVENC support (requires Emby Premiere)')
provides=('emby-server')
conflicts=('emby-server')
source=("https://github.com/MediaBrowser/Emby.Releases/releases/download/${pkgver}/embyserver-netcore_${pkgver}.zip"
        "https://mediabrowser.github.io/embytools/ffmpeg-${_ffmpeg_ver}-x64.tar.xz"
        'emby-server'
        'emby-server.conf'
        'emby-server.service'
        'license.docx')
noextract=('license.docx')
backup=('etc/conf.d/emby-server')
install=emby-server.install
sha256sums=('171984a3bd7f7cbda3ae2f72a24756d2e014acda79f84b4e924e9d720e179c76'
            '70db9e2c1d5eb4345e34a6329918219da12684dded8226afff0f779a4a12f78c'
            '0351d6e9118853e3aa275d62b67dce4444b3d85130b05fb889b2069f364f47ca'
            '8bd03d803e295bea89e9c7bad17e774218f8dc4be9826af124b1f83bc4b256b6'
            'a7f2e38d2d196984d1c1632c851215aea9072b3af998d10a6b68477ad886ea14'
            'a6d7ea65dcb06392479a85e1a10a7aeb872d803da6f784f6935fcd4ee63008c6')

prepare() {
  rm -rf system/{electron,runtimes/{osx,tizen*,win*}}
}

package() {
  install -dm 755 "${pkgdir}"/usr/lib
  cp -dr --no-preserve='ownership' system "${pkgdir}"/usr/lib/emby-server
  install -Dm 755 emby-server -t "${pkgdir}"/usr/bin/
  install -Dm 644 emby-server.service -t "${pkgdir}"/usr/lib/systemd/system/
  install -Dm 644 emby-server.conf "${pkgdir}"/etc/conf.d/emby-server
  install -Dm 644 license.docx -t "${pkgdir}"/usr/share/licenses/$pkgname/license.docx

  install -dm 755 "${pkgdir}/opt/emby-server/bin"
  install -dm 755 "${pkgdir}/opt/emby-server/lib"

  cp -dr --no-preserve='ownership' bin "${pkgdir}/opt/emby-server"
  cp -dr --no-preserve='ownership' lib "${pkgdir}/opt/emby-server"
}


/home/locutus/.cache/paru/clone/emby-server-beta/emby-server
#!/bin/sh

exec dotnet /usr/lib/emby-server/EmbyServer.dll \
  -programdata $PROGRAM_DATA \
  -ffdetect $FFDETECT \
  -ffmpeg $FFMPEG \
  -ffprobe $FFPROBE \
  -restartexitcode 3


/home/locutus/.cache/paru/clone/emby-server-beta/emby-server.conf
FFDETECT=/opt/emby-server/bin/ffdetect
FFMPEG=/opt/emby-server/bin/ffmpeg
FFPROBE=/opt/emby-server/bin/ffprobe
PROGRAM_DATA=/var/lib/emby
LIBVA_DRIVERS_PATH=/usr/lib/dri
LD_LIBRARY_PATH=/opt/emby-server/lib


/home/locutus/.cache/paru/clone/emby-server-beta/emby-server.install
post_upgrade() {
  if [ $(vercmp $2 4.4.0.40-4) -lt 0 ]; then
    cat << EOF
The systemd service now uses DynamicUser to manage the emby user.
You may safely userdel the old emby user.
EOF
  fi
}


/home/locutus/.cache/paru/clone/emby-server-beta/emby-server.service
[Unit]
Description=Emby brings together your videos, music, photos, and live television.
After=network.target

[Service]
User=emby
Group=emby
SupplementaryGroups=render
SupplementaryGroups=video
DynamicUser=true
StateDirectory=emby
ReadWritePaths=-/dev/dri

EnvironmentFile=/etc/conf.d/emby-server
ExecStart=/usr/bin/emby-server
RestartForceExitStatus=3

AmbientCapabilities=
CapabilityBoundingSet=
LockPersonality=true
ProtectControlGroups=true
ProtectKernelModules=true
ProtectKernelTunables=true

[Install]
WantedBy=multi-user.target


/home/locutus/.cache/paru/clone/emby-server-beta/license.docx
binary file: /home/locutus/.cache/paru/clone/emby-server-beta/license.docx

:: Accept changes? [Y/n]: 
fetching devel info...
==> Making package: emby-server-beta 4.8.0.67-1 (Thu 11 Jan 2024 02:42:47 PM PST)
==> Retrieving sources...
  -> Downloading embyserver-netcore_4.8.0.67.zip...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 46.1M  100 46.1M    0     0  31.0M      0  0:00:01  0:00:01 --:--:-- 58.7M
  -> Downloading ffmpeg-2023_06_25-x64.tar.xz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 14.6M  100 14.6M    0     0  2592k      0  0:00:05  0:00:05 --:--:-- 3294k
  -> Found emby-server
  -> Found emby-server.conf
  -> Found emby-server.service
  -> Found license.docx
==> Validating source files with sha256sums...
    embyserver-netcore_4.8.0.67.zip ... Passed
    ffmpeg-2023_06_25-x64.tar.xz ... Passed
    emby-server ... Passed
    emby-server.conf ... Passed
    emby-server.service ... Passed
    license.docx ... Passed
==> Making package: emby-server-beta 4.8.0.67-1 (Thu 11 Jan 2024 02:42:55 PM PST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found embyserver-netcore_4.8.0.67.zip
  -> Found ffmpeg-2023_06_25-x64.tar.xz
  -> Found emby-server
  -> Found emby-server.conf
  -> Found emby-server.service
  -> Found license.docx
==> Validating source files with sha256sums...
    embyserver-netcore_4.8.0.67.zip ... Passed
    ffmpeg-2023_06_25-x64.tar.xz ... Passed
    emby-server ... Passed
    emby-server.conf ... Passed
    emby-server.service ... Passed
    license.docx ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting embyserver-netcore_4.8.0.67.zip with bsdtar
  -> Extracting ffmpeg-2023_06_25-x64.tar.xz with bsdtar
==> Starting prepare()...
==> Sources are ready.
emby-server-beta-4.8.0.67-1: parsing pkg list...
==> Making package: emby-server-beta 4.8.0.67-1 (Thu 11 Jan 2024 02:42:57 PM PST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "emby-server-beta"...
  -> Generating .PKGINFO file...
==> WARNING: Library listed in 'depends' is not required by any files: libass.so
==> WARNING: Library listed in 'depends' is not required by any files: libchromaprint.so
==> WARNING: Library listed in 'depends' is not required by any files: libdav1d.so
==> WARNING: Library listed in 'depends' is not required by any files: libfreetype.so
==> WARNING: Library listed in 'depends' is not required by any files: libtesseract.so
==> WARNING: Library listed in 'depends' is not required by any files: libvorbisenc.so
==> WARNING: Library listed in 'depends' is not required by any files: libvorbis.so
==> WARNING: Library listed in 'depends' is not required by any files: libx264.so
==> WARNING: Library listed in 'depends' is not required by any files: libx265.so
  -> Generating .BUILDINFO file...
  -> Adding install file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: emby-server-beta 4.8.0.67-1 (Thu 11 Jan 2024 02:43:04 PM PST)
==> Cleaning up...
[sudo] password for locutus:                      
loading packages...
resolving dependencies...
looking for conflicting packages...

Package (1)       Old Version  New Version  Net Change

emby-server-beta  4.8.0.66-1   4.8.0.67-1     0.06 MiB

Total Installed Size:  116.13 MiB
Net Upgrade Size:        0.06 MiB

:: Proceed with installation? [Y/n] 
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
checking available disk space...
:: Running pre-transaction hooks...
(1/1) Performing snapper pre snapshots for the following configurations...
==> root: 423
:: Processing package changes...
upgrading emby-server-beta...
:: Running post-transaction hooks...
(1/7) Reloading system manager configuration...
(2/7) Arming ConditionNeedsUpdate...
(3/7) Foreign/AUR package notification
aur-check-updates-bin 1.0.10-1
bauh-staging 0.10.7.RC-3
emby-server-beta 4.8.0.67-1
flaresolverr-bin 3.3.12-1
freefilesync-bin 13.2-1
kf5-servicemenus-rootactions-git r16.cdfe53f-3
komga 1.10.0-1
libretro-duckstation 2105-2
plasma5-applets-tiledmenu 42-2
plasma5-applets-volumewin7mixer 26-1
prowlarr-nightly 1.12.1.4195-1
radarr-develop 5.2.6.8376-1
renamemytvseries-qt-bin 2.1.8-1
searchmonkey-gtk 0.8.3-2
sharik-bin 3.1-4
sonarr-develop 4.0.0.752-1
vdhcoapp-bin 2.0.11-1
(4/7) Orphaned package notification...
kdsoap-ws-discovery-client 0.3.0-2
libinput-gestures-qt 0.4-1
python-build 1.0.3-1
python-installer 0.7.0-3
python-wheel 0.42.0-1
wayland-protocols 1.32-1
(5/7) Checking for .pacnew and .pacsave files...
(6/7) Performing snapper post snapshots for the following configurations...
==> root: 424
(7/7) Syncing all file systems...

System updated! 🐧


── 14:43:20 - Configuration update ─────────────────────────────────────────────

── 14:43:20 - snap ─────────────────────────────────────────────────────────────
All snaps up to date.
WARNING: There is 1 new warning. See 'snap warnings'.

── 14:43:20 - Firmware upgrades ────────────────────────────────────────────────
Updating lvfs
Downloading…             [***************************************]
Successfully downloaded new metadata: 3 local devices supported
Devices with no available firmware updates: 
 • CT1000T500SSD8
 • CT500P3SSD8
 • ST8000AS0002-1NA17Z
 • System Firmware
Devices with the latest available firmware version:
 • UEFI dbx
 • Unifying Receiver
 • Unifying Receiver
No updates available

── 14:43:22 - Flatpak User Packages ────────────────────────────────────────────
Looking for updates…

Nothing to do.

── 14:43:22 - Flatpak System Packages ──────────────────────────────────────────
Looking for updates…

Nothing to do.

── 14:43:25 - TLDR ─────────────────────────────────────────────────────────────
Successfully updated cache.

── 14:43:29 - micro ────────────────────────────────────────────────────────────
Checking for plugin updates
Nothing to install / update

── 14:43:29 - Summary ──────────────────────────────────────────────────────────
System update: OK
config-update: OK
snap: OK
Firmware upgrades: OK
Flatpak: OK
TLDR: OK
micro: OK

 ╭─locutus@Unimatrix in ~ as 🧙 took 54s
 ╰─λ 
1 Like

https://gitlab.archlinux.org/archlinux/mkinitcpio/mkinitcpio/-/issues/238

6 Likes

Ding Ding Ding we have a winner. Give that man an exploding cigar.

Yea now I remember the rest. It stated if the EFI partition was below a certain size one could get the out-of-space error.

Thanks for the fins.

Nvidia strikes again!

Wow, 180+ MB per image (plus 280 for the fallback image) is a lot. My images are usually closer to twenty.

This could potentially be problematic for setups where the images are stored on the EFI partition (for example, if systemd-boot is in use), especially if a lot of kernels are installed.

Garuda Linux stores the kernel and images in /boot (on the root partition), so this is basically a non-issue for Garuda users.

2 Likes

Good to know, and yes no surprise with nVidia. Unfortunately I was forced back to a nVidia card cause the AMD 6600 was bad out of the gate and Gigabyte keeps telling me there is nothing wrong with the card. When one completely wipes their system and install that card and has to reboot 3 4 times just to get the bios to list the hardware and be able to boot to Ventoy to install a OS and then once the OS is installed reboot another 3 4 times to get to the desktop something is wrong with that card. I ended up pulling it and trying an old nVidia 750 and lo and behold no issue at all, so I bought the 3060 and have been happy ever since. Not too amused since I have never had a bad Nvidia card, but the first AMD card I buy is bad out of the gate.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.