Public bug reported:
ppc64el kernels are named 'vmlinux', not 'vmlinuz'.
ie, on x86 you have:
/boot/vmlinuz-4.4.0-66-generic
but on ppc64el you have
/boot/vmlinux-4.4.0-66-generic
so, purge-old-kernels writes an error to stderr and doesnt in general do
anything.
$ sudo purge-old-kernels; echo $?
ls: cannot access '/boot/vmlinuz-*': No such file or directory
No kernels are eligible for removal
0
Simple change is
$ sudo diff -u /usr/bin/purge-old-kernels.dist /usr/bin/purge-old-kernels
--- /usr/bin/purge-old-kernels.dist 2017-03-10 16:52:31.098191847 +0000
+++ /usr/bin/purge-old-kernels 2017-03-10 16:55:33.110989618 +0000
@@ -45,7 +45,7 @@
done
# Build our list of kernel packages to purge
-CANDIDATES=$(ls -tr /boot/vmlinuz-* | head -n -${KEEP} | grep -v "$(uname
-r)$" | cut -d- -f2- | awk '{print "linux-image-" $0 " linux-headers-" $0}' )
+CANDIDATES=$(ls -tr /boot/vmlinu?-* | head -n -${KEEP} | grep -v "$(uname
-r)$" | cut -d- -f2- | awk '{print "linux-image-" $0 " linux-headers-" $0}' )
for c in $CANDIDATES; do
dpkg-query -s "$c" >/dev/null 2>&1 && PURGE="$PURGE $c"
done
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: byobu 5.106-0ubuntu1
ProcVersionSignature: Ubuntu 4.4.0-66.87-generic 4.4.44
Uname: Linux 4.4.0-66-generic ppc64le
ApportVersion: 2.20.1-0ubuntu2.5
Architecture: ppc64el
Date: Fri Mar 10 16:52:10 2017
JournalErrors:
Error: command ['journalctl', '-b', '--priority=warning', '--lines=1000']
failed with exit code 1: Hint: You are currently not seeing messages from other
users and the system.
Users in the 'systemd-journal' group can see all messages. Pass -q to
turn off this notice.
No journal files were opened due to insufficient permissions.
PackageArchitecture: all
ProcEnviron:
TERM=xterm-256color
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcLoadAvg: 0.23 0.08 0.03 1/1305 18728
ProcSwaps:
Filename Type Size Used Priority
/swap.img file 8388544 0 -1
ProcVersion: Linux version 4.4.0-66-generic (buildd@bos01-ppc64el-025) (gcc
version 5.4.0 20160609 (Ubuntu/IBM 5.4.0-6ubuntu1~16.04.4) ) #87-Ubuntu SMP Fri
Mar 3 15:30:20 UTC 2017
SourcePackage: byobu
UpgradeStatus: No upgrade log present (probably fresh install)
cpu_cores: Number of cores present = 20
cpu_coreson: Number of cores online = 20
cpu_smt: SMT=8
** Affects: byobu (Ubuntu)
Importance: Medium
Status: Confirmed
** Tags: apport-bug ppc64el uec-images xenial
** Changed in: byobu (Ubuntu)
Status: New => Confirmed
** Changed in: byobu (Ubuntu)
Importance: Undecided => Medium
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1671880
Title:
purge-old-kernels fails on ppc64el
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/byobu/+bug/1671880/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs