source: trunk/debirf/fs/usr/share/debirf/plugins/z1_clean-root @ 778

Last change on this file since 778 was 778, checked in by jrollins, 5 years ago

debirf: see changelog (moved to GPLv3)

  • Property svn:executable set to *
File size: 818 bytes
Line 
1#!/bin/sh
2
3# debirf plugin: clean-root
4# clean up debirf root
5#
6# The debirf scripts were written by
7# Jameson Rollins <jrollins@fifthhorseman.net>
8# and
9# Daniel Kahn Gillmor <dkg-debian.org@fifthhorseman.net>.
10#
11# They are Copyright 2007, and are all released under the GPL,
12# version 3 or later.
13
14# purge unneeded packages
15#debirf_exec apt-get --assume-yes remove --purge aptitude
16
17# remove all cached apt information
18debirf_exec apt-get clean
19rm "$DEBIRF_ROOT/var/cache/apt/"*.bin
20rm -rf "$DEBIRF_ROOT/var/lib/apt/lists/"*
21mkdir "$DEBIRF_ROOT/var/lib/apt/lists/partial"
22
23# remake proc and dev directories
24# (originally made as symlinks by debootstrap with fakechroot)
25#rm -rf "$DEBIRF_ROOT/dev"
26#mkdir "$DEBIRF_ROOT/dev"
27rm -rf "$DEBIRF_ROOT/proc"
28mkdir "$DEBIRF_ROOT/proc"
29
30# clear mtab
31> "$DEBIRF_ROOT/etc/mtab"
Note: See TracBrowser for help on using the repository browser.