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 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'scripts/hostclass') 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 -- cgit v1.2.3