Skip to content

Commit

Permalink
UbuntuGH.yml: Try adding sudo to cp /mnt/old_home
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-revay committed Jan 5, 2025
1 parent 905064c commit f4bd9d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/UbuntuGH.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ jobs:
# https://learn.microsoft.com/en-us/azure/virtual-machines/managed-disks-overview#disk-roles
# https://github.com/marketplace/actions/maximize-build-disk-space
# but it is not documented wel... so I hope this is not error prone...
# EXPERIMENT RESULT: I get `cp: cannot create directory '/mnt/old_home/': Permission denied`
# when I try to use /mnt instead of /tmp
- name: save ~/ for idempotency test
run: cp -r ~/ /mnt/old_home/
run: sudo cp -r ~/ /mnt/old_home/

- name: Running iniPC script for the 2nd time should not fail.
run: ./run_init.sh --noninteractive
Expand Down

0 comments on commit f4bd9d6

Please sign in to comment.