root / image_creator / os_type / slackware.py @ 8c574358
History | View | Annotate | Download (428 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 | 8c574358 | Nikos Skalkotos | # In slackware the the installed packages info are stored in
|
7 | 8c574358 | Nikos Skalkotos | # /var/log/packages. Clearing all /var/log files will destroy
|
8 | 8c574358 | Nikos Skalkotos | # the package management
|
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 : |