I do not think this problem can be resolved by option -y. When run apt-get upgrade -y, it is also possible for customer to hit other prompts, such like below:
root@mid05tor25:~# apt-get upgrade -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
frr libc-ares2 linux-image-4.1.0-cl-6-iproc platform-modules-4.1.0-cl-6-iproc quagga-compat
The following packages will be upgraded:
base-files bash bcm-sdk bind9-host bridge-utils ca-certificates clag cumulus-basefiles cumulus-image cumulus-net-snmp-addons cumulus-onie-firmware cumulus-platform cumulus-poe
......
Installing new version of config file /etc/e2fsck.conf ...
Installing new version of config file /etc/logrotate.conf.cumulus ...
Installing new version of config file /etc/logrotate.d/bootlog ...
Installing new version of config file /etc/logrotate.d/crit ...
Installing new version of config file /etc/profile.d/cl_license_motd.sh ...
Installing new version of config file /etc/profile.d/cl_support_motd.sh ...
Configuration file '/etc/rsyslog.d/99-syslog.conf'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** 99-syslog.conf (Y/I/N/O/D/Z) [default=N] ? y
Installing new version of config file /etc/rsyslog.d/99-syslog.conf ...
Installing new version of config file /etc/security/limits.d/99-cumulus.conf ...
Installing new version of config file /etc/sysctl.d/arp.conf ...
.......
Processing triggers for initramfs-tools (0.120+deb8u3) ...
update-initramfs: Generating /boot/initrd.img-4.1.0-cl-6-iproc
Creating post-apt snapshot... 3 done.
*** System restart required ***
Is it possible for us to predict all kinds of prompt OS vendor will add in the further? If not, it is better to let customer has a chance to do what they want to do. Maybe let customer to login the switch to run apt-get upgrade manually is a better option.
In our document Cumulus OS upgrade, xCAT recommend customer to use
xdsh
to upgrade cumulus OS like below:But when doing upgrade, the upgrade process will enter prompt mode, we will get below result:
I do not think this problem can be resolved by option
-y
. When runapt-get upgrade -y
, it is also possible for customer to hit other prompts, such like below:Is it possible for us to predict all kinds of prompt OS vendor will add in the further? If not, it is better to let customer has a chance to do what they want to do. Maybe let customer to login the switch to run
apt-get upgrade
manually is a better option.