Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've got to install a few machines with grub legacy on them due to issues with symantec ghost (ghost is a requirement that can't be dropped). i've got a script that prepares machines, but there's a slight problem: apt-get purge grub-pc comes up with a dialog window that ignores -y --force-yes. how can i get rid of it?

edit: the debconf template is grub-pc/postrm_purge_boot_grub. --force-confdef doesn't help.

share|improve this question
up vote 1 down vote accepted

found it.

apparently adding

export DEBIAN_FRONTEND=noninteractive

solves the problem, which is weird, because it doesn't work for samba installs, where --force-confdef is required.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.