|
Bugzilla – Full Text Bug Listing |
| Summary: | Online update setup creates unusable cron job | ||
|---|---|---|---|
| Product: | [openSUSE] SUSE Linux 10.1 | Reporter: | Andreas Vetter <vetter> |
| Component: | YaST2 | Assignee: | Jiří Suchomel <jsuchome> |
| Status: | RESOLVED FIXED | QA Contact: | Stanislav Visnovsky <visnov> |
| Severity: | Major | ||
| Priority: | P5 - None | CC: | andreas.hanke, asklein, carlosflange, forgotten_QtBI7gWTIh, hmuelle, jsrain, jsuchome, suse-beta, tempelmann |
| Version: | Final | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | Other | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Attachments: |
yast2 logs
patch for SLES10 |
||
Please attach the y2logs. Created attachment 94291 [details]
yast2 logs
Adding a "-y" to the commandline parameter helps installing the updates, but then you get strange characters in the email from cron: Subject: Cron <root@dc09> rug up -y -t patch --skip-interactive Resolving Dependencies... The following packages will be installed: gpg2 1.9.18-17.5 (http://ftp.tu-chemnitz.de/pub/linux/suse/ftp.suse.com/suse/update/10.1) gpg2-1.9.18-17.5.x86_64[SUSE-Linux-10.1-Updates] needed by atom:gpg2-1.9.18-17.5.x86_64[SUSE-Linux-10.1-Updates] gpg2 1835-0 (http://ftp.tu-chemnitz.de/pub/linux/suse/ftp.suse.com/suse/update/10.1) Transaction... ^[[1G^[[41m^[[0m 0% ^[[0K ^[[0K^[[1A^[[1G^[[41m^[[0m 0% ^[[0K ^[[0K^[[1A^[[1G^[[41m^[[0m 0% ^[[0K ^[[0K^[[1A^[[1G^[[41m^[[0m 0% ^[[0K ... Finishing...^[[0K^[[1A^[[1G^[[41m^[[0m 99% ^[[0K Finishing...^[[0K^[[1A^[[1G^[[41m^[[0m 99% ^[[0K Finishing...^[[0K^[[1A^[[1G^[[41m^[[0m 99% ^[[0K ^[[0K^[[1A^[[1G^[[41m^[[0m 100% ^[[0K ^[[0K^[[1A Transaction Finished Another thing: The man page of rug does not describe all command-line switches. E.g. --skip-interactive is missing. I was looking for something that switches the output of "rup up" to a plain format. Why the '--skip-interactive' option doesn't solve this? (I added it there as a result of bug #150471) Isn't this rather a rug bug? See last comment. Some patches can be interactive, beyond the standard rug confirmation question. The --skip-interactive is meant to skip these "special" patches, not to automatically acknowledge the confirmation. I'll file a bug to fix the documentation shortly. As for the terminal control characters showing up, that is a problem in the code 10 branch; it's already fixed in breakout (the next release), where rug detects if the output is to a dumb terminal/file and doesn't print the control chars. -> Jiri for review. Doc bug filed: Bug #197655. Nice :-( I assume we need a 10.1 (and also SLE10) patch for yast2-online-update, which would fix the cron job line... Please submit this for the SLE10, we will push it out with the next update soon. Stano, Harald, please remember to add this to the package list. *** Bug 198141 has been marked as a duplicate of this bug. *** Harald, Stano? Created attachment 96231 [details]
patch for SLES10
Yes, it should go to SLE10 as well. I need a swamp-id Hm, as the newer (=includes also fix for cron job) yast2-online-update with a enhanced callback handling (bug #168844) will be released, I consider this as fixed. Please think about mentioning this bug in libzypp changelog. *** Bug 197094 has been marked as a duplicate of this bug. *** *** Bug 202982 has been marked as a duplicate of this bug. *** *** Bug 236249 has been marked as a duplicate of this bug. *** |
open yast2, online update setup. select daily instead of weekly (I never tried weekly) click ok. the created file /etc/cron.d/yast2-online-update contains the line: 26 1 * * * root rug up -t patch --skip-interactive when updates are available, they are not installed, because the -y flag is missing: Subject: Cron <root@beder> rug up -t patch --skip-interactive Resolving Dependencies... The following packages will be installed: control-center2 2.12.2-62.15 (nfs://wpyc049/srv/suse/i386/update/10.1) control-center2-2.12.2-62.15.x86_64[20060714-165805] needed by atom:control-center2-2.12.2-62.15.x86_64[20060714-165805] [...] Proceed with transaction? (y/N) ERROR: Object reference not set to an instance of an object