This patch reinstates some functions we removed from python bindings -
as it turned out, we don't have /etc/*release when anaconda is running
so we need to obtain "os_release" from anaconda and we should avoid
reading /etc/*-release, because it shows an error message on tty1:
Can't open /etc/system-release: No such file or directory
which from users POV can be considered as a bug. So this patch tries to
get the os_release from anaconda then from /etc and the function
dd_create_basic_files() now skips creating os_release if it already
exists (this check shouldn't generate any error msg if the file doesn't
exist). It also modifies create_dump_dir_from_problem_data() moving the
dd_create_basic_files() to the end when all fields from problem_data are
saved in dump_dir, so the mentioned check for "os_release" can happen.
Please review carefully, I can help with anaconda images if someone
would like to test it (I did of course ;)).
Thank you,
Jirka