source: make-mini-image/config/60-clean @ 2905

Last change on this file since 2905 was 1827, checked in by mabarracus, 4 years ago

Final config & renamed scripts

  • Property svn:executable set to *
File size: 436 bytes
Line 
1#!/bin/bash
2set -e
3
4source CONFIG
5source functions
6
7ensure BASE NAME
8
9echo "Cleaning space ..."
10
11ltsp-chroot --arch ${ARCH} --base ${BASE} -pcma ${NAME} apt-get clean
12rm -rf ./${BASE}/${NAME}/var/lib/apt/lists/*
13rm -rf ./${BASE}/${NAME}/var/lib/aptitude/*
14rm -rf ./${BASE}/${NAME}/lib/firmware/*
15rm -rf ./${BASE}/${NAME}/usr/share/doc/*
16
17
18rm -f ./${BASE}/${NAME}/etc/update-motd.d/10-help-text
19rm -f ./${BASE}/${NAME}/etc/legal
20
21exit 0
Note: See TracBrowser for help on using the repository browser.