We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0355630 commit 47f47b4Copy full SHA for 47f47b4
build_library/sysext_mangle_flatcar-incus
@@ -0,0 +1,28 @@
1
+#!/bin/bash
2
+
3
+set -euo pipefail
4
+rootfs="${1}"
5
6
+pushd "${rootfs}"
7
8
+pushd ./usr/lib/systemd/system
9
+mkdir -p "multi-user.target.d"
10
+{ echo "[Unit]"; echo "Upholds=incus.service"; } > "multi-user.target.d/10-incus.conf"
11
+popd
12
13
+mkdir -p ./usr/lib/tmpfiles.d
14
+pushd ./usr/lib/tmpfiles.d
15
+cat <<EOF >./10-incus.conf
16
+d /var/lib/lxc/rootfs 0755 root root - -
17
+w+ /etc/subuid - - - - root:1065536:65536
18
+w+ /etc/subgid - - - - root:1065536:65536
19
+EOF
20
21
22
+# Add 'core' user to 'incus-admin' group to avoid prefixing
23
+# all commands with sudo.
24
+mkdir -p ./usr/lib/userdb/
25
+echo " " > ./usr/lib/userdb/core:incus-admin.membership
26
27
28
0 commit comments