Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Interrupting the script can be dangerous #48

Open
luc65r opened this issue Jan 29, 2025 · 0 comments
Open

Interrupting the script can be dangerous #48

luc65r opened this issue Jan 29, 2025 · 0 comments

Comments

@luc65r
Copy link

luc65r commented Jan 29, 2025

I was running the script as root (probably not the best idea), and realizing I made a mistake in the arguments, I hit Ctrl-C.
The script proceeded to override /etc/fstab on the host, which is less than ideal.

My guess is it exited the chroot and somehow ran cat > /etc/fstab <<-EOF.

I don't know if it is easily reproducible, but maybe there is a way to safeguard against that.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant