Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 22 lines (19 sloc) 722 Bytes
#! /bin/bash
# Some proxmox-backup-client commands such as "catalog dump" don't work with
# /tmp on reiserfs. See https://bugzilla.proxmox.com/show_bug.cgi?id=3699
# This wrapper can be used as a workaround. It runs proxmox-backup-client in
# its own mount namespace with a tmpfs filesystem mounted on /tmp.
if [ "$1" = "--setup-tmp" ]; then
shift
if [ "$(stat -L -c %i /proc/self/ns/mnt)" = "$(stat -L -c %i /proc/1/ns/mnt)" ];then
echo "$0 : --setup-tmp in init namespace" >&2
exit 1;
fi
mount -t tmpfs /tmp /tmp
exec proxmox-backup-client "$@"
fi
if [ "$(stat -f -c %T /tmp)" = "reiserfs" ]; then
exec unshare -m $0 --setup-tmp "$@"
else
exec proxmox-backup-client "$@"
fi