Skip to content

Commit dc19961

Browse files
authored
Merge pull request #2487 from flatcar/krnowak/var-tmpfiles-d-generation-fix
build_library/build_image_util.sh: Fix copy-pasta
2 parents f9cc0c8 + 489eb79 commit dc19961

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build_library/build_image_util.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ finish_image() {
654654
# --allow-user=root
655655
# --allow-user=core
656656
mapfile -t allowed_users < <(grep '^COPY_USERS=' "${root_fs_dir}/sbin/flatcar-tmpfiles" | sed -e 's/.*="\([^"]*\)"/\1/' | tr '|' '\n' | sed -e 's/^/--allow-user=/')
657-
mapfile -t allowed_users < <(grep '^COPY_GROUPS=' "${root_fs_dir}/sbin/flatcar-tmpfiles" | sed -e 's/.*="\([^"]*\)"/\1/' | tr '|' '\n' | sed -e 's/^/--allow-group=/')
657+
mapfile -t allowed_groups < <(grep '^COPY_GROUPS=' "${root_fs_dir}/sbin/flatcar-tmpfiles" | sed -e 's/.*="\([^"]*\)"/\1/' | tr '|' '\n' | sed -e 's/^/--allow-group=/')
658658
sudo "${BUILD_LIBRARY_DIR}/gen_tmpfiles.py" --root="${root_fs_dir}" \
659659
--output="${root_fs_dir}/usr/lib/tmpfiles.d/base_image_var.conf" \
660660
"${ignores[@]}" "${allowed_users[@]}" "${allowed_groups[@]}" "${root_fs_dir}/var"

0 commit comments

Comments
 (0)