From f66fa579e82fa0ac12c0f9317c11b93ed545662a Mon Sep 17 00:00:00 2001 From: Darleev <50947177+Darleev@users.noreply.github.com> Date: Tue, 8 Jun 2021 15:36:08 +0700 Subject: [PATCH] [ubuntu] post generation doc update (#3539) --- docs/create-image-and-azure-resources.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/create-image-and-azure-resources.md b/docs/create-image-and-azure-resources.md index c2390a608de8..bdb619d35c1e 100644 --- a/docs/create-image-and-azure-resources.md +++ b/docs/create-image-and-azure-resources.md @@ -136,6 +136,8 @@ The user, created during the image generation, does not exist in the result VHD - Windows: https://github.com/actions/virtual-environments/tree/main/images/win/post-generation - Linux: https://github.com/actions/virtual-environments/tree/main/images/linux/post-generation +**Note:** The default user for Linux should have `sudo privileges`. + The scripts are copied to the VHD during the image generation process to the following paths: - Windows: `C:\post-generation` - Linux: `/opt/post-generation` @@ -144,7 +146,7 @@ The scripts are copied to the VHD during the image generation process to the fol ##### Ubuntu - find /opt/post-generation -mindepth 1 -maxdepth 1 -type f -name '*.sh' -exec bash {} \; + sudo su -c "find /opt/post-generation -mindepth 1 -maxdepth 1 -type f -name '*.sh' -exec bash {} \;" ##### Windows