live-build/examples/hooks/all_chroot_localepurge.sh

23 lines
667 B
Bash
Raw Normal View History

2009-08-31 11:58:27 +00:00
#!/bin/sh
# This is a hook for live-helper(7) to install localepurge.
# To enable it, copy or symlink this hook into your config/chroot_local-hooks
# directory.
#
cat > /tmp/localepurge.preseed << EOF
2009-08-31 12:17:46 +00:00
localepurge localepurge/nopurge multiselect en
#localepurge localepurge/mandelete boolean true
#localepurge localepurge/dontbothernew boolean false
localepurge localepurge/showfreedspace boolean false
#localepurge localepurge/quickndirtycalc boolean true
#localepurge localepurge/verbose boolean false
2009-08-31 11:58:27 +00:00
EOF
debconf-set-selections < /tmp/localepurge.preseed
rm -f /tmp/localepurge.preseed
2009-08-31 12:17:46 +00:00
apt-get install --yes localepurge
2009-08-31 11:58:27 +00:00
dpkg-reconfigure localepurge
localepurge