Skip to content

Commit aa19a57

Browse files
committed
rootless: allocate 1G subuids from 524288 (0x80000)
systemd-homed expects the subuid range to be within 524288-1878982656 (0x80000-0x6fff0000). See `userdbctl(1)`. This commit also increases the subuids from 64K to 1G. Fix issue 1396 Fix issue 1227 Signed-off-by: Akihiro Suda <[email protected]>
1 parent 5d41ca2 commit aa19a57

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/cidata/cidata.TEMPLATE.d/boot/20-rootless-base.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ fi
6363

6464
# Set up subuid
6565
for f in /etc/subuid /etc/subgid; do
66-
grep -qw "${LIMA_CIDATA_USER}" $f || echo "${LIMA_CIDATA_USER}:100000:65536" >>$f
66+
# systemd-homed expects the subuid range to be within 524288-1878982656 (0x80000-0x6fff0000).
67+
# See userdbctl.
68+
grep -qw "${LIMA_CIDATA_USER}" $f || echo "${LIMA_CIDATA_USER}:524288:1073741824" >>$f
6769
done
6870

6971
# Start systemd session

0 commit comments

Comments
 (0)