Skip to content

Add rescue mode script - #4037

Closed
h8d13 wants to merge 2 commits into
archlinux:masterfrom
h8d13:dot-rescue
Closed

Add rescue mode script#4037
h8d13 wants to merge 2 commits into
archlinux:masterfrom
h8d13:dot-rescue

Conversation

@h8d13

@h8d13 h8d13 commented Dec 26, 2025

Copy link
Copy Markdown
Contributor

This morning I deleted sudo by accident playing around with --noconfirm scripts. Specifically wanted to build a parser that would support same format as -r requirements.txt but for pacman and it went wrong in the -Rns category lol.

Anyways I thought it would be good to have a utility that can save your ass from ISO or other install. Obviously isn't perfect but I tried to re-use as much as possible from existing menus. And it showed my root partition selected it ran pacman -S sudo, rebooted and was done.

@svartkanin

Copy link
Copy Markdown
Collaborator

We had some form of "helper" scripts before with swiss.py which was supposed to be more for dev. It is extremely painful to maintain and keep up to date and I'm not to keen on getting back into that as it's extremely time sonsuming with limited testing options.

This seems more like a personal thing to hack around and I'm not sure there's much value including it into the repo itself

@h8d13

h8d13 commented Dec 27, 2025

Copy link
Copy Markdown
Contributor Author

I think it would be invaluable. The amount of times i see people on forums saying "just re-install". Just because they do not have a mount/chroot script. This would explicitly makes that available.

I do see the issue with maintaining, but if we re-use from the code-base as much as possible and simply use arch-chroot it kinda updates itself. It's also why you made this structure if I'm not mistaken scripts are supposed to help also manage existing installations.

Just wanted to show a PoC that actually helped me fix my stuff, so yes personal, but hell why not?

@h8d13 h8d13 closed this Dec 29, 2025
@h8d13

h8d13 commented Dec 29, 2025

Copy link
Copy Markdown
Contributor Author

Imma close this. I created a repo here https://github.com/h8d13/archinstall-contrib to inject it at runtime.

@h8d13
h8d13 deleted the dot-rescue branch December 29, 2025 17:02
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