Revert "Cleanup apt cache after grub install"
This calls chroot as a non-root user, which will always fail with
EPERM.
This reverts commit ab2d1a31f2
.
Change-Id: Ie674fef694ad66e1ebc22083dec2a0bc34371e7b
This commit is contained in:
parent
22cf8e824b
commit
eac2d7f588
@ -1,9 +0,0 @@
|
||||
#!/bin/bash
|
||||
# Do an apt-get clean. This will free some space.
|
||||
|
||||
set -eu
|
||||
set -o pipefail
|
||||
|
||||
if ! chroot ${TARGET_ROOT} mount | grep /var/cache/apt/archives; then
|
||||
sudo chroot ${TARGET_ROOT} apt-get clean
|
||||
fi
|
9
elements/dpkg/post-install.d/99-clean-up-cache
Executable file
9
elements/dpkg/post-install.d/99-clean-up-cache
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
# Do an apt-get clean. This will free some space.
|
||||
|
||||
set -eu
|
||||
set -o pipefail
|
||||
|
||||
if ! mount | grep /var/cache/apt/archives; then
|
||||
apt-get clean
|
||||
fi
|
Loading…
Reference in New Issue
Block a user