summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-07-26 17:37:09 +0200
committerAhmed Abdelhalim <[email protected]>2026-07-26 17:37:09 +0200
commita76a504cec75c3cfc7e8af01f8c5502dd9d6d50e (patch)
treeb8ed3ba178052dc021a45004b4c9d71f671b8bb4 /roles
parentb6943e349410193a5f4fcb64a2930eabbb22aa39 (diff)
Fix apt config files unreadable by non-root users after installHEADmain
Configure apt in chroot wrote sources.list (and friends) with mode 0640 across ubuntu, proxmox, and raspberry bootstrap — apt-cache, GNOME Software, PackageKit, and update-notifier all read these as the regular desktop user, not root, so every non-root apt query failed with permission denied post-install. Standard 0644. Co-Authored-By: Claude.ai
Diffstat (limited to 'roles')
-rw-r--r--roles/bootstrap/tasks/install-proxmox.yml2
-rw-r--r--roles/bootstrap/tasks/install-raspberry.yml2
-rw-r--r--roles/bootstrap/tasks/install-ubuntu.yml2
3 files changed, 3 insertions, 3 deletions
diff --git a/roles/bootstrap/tasks/install-proxmox.yml b/roles/bootstrap/tasks/install-proxmox.yml
index f523d9f..6824b06 100644
--- a/roles/bootstrap/tasks/install-proxmox.yml
+++ b/roles/bootstrap/tasks/install-proxmox.yml
@@ -34,7 +34,7 @@
- name: "Configure apt in chroot"
ansible.builtin.copy:
dest: "{{ item.dest }}"
- mode: "0640"
+ mode: "0644"
content: "{{ item.content }}"
loop:
- dest: "{{ mnt_root_path }}/etc/apt/sources.list"
diff --git a/roles/bootstrap/tasks/install-raspberry.yml b/roles/bootstrap/tasks/install-raspberry.yml
index 179b6a8..b86480b 100644
--- a/roles/bootstrap/tasks/install-raspberry.yml
+++ b/roles/bootstrap/tasks/install-raspberry.yml
@@ -29,7 +29,7 @@
- name: "Configure apt in chroot"
ansible.builtin.copy:
dest: "{{ item.dest }}"
- mode: "0640"
+ mode: "0644"
content: "{{ item.content }}"
loop:
- dest: "{{ mnt_root_path }}/etc/apt/preferences.d/ignored-package"
diff --git a/roles/bootstrap/tasks/install-ubuntu.yml b/roles/bootstrap/tasks/install-ubuntu.yml
index 3329ff5..00815b5 100644
--- a/roles/bootstrap/tasks/install-ubuntu.yml
+++ b/roles/bootstrap/tasks/install-ubuntu.yml
@@ -28,7 +28,7 @@
- name: "Configure apt in chroot"
ansible.builtin.copy:
dest: "{{ item.dest }}"
- mode: "0640"
+ mode: "0644"
content: "{{ item.content }}"
loop:
- dest: "{{ mnt_root_path }}/etc/apt/preferences.d/ignored-package"