lib: make sure /tmp is there and mount it
This commit is contained in:
parent
3c12c74de0
commit
2b1aa4f45d
@ -58,6 +58,10 @@ mount_pseudofs() {
|
|||||||
mount -r --bind /$f "$ROOTFS/$f"
|
mount -r --bind /$f "$ROOTFS/$f"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
if ! mountpoint -q "$ROOTFS/tmp" ; then
|
||||||
|
mkdir -p "$ROOTFS/tmp"
|
||||||
|
mount -o mode=0755,nosuid,nodev -t tmpfs tmpfs "$ROOTFS/tmp"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
umount_pseudofs() {
|
umount_pseudofs() {
|
||||||
@ -71,6 +75,7 @@ umount_pseudofs() {
|
|||||||
umount -f "$ROOTFS/$f" >/dev/null 2>&1
|
umount -f "$ROOTFS/$f" >/dev/null 2>&1
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
umount -f "$ROOTFS/tmp" >/dev/null 2>&1
|
||||||
}
|
}
|
||||||
|
|
||||||
run_cmd_target() {
|
run_cmd_target() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user