Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion pkg/cidata/cidata.TEMPLATE.d/boot/20-rootless-base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ fi

# Set up subuid
for f in /etc/subuid /etc/subgid; do
grep -qw "${LIMA_CIDATA_USER}" $f || echo "${LIMA_CIDATA_USER}:100000:65536" >>$f
# systemd-homed expects the subuid range to be within 524288-1878982656 (0x80000-0x6fff0000).
# See userdbctl.
# 1073741824 (1G) is just an arbitrary number.
# 1073741825-1878982656 is left blank for additional accounts.
grep -qw "${LIMA_CIDATA_USER}" $f || echo "${LIMA_CIDATA_USER}:524288:1073741824" >>$f
done

# Start systemd session
Expand Down
Loading