Skip to content

Interrupting the script can be dangerous #48

@luc65r

Description

@luc65r

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions