summaryrefslogtreecommitdiffstats
path: root/modules.d/openslx-tmp-mount/scripts/openslx_tmp_mount.sh
blob: ddf974fc8e7cc48af52117f49c1ed4edcf725f61 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env bash

. /etc/openslx

# The device should have been discovered by openslx_tmp_format hook
# and written to /etc/openslx
if [ -n "${SLX_TMP_PARTITION_DEVICE}" ]; then
	mount -t auto "${SLX_TMP_PARTITION_DEVICE}" "${NEWROOT}/tmp"
	chmod a+rwxt "${NEWROOT}/tmp"
	# TODO fstab
fi