From 4445335f49671420c0c4a5ca0c44e5ccd221c05f Mon Sep 17 00:00:00 2001 From: Alkis Georgopoulos Date: Sat, 29 Nov 2014 17:51:04 +0200 Subject: [PATCH] Correctly sort kernel FLAVOR in increasing order and VERSION in decreasing. Gbp-Pq: Topic upstream Gbp-Pq: Name 0015-Correctly-sort-kernel-FLAVOR-in-increasing-order-and.patch --- client/Debian/etc/ltsp/update-kernels.conf | 2 +- client/Debian/share/ltsp/cleanup.d/50-vmlinuz | 2 +- client/Ubuntu/etc/ltsp/update-kernels.conf | 2 +- client/share/ltsp/update-kernels | 4 ++-- server/ltsp-update-kernels | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/client/Debian/etc/ltsp/update-kernels.conf b/client/Debian/etc/ltsp/update-kernels.conf index 2ab982a..164880e 100644 --- a/client/Debian/etc/ltsp/update-kernels.conf +++ b/client/Debian/etc/ltsp/update-kernels.conf @@ -28,7 +28,7 @@ CMDLINE_NBD="root=/dev/nbd0" CMDLINE_AOE="root=/dev/etherd/e0.0" # A sed expression that matches all kernels and returns $FILE $NAME $VERSION $FLAVOR -# Example: ls /boot | sed -n "$KERNEL_NAMES" | sort -V -k 4,4 | sort -r -k 3,3 +# Example: ls /boot | sed -n "$KERNEL_NAMES" | sort -k 4,4V -k 3,3rV KERNEL_NAMES='s/\(vmlinu[xz]-\)\([^-]*-[^-]*-\)\(.*\)/& \1 \2 \3/p' # A sed expression that maps from a kernel name to an initrd name diff --git a/client/Debian/share/ltsp/cleanup.d/50-vmlinuz b/client/Debian/share/ltsp/cleanup.d/50-vmlinuz index 3a88d30..82fb818 100644 --- a/client/Debian/share/ltsp/cleanup.d/50-vmlinuz +++ b/client/Debian/share/ltsp/cleanup.d/50-vmlinuz @@ -14,7 +14,7 @@ INITRD_NAME=${INITRD_NAME:-'s/vmlinu[xz]/initrd.img/p'} read file name version flavor <