make failure to remove /dev/ptmx a warning and not an error

This commit is contained in:
Johannes Schauer Marin Rodrigues 2022-11-07 16:10:55 +01:00
parent d29f9195d7
commit d9ca7c21ff
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -1189,7 +1189,7 @@ sub run_chroot {
or error "cannot create /dev/pts/ptmx symlink";
push @cleanup_tasks, sub {
unlink "$options->{root}/dev/ptmx"
or error "unlink /dev/ptmx";
or warning "unlink /dev/ptmx";
};
next;
}