mirror of
https://github.com/lima-vm/lima.git
synced 2026-10-28 11:44:35 +08:00
Add "Copyright The Lima Authors" boilterplate
The boilerplate is added for Go files, shell scripts, and Makefiles. https://github.com/containerd/ltag is used for validating the boilerplates. - hack/ltag: ltag templates - .github/workflows/test.yml: ltag is executed for validation Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
280 files changed
+868
No files matched your search
@@ -66,6 +66,12 @@ jobs:
|
||||
- name: Check licenses
|
||||
# the allow list corresponds to https://github.com/cncf/foundation/blob/e5db022a0009f4db52b89d9875640cf3137153fe/allowed-third-party-license-policy.md
|
||||
run: go-licenses check --include_tests ./... --allowed_licenses=Apache-2.0,BSD-2-Clause,BSD-2-Clause-FreeBSD,BSD-3-Clause,MIT,ISC,Python-2.0,PostgreSQL,X11,Zlib
|
||||
- name: Install ltag
|
||||
# The GitHub repo has been moved from kunalkushwaha/ltag to containerd/ltag,
|
||||
# but the Go module name is not changed yet: https://github.com/containerd/ltag/issues/17
|
||||
run: go install github.com/kunalkushwaha/ltag@v0.2.5
|
||||
- name: Check license boilerplates
|
||||
run: ltag -t ./hack/ltag --check -v
|
||||
|
||||
security:
|
||||
name: "Vulncheck"
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
# Files are installed under $(DESTDIR)/$(PREFIX)
|
||||
PREFIX ?= /usr/local
|
||||
DEST := $(shell echo "$(DESTDIR)/$(PREFIX)" | sed 's:///*:/:g; s://*$$::')
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -eu
|
||||
|
||||
# Environment Variables
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package editflags
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package editflags
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# This script only works for formulas in the homebrew-core.
|
||||
# It assumes the homebrew-core has been checked out into ./homebrew-core.
|
||||
# It only needs commit messages, so the checkout can be filtered with tree:0.
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# print the error message and exit with status 1
|
||||
function error_exit() {
|
||||
echo "Error: $*" >&2
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# This script calculates the expected content size, actual cached size, and cache-keys used in caching method before and after
|
||||
# implementation in https://github.com/lima-vm/lima/pull/2508
|
||||
#
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -eu -o pipefail
|
||||
cache_dir="${HOME}/Library/Caches"
|
||||
if [ "$(uname -s)" != "Darwin" ]; then
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# This script fixes the signature of QEMU binary with the "com.apple.security.hypervisor" entitlement.
|
||||
#
|
||||
# A workaround for "QEMU (homebrew) is broken on Intel: `[hostagent] Driver stopped due to error: "signal: abort trap"` ..."
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
#
|
||||
# This script does
|
||||
# 1. detect arch from template if not provided
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
@@ -0,0 +1,2 @@
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
@@ -0,0 +1,3 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
@@ -1,4 +1,8 @@
|
||||
#!/bin/bash -eu
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# This script is used by OSS-Fuzz to build and run Limas fuzz tests continuously.
|
||||
# Limas OSS-Fuzz integration can be found here: https://github.com/google/oss-fuzz/tree/master/projects/lima
|
||||
# Modify https://github.com/google/oss-fuzz/blob/master/projects/lima/project.yaml for access management to Limas OSS-Fuzz crashes.
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -eux -o pipefail
|
||||
|
||||
colima start
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -eu -o pipefail
|
||||
|
||||
scriptdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -eu -o pipefail
|
||||
|
||||
scriptdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -eu -o pipefail
|
||||
|
||||
scriptdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -eu -o pipefail
|
||||
|
||||
scriptdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# This script is used to wrap the compiler and linker commands in the build
|
||||
# process. It captures the output of the command and logs it to a file.
|
||||
# The script's primary purpose is codesigning the output of the linker command
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -eu -o pipefail
|
||||
|
||||
# Functions in this script assume error handling with 'set -e'.
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -eu -o pipefail
|
||||
|
||||
# Functions in this script assume error handling with 'set -e'.
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -eu -o pipefail
|
||||
|
||||
# Functions in this script assume error handling with 'set -e'.
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -eu -o pipefail
|
||||
|
||||
# Functions in this script assume error handling with 'set -e'.
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -eu -o pipefail
|
||||
|
||||
# Functions in this script assume error handling with 'set -e'.
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -eu -o pipefail
|
||||
|
||||
# Functions in this script assume error handling with 'set -e'.
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -eu -o pipefail
|
||||
|
||||
# Functions in this script assume error handling with 'set -e'.
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -eu -o pipefail
|
||||
|
||||
# Functions in this script assume error handling with 'set -e'.
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -eu -o pipefail
|
||||
|
||||
# Functions in this script assume error handling with 'set -e'.
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -eu -o pipefail
|
||||
|
||||
# Functions in this script assume error handling with 'set -e'.
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -eu -o pipefail
|
||||
|
||||
# Functions in this script assume error handling with 'set -e'.
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Package autostart manage start at login unit files for darwin/linux
|
||||
package autostart
|
||||
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package autostart
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// From https://raw.githubusercontent.com/norouter/norouter/v0.6.5/pkg/agent/bicopy/bicopy.go
|
||||
/*
|
||||
Copyright (C) NoRouter authors.
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -eu
|
||||
|
||||
INFO() {
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
test -f /etc/alpine-release || exit 0
|
||||
|
||||
# Make sure that root is in the sudoers file.
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -eu
|
||||
|
||||
# In vz, the VM lacks an RTC when booting with a kernel image (see: https://developer.apple.com/forums/thread/760344).
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# Load modules as soon as the cloud-init starts up.
|
||||
# Because Arch Linux removes kernel module files when the kernel package was updated during running cloud-init :(
|
||||
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -eux
|
||||
|
||||
# Check if cloud-init forgot to reboot_if_required
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# This script pretends that /bin/ash can be used as /bin/bash, so all following
|
||||
# cloud-init scripts can use `#!/bin/bash` and `set -o pipefail`.
|
||||
test -f /etc/alpine-release || exit 0
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# This script replaces the cloud-init functionality of creating a user and setting its SSH keys
|
||||
# when using a WSL2 VM.
|
||||
[ "$LIMA_CIDATA_VMTYPE" = "wsl2" ] || exit 0
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# bash is used for enabling `set -o pipefail`.
|
||||
# NOTE: On Alpine, /bin/bash is ash with ASH_BASH_COMPAT, not GNU bash
|
||||
set -eux -o pipefail
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -eux -o pipefail
|
||||
|
||||
test "$LIMA_CIDATA_DISKS" -gt 0 || exit 0
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -eux -o pipefail
|
||||
|
||||
# Check if mount type is virtiofs and vm type as vz
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -eux -o pipefail
|
||||
|
||||
if [ "$LIMA_CIDATA_ROSETTA_ENABLED" != "true" ]; then
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -eux -o pipefail
|
||||
|
||||
# Define host.lima.internal in case the hostResolver is disabled. When using
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -eux
|
||||
|
||||
# /etc/environment must be written after 04-persistent-data-volume.sh has run to
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -eux
|
||||
|
||||
# This script is only intended for the default.yaml image, which is based on Ubuntu LTS
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -eux
|
||||
|
||||
readonly chain=LIMADNS
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -eux
|
||||
|
||||
# This script prepares Alpine for lima; there is nothing in here for other distros
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -eux
|
||||
|
||||
if [ -d /etc/ssh/sshd_config.d ]; then
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -eux
|
||||
|
||||
# This script does not work unless systemd is available
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -eux
|
||||
|
||||
if [ "${LIMA_CIDATA_MOUNTTYPE}" = "reverse-sshfs" ]; then
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -eux
|
||||
|
||||
INSTALL_IPTABLES=0
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -eux
|
||||
|
||||
update_fuse_conf() {
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -eux
|
||||
: "${CONTAINERD_NAMESPACE:=default}"
|
||||
# Overridable in .bashrc
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
# SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -eu
|
||||
|
||||
: "${SELFTEST:=}"
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package cidata
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package cidata
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package cidata
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package cidata
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package cidata
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package debugutil
|
||||
|
||||
// Debug is set via main.
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package downloader
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package downloader
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package downloader
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package driver
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package driverutil
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: Copyright The Lima Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package driverutil
|
||||
|
||||
import (
|
||||
|
||||
Loaded 100 of 280 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user