sfchun
June 5th, 2017, 07:14 PM
Hello
Using ubuntu Ubuntu-16.04LTS (64bit)
I'm writing a bash script that will help me to rebuild and configure from scratch a physical machine (with root on zfs).
One step is to install grub-pc package that prompts for information.
I've seen on https://askubuntu.com/questions/146921/how-do-i-apt-get-y-dist-upgrade-without-a-grub-config-prompt ,
providing additional option : -o Dpkg::Options::="--force-confdef" to apt is possible.
My questions :
- How can I know which option(s) a packages offer ?
- Regarding grub-pc , I would like to perform something like this :
# apt install -y -o Dpkg::Options::="--device /dev/nvme0n1" -o Dpkg::Options::="--continue yes" grub-pc
if a solution exists with dpkg, I take it :)
the purpose is to run the installation script completly without any interaction.
Thanks a lot for your help.
Regards
Using ubuntu Ubuntu-16.04LTS (64bit)
I'm writing a bash script that will help me to rebuild and configure from scratch a physical machine (with root on zfs).
One step is to install grub-pc package that prompts for information.
I've seen on https://askubuntu.com/questions/146921/how-do-i-apt-get-y-dist-upgrade-without-a-grub-config-prompt ,
providing additional option : -o Dpkg::Options::="--force-confdef" to apt is possible.
My questions :
- How can I know which option(s) a packages offer ?
- Regarding grub-pc , I would like to perform something like this :
# apt install -y -o Dpkg::Options::="--device /dev/nvme0n1" -o Dpkg::Options::="--continue yes" grub-pc
if a solution exists with dpkg, I take it :)
the purpose is to run the installation script completly without any interaction.
Thanks a lot for your help.
Regards