Skip to content

Commit f66fa57

Browse files
authored
[ubuntu] post generation doc update (actions#3539)
1 parent a56b10c commit f66fa57

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

docs/create-image-and-azure-resources.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ The user, created during the image generation, does not exist in the result VHD
136136
- Windows: https://github.com/actions/virtual-environments/tree/main/images/win/post-generation
137137
- Linux: https://github.com/actions/virtual-environments/tree/main/images/linux/post-generation
138138

139+
**Note:** The default user for Linux should have `sudo privileges`.
140+
139141
The scripts are copied to the VHD during the image generation process to the following paths:
140142
- Windows: `C:\post-generation`
141143
- Linux: `/opt/post-generation`
@@ -144,7 +146,7 @@ The scripts are copied to the VHD during the image generation process to the fol
144146

145147
##### Ubuntu
146148

147-
find /opt/post-generation -mindepth 1 -maxdepth 1 -type f -name '*.sh' -exec bash {} \;
149+
sudo su -c "find /opt/post-generation -mindepth 1 -maxdepth 1 -type f -name '*.sh' -exec bash {} \;"
148150

149151
##### Windows
150152

0 commit comments

Comments
 (0)