call mount with full path

This commit is contained in:
Tobias Powalowski 2022-10-09 15:31:23 +02:00
parent 543abf67f7
commit 7a783276b2

View file

@ -334,16 +334,12 @@ _cleanup_cache() {
# needed for programs which check disk space
_home_root_mount() {
if ! mountpoint /home >/dev/null 2>&1; then
echo "Waiting for mount being available ..."
while ! mount >/dev/null 2>&1; do
sleep 1
done
echo "Mount tmpfs on /home ..."
mount -t tmpfs tmpfs /home
/usr/bin/mount -t tmpfs tmpfs /home
fi
if ! mountpoint /root >/dev/null 2>&1; then
echo "Mount tmpfs on /root ..."
mount -t tmpfs tmpfs /root
/usr/bin/mount -t tmpfs tmpfs /root
fi
}