|
From: Tim T. <t....@co...> - 2004-05-26 17:22:42
|
While making some fixes to mount_cdrom for live update (due to issues with read-only mounts of disk device) it occured to me there was another issue - after reboot to a new version, pre_init will invoke for the upgrade-config script where the user will be required to provide input on the console. If the user is in fact at a remote location, the box is now hung. Q: It looks like upgrade-config needs some post-processing to actually upgrade the real config? A few alternatives occurred to me - - Make the choice to run upgrade-config default to "no", and let user ssh in later to run it. Can we setup all interactive logins to check for mismatch and prompt/run the upgrade script there? In some situation, the boot might not be succesfull unless the config is upgraded. - Add another boot-line option like "DL_remote" that would indicate never to require console input. This could be used to skip the upgrade prompt entirely, or just change the default answer. - Add and option to upgrade-config that takes default choices if no answer in n seconds, and leave the pre_init stuff alone. pre_init could detect the new "DL_remote" flag and call upgrade-config with the right options. The user could ssh in to accept and save the new config, or reject it and run the upgrade script again. Comments? Tim |