Skip to content

Commit 1eae28c

Browse files
authored
fix(recovery): Set up empty recovery directory in guestOS (#2131)
During recoveries, we are logged in as admin and operate in a working directory (by default we pick `/var/lib/ic/data/recovery`). Right now we need to create that manually with sudo mkdir & chown before starting the recovery tool. Having an existing directory at `/var/lib/ic/data/recovery` with `admin` permissions helps simplify recovery, because the operator doesn't need to remember to create the directory beforehand.
1 parent dff73c6 commit 1eae28c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ic-os/components/ic/setup-permissions/setup-permissions.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ make_group_owned_and_sticky /var/lib/ic/data/cups ic-replica nonconfidential
3737
make_group_owned_and_sticky /var/lib/ic/data/orchestrator ic-replica nonconfidential
3838
make_group_owned_and_sticky /var/lib/ic/data/ic_registry_local_store ic-replica ic-registry-local-store
3939
make_group_owned_and_sticky /var/lib/ic/data/ic_state/page_deltas ic-replica nonconfidential
40+
make_group_owned_and_sticky /var/lib/ic/data/recovery admin nonconfidential
4041

4142
# Fix up security labels for everything.
4243
echo "Restoring SELinux security contexts in /var/lib/ic"

0 commit comments

Comments
 (0)