disable APT package cache to save some space
This commit is contained in:
parent
30d6c09c1b
commit
775c6bd14b
1 changed files with 4 additions and 0 deletions
|
@ -106,6 +106,10 @@ mount_new_rootfs() {
|
||||||
|
|
||||||
install_software() {
|
install_software() {
|
||||||
echo "Installing OpenSSH Server into new rootfs..."
|
echo "Installing OpenSSH Server into new rootfs..."
|
||||||
|
|
||||||
|
# disable APT cache
|
||||||
|
echo -e 'Dir::Cache "";\nDir::Cache::archives "";' > "${NEWROOT}/etc/apt/apt.conf.d/00_disable-cache-directories"
|
||||||
|
|
||||||
DEBIAN_FRONTEND=noninteractive chroot "${NEWROOT}" apt-get update -y
|
DEBIAN_FRONTEND=noninteractive chroot "${NEWROOT}" apt-get update -y
|
||||||
DEBIAN_FRONTEND=noninteractive chroot "${NEWROOT}" apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install -y ssh
|
DEBIAN_FRONTEND=noninteractive chroot "${NEWROOT}" apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install -y ssh
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue