跳到主要内容

Claude Cage · 面向 Claude 的隔离开发环境,支持桌面工作台、多账号、远程部署与移动端连接。上游 Lee-xeo/Claude-Cage 完整源码镜像,非灵栈原创;主许可 MIT,第三方组件遵循各自许可。来源:https://github.com/Lee-xeo/Claude-Cage 。手动同步,不附带 Release 安装包。

浏览文件

05-lima-mounts.sh

27 行 · 676 B历史下载
1#!/bin/sh
2
3# SPDX-FileCopyrightText: Copyright The Lima Authors
4# SPDX-License-Identifier: Apache-2.0
5
6# Populate mounts from the cidata.
7# This script is a workaround until nuageinit supports mounts.
8
9set -eux
10
11if ! grep -q '#LIMA-START' /etc/fstab; then
12 "${LIMA_CIDATA_MNT}"/util.FreeBSD/print_cidata_fstab.lua >/etc/fstab.lima.tmp
13 if [ -s /etc/fstab.lima.tmp ]; then
14 {
15 echo "#LIMA-START"
16 cat /etc/fstab.lima.tmp
17 echo "#LIMA-END"
18 } >>/etc/fstab
19 fi
20 rm -f /etc/fstab.lima.tmp
21fi
22
23# Run mkdir on every boot, as the mount points may be on tmpfs
24awk '/^[^#]/ && $2 != "none" {print $2}' /etc/fstab | while IFS= read -r line; do
25 mkdir -p "${line}"
26done
27mount -a