Statistics
| Branch: | Tag: | Revision:

root / image_creator / os_type / slackware.py @ c408053f

History | View | Annotate | Download (442 Bytes)

1 8c574358 Nikos Skalkotos
from image_creator.os_type.linux import Linux
2 8c574358 Nikos Skalkotos
3 8c574358 Nikos Skalkotos
4 8c574358 Nikos Skalkotos
class Slackware(Linux):
5 8c574358 Nikos Skalkotos
    def cleanup_log(self):
6 3b2f6619 Nikos Skalkotos
        # In slackware the metadata about installed packages are
7 3b2f6619 Nikos Skalkotos
        # stored in /var/log/packages. Clearing all /var/log files
8 3b2f6619 Nikos Skalkotos
        # will destroy the package management system.
9 8c574358 Nikos Skalkotos
        self.foreach_file('/var/log', self.g.truncate, ftype='r', \
10 8c574358 Nikos Skalkotos
            exclude='/var/log/packages')
11 8c574358 Nikos Skalkotos
12 8c574358 Nikos Skalkotos
# vim: set sta sts=4 shiftwidth=4 sw=4 et ai :