aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/hostclass/desktop13
-rw-r--r--vars/hostclass/desktop3
2 files changed, 15 insertions, 1 deletions
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