Needed for proper functionality in chroot, so if it is not there, exit before doing anything. --- src/pylorax/__init__.py | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/pylorax/__init__.py b/src/pylorax/__init__.py index 8eb6c7f..85a7567 100644 --- a/src/pylorax/__init__.py +++ b/src/pylorax/__init__.py @@ -170,6 +170,13 @@ class Lorax(BaseLoraxClass): logger.critical("no root privileges") sys.exit(1) + # check if /proc is mounted + logger.info("checking /proc") + if (not os.path.isdir("/proc") and not os.path.exists("/proc/mounts") + and not os.path.exists("/proc/devices")): + logger.critical("missing required /proc files (not mounted?)") + sys.exit(1) + # do we have all lorax required commands? self.lcmds = constants.LoraxRequiredCommands() -- 1.7.3.2 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list