]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
hooks: Add SPDX headers
authorStéphane Graber <stgraber@stgraber.org>
Tue, 2 Apr 2024 21:59:17 +0000 (17:59 -0400)
committerStéphane Graber <stgraber@stgraber.org>
Tue, 2 Apr 2024 21:59:17 +0000 (17:59 -0400)
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
hooks/clonehostname
hooks/dhclient-script
hooks/dhclient.in
hooks/mountecryptfsroot
hooks/nvidia
hooks/squid-deb-proxy-client
hooks/ubuntu-cloud-prep
hooks/unmount-namespace.c

index 8eec7a6658220a13a22a9bf92d87e0fc93e6f727..a5837f8001f019a8664d0e8b80110122d4f6d825 100755 (executable)
@@ -1,21 +1,8 @@
 #!/bin/sh
 #
-# Update the hostname in the cloned container's scripts
-#
-# Copyright ©  2013 Oracle.
-#
-# This library is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License version 2, as
-# published by the Free Software Foundation.
+# SPDX-License-Identifier: GPL-2.0-only
 #
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+# Update the hostname in the cloned container's scripts
 
 # Note that /etc/hostname is updated by lxc itself
 for file in \
@@ -27,4 +14,5 @@ do
         sed -i "s|$LXC_SRC_NAME|$LXC_NAME|" $file
     fi
 done
+
 exit 0
index 9b4c0f0ffd4d7ccac580031110d600ba6df8417f..9c9b40e691055d9c4fab4c4dcbad22e33f9d0eab 100755 (executable)
@@ -1,4 +1,7 @@
 #!/bin/bash
+#
+# SPDX-License-Identifier: LGPL-2.1+
+#
 # dhclient-script for Linux. Dan Halbert, March, 1997.
 # Updated for Linux 2.[12] by Brian J. Murrell, January 1999.
 # No guarantees about this. I'm a novice at the details of Linux
index 7ba9b87038bf5cfbf145e6f7b5d8683c6b0c1dcc..4d196e7cdbd3fba3c0d5d31c90aeeafdd80de728 100755 (executable)
@@ -1,4 +1,7 @@
-#! /bin/bash
+#!/bin/bash
+#
+# SPDX-License-Identifier: LGPL-2.1+
+#
 
 set -eu
 
index f1134a84eb63b941e23b6b5fc0ed3ec82216a909..0946fc2180e1f83879edfa78136ea8d4045f04b9 100755 (executable)
@@ -1,21 +1,7 @@
 #!/bin/sh
-
-# (C) Copyright Canonical 2011-2013
-
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License, or (at your option) any later version.
-
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# Lesser General Public License for more details.
-
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-
+#
+# SPDX-License-Identifier: LGPL-2.1+
+#
 # This hook can be used to mount an ecryptfs filesystem as a container's
 # rootfs.
 # To use this hook, assuming your container is called q1,
index 8247f1953de6014d57aaec5006c1fb0298e9e776..f579eea1d227e438c93faf3c9a475901ba91eadb 100755 (executable)
@@ -1,20 +1,6 @@
-#! /bin/bash
+#!/bin/bash
 #
-# Copyright (c) 2017, 2018 NVIDIA CORPORATION.
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License, or (at your option) any later version.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+# SPDX-License-Identifier: LGPL-2.1+
 
 set -eu
 
index 3faac04df2338feda9056ec92744cb07b4e79325..7540854a9c1933369f660afda260d71559a979e6 100755 (executable)
@@ -1,21 +1,8 @@
 #!/bin/sh
 #
-# Make the cloned container aware of squid-deb-proxy settings at start.
-#
-# Copyright ©  2014 Christopher Glass.
-#
-# This library is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License version 2, as
-# published by the Free Software Foundation.
+# SPDX-License-Identifier: GPL-2.0-only
 #
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+# Make the cloned container aware of squid-deb-proxy settings at start.
 
 # When starting a container, inject the squid-deb-proxy-client proxy
 # address in the container's apt configuration.
index 285c8f788996638bd866fc4e2c749a6fb3e258f0..1da93830c47a7577d3ad3e6eb7aee14c85a1df92 100755 (executable)
@@ -1,4 +1,7 @@
 #!/bin/bash
+#
+# SPDX-License-Identifier: LGPL-2.1+
+#
 ## If the container being cloned has one or more lxc.hook.clone
 ## specified, then the specified hooks will be called for the new
 ## container.  The arguments passed to the clone hook are:
index 8721b3536a7c865737b1ba1af0b3d0f4b0876624..a116bde8b0b49ab441646b67034bdbfbc15a5b18 100644 (file)
@@ -1,19 +1,5 @@
 /*
- * Copyright © 2015 Wolfgang Bumiller <w.bumiller@proxmox.com>.
- * Copyright © 2015 Proxmox Server Solutions GmbH
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2, as
- * published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: LGPL-2.1+
  *
  * --
  *