[Bug 1161620] New: New purge-kernels asks to confirm purge, at boot time
http://bugzilla.opensuse.org/show_bug.cgi?id=1161620 Bug ID: 1161620 Summary: New purge-kernels asks to confirm purge, at boot time Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: x86-64 OS: openSUSE Factory Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: jimc@math.ucla.edu QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Versions: purge-kernels-service-0-1.1.x86_64 zypper-1.14.33-1.2.x86_64 dracut-049+git118.a6090e2f-1.1.x86_64 (no longer has purge-kernels.service) openSUSE-release-20200118-406.1.x86_64 Ref: Bug 1159289 OP Michal Suchanek (2019-12-16), Dracut needs to drop purge-kernels.service purge-kernels.service execs "zypper purge-kernels" on boot if /boot/do_purge_kernels is present. Zypper synthesizes a command line similar to: zypper remove kernel-default-(vers) kernel-default-devel-(vers)... It then asks the human operator to confirm this operation, which of course is impossible at boot time. Output is attached from systemctl status purge-kernels.service . I think purge-kernels.service needs to give --non-interactive to zypper. In a session with a normal ptty I tried "zypper purge-kernels" with and without --non-interactive. Without, the removal instance asked for confirmation, but with --non-interactive. it simulated a 'y' and went on to remove the unwanted kernel instance(s). This is correct behavior. Last night I tried the same test on a different machine and with --non-interactive and (I think) '
http://bugzilla.opensuse.org/show_bug.cgi?id=1161620
http://bugzilla.opensuse.org/show_bug.cgi?id=1161620#c1
--- Comment #1 from James Carter
http://bugzilla.opensuse.org/show_bug.cgi?id=1161620
http://bugzilla.opensuse.org/show_bug.cgi?id=1161620#c2
Neil Rickert
http://bugzilla.opensuse.org/show_bug.cgi?id=1161620
http://bugzilla.opensuse.org/show_bug.cgi?id=1161620#c3
Neil Rickert
http://bugzilla.opensuse.org/show_bug.cgi?id=1161620
http://bugzilla.opensuse.org/show_bug.cgi?id=1161620#c4
Frank Kruger
I can confirm the problem.
But there is an addition problem. Somehow, the purge-kernels service does not exist. Yet it has been working successfully for years.
It seems that there is a purge-kernels-service package that must be installed. This is going to result in Tumbleweed user's disks filling up.
So I added the package, but it does not work (as this bug reports).
I can confirm your observations: i) After the removal of the purge-kernels scripts and service with dracut 049+git117.d3206e79 there is an additional package called 'purge-kernels-service', which has to be installed manually. ii) The "new" purge-kernels.service fails at boot with the above-mentioned error. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1161620
Björn Voigt
http://bugzilla.opensuse.org/show_bug.cgi?id=1161620
Andrei Borzenkov
http://bugzilla.opensuse.org/show_bug.cgi?id=1161620
Andreas Jaeger
http://bugzilla.opensuse.org/show_bug.cgi?id=1161620
Andreas Jaeger
http://bugzilla.opensuse.org/show_bug.cgi?id=1161620
Robert Kaiser
http://bugzilla.opensuse.org/show_bug.cgi?id=1161620
http://bugzilla.opensuse.org/show_bug.cgi?id=1161620#c10
Michal Suchanek
participants (1)
-
bugzilla_noreply@novell.com