From 15f594147d5b598a4554868fcb9f55122909541c Mon Sep 17 00:00:00 2001 From: Cullum Smith Date: Wed, 28 May 2025 17:02:19 -0400 Subject: desktop updates for linux compat --- scripts/hostclass/desktop | 13 +++++++++++++ vars/hostclass/desktop | 3 ++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/scripts/hostclass/desktop b/scripts/hostclass/desktop index 0195b3d..8c76472 100644 --- a/scripts/hostclass/desktop +++ b/scripts/hostclass/desktop @@ -189,3 +189,16 @@ for user in $digikam_db_users; do mysql_create_user "$digikam_db_host" "$user" gssapi mysql_create_database "$digikam_db_host" digikam "$user" done + +# Mount linux filesystems. +add_mountpoint(){ + awk -vpath="$1" 'BEGIN {rc=1} $2 == path {rc=0} END {exit rc}' /etc/fstab \ + || printf '%s %s %s %s 0 0\n' "$2" "$1" "$2" "$3" >> /etc/fstab + mount | awk -vpath="$1" 'BEGIN {rc=1} $3 == path {rc=0} END {exit rc}' \ + || mount -v "$1" +} +add_mountpoint /compat/linux/dev devfs rw,late +add_mountpoint /compat/linux/dev/shm tmpfs rw,late,size=1g,mode=1777 +add_mountpoint /compat/linux/dev/fd fdescfs rw,late,linrdlnk +add_mountpoint /compat/linux/proc linprocfs rw,late +add_mountpoint /compat/linux/sys linsysfs rw,late diff --git a/vars/hostclass/desktop b/vars/hostclass/desktop index 125d823..dd3678c 100644 --- a/vars/hostclass/desktop +++ b/vars/hostclass/desktop @@ -70,6 +70,7 @@ libdvdcss libreoffice libva-utils libvdpau-va-gl +linux-widevine-cdm mpv neofetch noto-basic @@ -78,7 +79,7 @@ password-store pdftk pim-sieve-editor phonon-mpv -postgresql16-client +postgresql${postgresql_version}-client pulseaudio py${python_version}-pip python -- cgit v1.2.3