Skip to content

Conversation

@h8d13
Copy link
Contributor

@h8d13 h8d13 commented Jan 6, 2026

Still on my spree of testing directly from one install to another.

This a simple patch to not write into a host pacman.conf prevents from accidentally modifying the host's /etc when using Custom Repositories section in the menu but persists on target regardless

@h8d13 h8d13 requested a review from Torxed as a code owner January 6, 2026 23:12
@h8d13 h8d13 requested a review from svartkanin January 7, 2026 14:03
# Apply temp using backup then revert on exit handler
if running_from_host():
temp_copy = self._config_path.with_suffix('.bak')
copy2(self._config_path, temp_copy)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Every time you're running this apply function you will copy the pacman.conf file, which means if you run it 2 times, it will override the first backup file.

@h8d13 h8d13 closed this Jan 10, 2026
@h8d13 h8d13 deleted the dot-h2t branch January 10, 2026 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants