aboutsummaryrefslogtreecommitdiff
path: root/scripts/hostclass/desktop
diff options
context:
space:
mode:
authorCullum Smith <cullum@sacredheartsc.com>2025-05-28 17:02:19 -0400
committerCullum Smith <cullum@sacredheartsc.com>2025-05-28 17:02:19 -0400
commit15f594147d5b598a4554868fcb9f55122909541c (patch)
treee9541b13f6d7595b207233bb78ff177d12c246f4 /scripts/hostclass/desktop
parentb4e36d03534931508021ae10cf053c19495359a0 (diff)
downloadinfrastructure-15f594147d5b598a4554868fcb9f55122909541c.tar.gz
desktop updates for linux compat
Diffstat (limited to 'scripts/hostclass/desktop')
-rw-r--r--scripts/hostclass/desktop13
1 files changed, 13 insertions, 0 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