From 140f01d652bc9d3e80e21dca4963e41ba075ac42 Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Wed, 25 May 2016 19:24:51 +0200 Subject: [PATCH] Bugfix for preinstall scripts. Manifested in kernel install on Xenial --- .../packaging-3.14-DEFAULT-with-postinstall-scripts.patch | 2 +- .../cubox-dev/packaging-3.14-DEV-with-postinstall-scripts.patch | 2 +- .../packaging-4.x-NEXT-with-postinstall-scripts.patch | 2 +- .../packaging-3.10-DEFAULT-with-postinstall-scripts.patch | 2 +- .../packaging-4.x-NEXT-with-postinstall-scripts.patch | 2 +- .../packaging-3.14-DEFAULT-with-postinstall-scripts.patch | 2 +- .../packaging-3.10-DEFAULT-with-postinstall-scripts.patch | 2 +- .../packaging-3.14-DEFAULT-with-postinstall-scripts.patch | 2 +- .../packaging-3.10-DEFAULT-with-postinstall-scripts.patch | 2 +- .../packaging-4.x-NEXT-with-postinstall-scripts.patch | 2 +- .../packaging-3.10-DEFAULT-with-postinstall-scripts.patch | 2 +- .../packaging-3.10-DEFAULT-with-postinstall-scripts.patch | 2 +- .../packaging-3.4.x-DEFAULT-with-postinstall-scripts.patch | 2 +- .../packaging-3.4.x-DEFAULT-with-postinstall-scripts.patch | 2 +- .../packaging-3.4.x-DEFAULT-with-postinstall-scripts.patch | 2 +- .../packaging-3.4.x-DEFAULT-with-postinstall-scripts.patch | 2 +- .../sun8i-dev/packaging-4.x-DEV-with-postinstall-scripts.patch | 2 +- .../packaging-3.4.x-DEFAULT-with-postinstall-scripts.patch | 2 +- .../sunxi-dev/packaging-4.x-DEV-with-postinstall-scripts.patch | 2 +- .../packaging-4.x-NEXT-with-postinstall-scripts.patch | 2 +- .../packaging-3.14-DEFAULT-with-postinstall-scripts.patch | 2 +- .../udoo-next/packaging-4.x-NEXT-with-postinstall-scripts.patch | 2 +- 22 files changed, 22 insertions(+), 22 deletions(-) diff --git a/patch/kernel/cubox-default/packaging-3.14-DEFAULT-with-postinstall-scripts.patch b/patch/kernel/cubox-default/packaging-3.14-DEFAULT-with-postinstall-scripts.patch index c70c2d6841..d75fd7adcc 100644 --- a/patch/kernel/cubox-default/packaging-3.14-DEFAULT-with-postinstall-scripts.patch +++ b/patch/kernel/cubox-default/packaging-3.14-DEFAULT-with-postinstall-scripts.patch @@ -182,7 +182,7 @@ index 152d4d2..9b30ad2 100644 + +for file in /dev/* ; do + CURRENT_DEVICE=\$(printf "%d:%d" \$(stat --printf="0x%t 0x%T" \$file)) -+ if [ \$CURRENT_DEVICE = \$boot_device ]; then ++ if [[ "\$CURRENT_DEVICE" = "\$boot_device" ]]; then + boot_partition=\$file + break; + fi diff --git a/patch/kernel/cubox-dev/packaging-3.14-DEV-with-postinstall-scripts.patch b/patch/kernel/cubox-dev/packaging-3.14-DEV-with-postinstall-scripts.patch index 892dc75079..2c10a750fa 100644 --- a/patch/kernel/cubox-dev/packaging-3.14-DEV-with-postinstall-scripts.patch +++ b/patch/kernel/cubox-dev/packaging-3.14-DEV-with-postinstall-scripts.patch @@ -182,7 +182,7 @@ index 152d4d2..9b30ad2 100644 + +for file in /dev/* ; do + CURRENT_DEVICE=\$(printf "%d:%d" \$(stat --printf="0x%t 0x%T" \$file)) -+ if [ \$CURRENT_DEVICE = \$boot_device ]; then ++ if [[ "\$CURRENT_DEVICE" = "\$boot_device" ]]; then + boot_partition=\$file + break; + fi diff --git a/patch/kernel/cubox-next/packaging-4.x-NEXT-with-postinstall-scripts.patch b/patch/kernel/cubox-next/packaging-4.x-NEXT-with-postinstall-scripts.patch index 5ae3765341..47cb82de4e 100644 --- a/patch/kernel/cubox-next/packaging-4.x-NEXT-with-postinstall-scripts.patch +++ b/patch/kernel/cubox-next/packaging-4.x-NEXT-with-postinstall-scripts.patch @@ -134,7 +134,7 @@ index 6c3b038..cc9b3c0 100755 + +for file in /dev/* ; do + CURRENT_DEVICE=\$(printf "%d:%d" \$(stat --printf="0x%t 0x%T" \$file)) -+ if [ \$CURRENT_DEVICE = \$boot_device ]; then ++ if [[ "\$CURRENT_DEVICE" = "\$boot_device" ]]; then + boot_partition=\$file + break; + fi diff --git a/patch/kernel/marvell-default/packaging-3.10-DEFAULT-with-postinstall-scripts.patch b/patch/kernel/marvell-default/packaging-3.10-DEFAULT-with-postinstall-scripts.patch index 524b27e782..ed6799e1b2 100644 --- a/patch/kernel/marvell-default/packaging-3.10-DEFAULT-with-postinstall-scripts.patch +++ b/patch/kernel/marvell-default/packaging-3.10-DEFAULT-with-postinstall-scripts.patch @@ -241,7 +241,7 @@ index 3001ec5..dc76d3c + +for file in /dev/* ; do + CURRENT_DEVICE=\$(printf "%d:%d" \$(stat --printf="0x%t 0x%T" \$file)) -+ if [ \$CURRENT_DEVICE = \$boot_device ]; then ++ if [[ "\$CURRENT_DEVICE" = "\$boot_device" ]]; then + boot_partition=\$file + break; + fi diff --git a/patch/kernel/marvell-next/packaging-4.x-NEXT-with-postinstall-scripts.patch b/patch/kernel/marvell-next/packaging-4.x-NEXT-with-postinstall-scripts.patch index 5ae3765341..47cb82de4e 100644 --- a/patch/kernel/marvell-next/packaging-4.x-NEXT-with-postinstall-scripts.patch +++ b/patch/kernel/marvell-next/packaging-4.x-NEXT-with-postinstall-scripts.patch @@ -134,7 +134,7 @@ index 6c3b038..cc9b3c0 100755 + +for file in /dev/* ; do + CURRENT_DEVICE=\$(printf "%d:%d" \$(stat --printf="0x%t 0x%T" \$file)) -+ if [ \$CURRENT_DEVICE = \$boot_device ]; then ++ if [[ "\$CURRENT_DEVICE" = "\$boot_device" ]]; then + boot_partition=\$file + break; + fi diff --git a/patch/kernel/neo-default/packaging-3.14-DEFAULT-with-postinstall-scripts.patch b/patch/kernel/neo-default/packaging-3.14-DEFAULT-with-postinstall-scripts.patch index c70c2d6841..d75fd7adcc 100644 --- a/patch/kernel/neo-default/packaging-3.14-DEFAULT-with-postinstall-scripts.patch +++ b/patch/kernel/neo-default/packaging-3.14-DEFAULT-with-postinstall-scripts.patch @@ -182,7 +182,7 @@ index 152d4d2..9b30ad2 100644 + +for file in /dev/* ; do + CURRENT_DEVICE=\$(printf "%d:%d" \$(stat --printf="0x%t 0x%T" \$file)) -+ if [ \$CURRENT_DEVICE = \$boot_device ]; then ++ if [[ "\$CURRENT_DEVICE" = "\$boot_device" ]]; then + boot_partition=\$file + break; + fi diff --git a/patch/kernel/odroidc1-default/packaging-3.10-DEFAULT-with-postinstall-scripts.patch b/patch/kernel/odroidc1-default/packaging-3.10-DEFAULT-with-postinstall-scripts.patch index 524b27e782..ed6799e1b2 100644 --- a/patch/kernel/odroidc1-default/packaging-3.10-DEFAULT-with-postinstall-scripts.patch +++ b/patch/kernel/odroidc1-default/packaging-3.10-DEFAULT-with-postinstall-scripts.patch @@ -241,7 +241,7 @@ index 3001ec5..dc76d3c + +for file in /dev/* ; do + CURRENT_DEVICE=\$(printf "%d:%d" \$(stat --printf="0x%t 0x%T" \$file)) -+ if [ \$CURRENT_DEVICE = \$boot_device ]; then ++ if [[ "\$CURRENT_DEVICE" = "\$boot_device" ]]; then + boot_partition=\$file + break; + fi diff --git a/patch/kernel/odroidc2-default/packaging-3.14-DEFAULT-with-postinstall-scripts.patch b/patch/kernel/odroidc2-default/packaging-3.14-DEFAULT-with-postinstall-scripts.patch index c70c2d6841..d75fd7adcc 100644 --- a/patch/kernel/odroidc2-default/packaging-3.14-DEFAULT-with-postinstall-scripts.patch +++ b/patch/kernel/odroidc2-default/packaging-3.14-DEFAULT-with-postinstall-scripts.patch @@ -182,7 +182,7 @@ index 152d4d2..9b30ad2 100644 + +for file in /dev/* ; do + CURRENT_DEVICE=\$(printf "%d:%d" \$(stat --printf="0x%t 0x%T" \$file)) -+ if [ \$CURRENT_DEVICE = \$boot_device ]; then ++ if [[ "\$CURRENT_DEVICE" = "\$boot_device" ]]; then + boot_partition=\$file + break; + fi diff --git a/patch/kernel/odroidxu4-default/packaging-3.10-DEFAULT-with-postinstall-scripts.patch b/patch/kernel/odroidxu4-default/packaging-3.10-DEFAULT-with-postinstall-scripts.patch index 524b27e782..ed6799e1b2 100644 --- a/patch/kernel/odroidxu4-default/packaging-3.10-DEFAULT-with-postinstall-scripts.patch +++ b/patch/kernel/odroidxu4-default/packaging-3.10-DEFAULT-with-postinstall-scripts.patch @@ -241,7 +241,7 @@ index 3001ec5..dc76d3c + +for file in /dev/* ; do + CURRENT_DEVICE=\$(printf "%d:%d" \$(stat --printf="0x%t 0x%T" \$file)) -+ if [ \$CURRENT_DEVICE = \$boot_device ]; then ++ if [[ "\$CURRENT_DEVICE" = "\$boot_device" ]]; then + boot_partition=\$file + break; + fi diff --git a/patch/kernel/odroidxu4-next/packaging-4.x-NEXT-with-postinstall-scripts.patch b/patch/kernel/odroidxu4-next/packaging-4.x-NEXT-with-postinstall-scripts.patch index ab112ece43..b3bd7cc2f3 100644 --- a/patch/kernel/odroidxu4-next/packaging-4.x-NEXT-with-postinstall-scripts.patch +++ b/patch/kernel/odroidxu4-next/packaging-4.x-NEXT-with-postinstall-scripts.patch @@ -134,7 +134,7 @@ index 88dbf23..8fb7611 100755 + +for file in /dev/* ; do + CURRENT_DEVICE=\$(printf "%d:%d" \$(stat --printf="0x%t 0x%T" \$file)) -+ if [ \$CURRENT_DEVICE = \$boot_device ]; then ++ if [[ "\$CURRENT_DEVICE" = "\$boot_device" ]]; then + boot_partition=\$file + break; + fi diff --git a/patch/kernel/pine64-default/packaging-3.10-DEFAULT-with-postinstall-scripts.patch b/patch/kernel/pine64-default/packaging-3.10-DEFAULT-with-postinstall-scripts.patch index 8e2993fb51..8360240a18 100644 --- a/patch/kernel/pine64-default/packaging-3.10-DEFAULT-with-postinstall-scripts.patch +++ b/patch/kernel/pine64-default/packaging-3.10-DEFAULT-with-postinstall-scripts.patch @@ -221,7 +221,7 @@ index 3001ec5..04a6afb + +for file in /dev/* ; do + CURRENT_DEVICE=\$(printf "%d:%d" \$(stat --printf="0x%t 0x%T" \$file)) -+ if [ \$CURRENT_DEVICE = \$boot_device ]; then ++ if [[ "\$CURRENT_DEVICE" = "\$boot_device" ]]; then + boot_partition=\$file + break; + fi diff --git a/patch/kernel/s500-default/packaging-3.10-DEFAULT-with-postinstall-scripts.patch b/patch/kernel/s500-default/packaging-3.10-DEFAULT-with-postinstall-scripts.patch index 524b27e782..ed6799e1b2 100644 --- a/patch/kernel/s500-default/packaging-3.10-DEFAULT-with-postinstall-scripts.patch +++ b/patch/kernel/s500-default/packaging-3.10-DEFAULT-with-postinstall-scripts.patch @@ -241,7 +241,7 @@ index 3001ec5..dc76d3c + +for file in /dev/* ; do + CURRENT_DEVICE=\$(printf "%d:%d" \$(stat --printf="0x%t 0x%T" \$file)) -+ if [ \$CURRENT_DEVICE = \$boot_device ]; then ++ if [[ "\$CURRENT_DEVICE" = "\$boot_device" ]]; then + boot_partition=\$file + break; + fi diff --git a/patch/kernel/sun4i-default/packaging-3.4.x-DEFAULT-with-postinstall-scripts.patch b/patch/kernel/sun4i-default/packaging-3.4.x-DEFAULT-with-postinstall-scripts.patch index af1f68248e..1256ebdbd4 100644 --- a/patch/kernel/sun4i-default/packaging-3.4.x-DEFAULT-with-postinstall-scripts.patch +++ b/patch/kernel/sun4i-default/packaging-3.4.x-DEFAULT-with-postinstall-scripts.patch @@ -229,7 +229,7 @@ index ed7ccdc..bf30624 100644 + +for file in /dev/* ; do + CURRENT_DEVICE=\$(printf "%d:%d" \$(stat --printf="0x%t 0x%T" \$file)) -+ if [ \$CURRENT_DEVICE = \$boot_device ]; then ++ if [[ "\$CURRENT_DEVICE" = "\$boot_device" ]]; then + boot_partition=\$file + break; + fi diff --git a/patch/kernel/sun5i-default/packaging-3.4.x-DEFAULT-with-postinstall-scripts.patch b/patch/kernel/sun5i-default/packaging-3.4.x-DEFAULT-with-postinstall-scripts.patch index af1f68248e..1256ebdbd4 100644 --- a/patch/kernel/sun5i-default/packaging-3.4.x-DEFAULT-with-postinstall-scripts.patch +++ b/patch/kernel/sun5i-default/packaging-3.4.x-DEFAULT-with-postinstall-scripts.patch @@ -229,7 +229,7 @@ index ed7ccdc..bf30624 100644 + +for file in /dev/* ; do + CURRENT_DEVICE=\$(printf "%d:%d" \$(stat --printf="0x%t 0x%T" \$file)) -+ if [ \$CURRENT_DEVICE = \$boot_device ]; then ++ if [[ "\$CURRENT_DEVICE" = "\$boot_device" ]]; then + boot_partition=\$file + break; + fi diff --git a/patch/kernel/sun7i-default/packaging-3.4.x-DEFAULT-with-postinstall-scripts.patch b/patch/kernel/sun7i-default/packaging-3.4.x-DEFAULT-with-postinstall-scripts.patch index af1f68248e..1256ebdbd4 100644 --- a/patch/kernel/sun7i-default/packaging-3.4.x-DEFAULT-with-postinstall-scripts.patch +++ b/patch/kernel/sun7i-default/packaging-3.4.x-DEFAULT-with-postinstall-scripts.patch @@ -229,7 +229,7 @@ index ed7ccdc..bf30624 100644 + +for file in /dev/* ; do + CURRENT_DEVICE=\$(printf "%d:%d" \$(stat --printf="0x%t 0x%T" \$file)) -+ if [ \$CURRENT_DEVICE = \$boot_device ]; then ++ if [[ "\$CURRENT_DEVICE" = "\$boot_device" ]]; then + boot_partition=\$file + break; + fi diff --git a/patch/kernel/sun8i-default/packaging-3.4.x-DEFAULT-with-postinstall-scripts.patch b/patch/kernel/sun8i-default/packaging-3.4.x-DEFAULT-with-postinstall-scripts.patch index a318772c82..20f9c04dd4 100644 --- a/patch/kernel/sun8i-default/packaging-3.4.x-DEFAULT-with-postinstall-scripts.patch +++ b/patch/kernel/sun8i-default/packaging-3.4.x-DEFAULT-with-postinstall-scripts.patch @@ -229,7 +229,7 @@ index ed7ccdc..bf30624 100644 + +for file in /dev/* ; do + CURRENT_DEVICE=\$(printf "%d:%d" \$(stat --printf="0x%t 0x%T" \$file)) -+ if [ \$CURRENT_DEVICE = \$boot_device ]; then ++ if [[ "\$CURRENT_DEVICE" = "\$boot_device" ]]; then + boot_partition=\$file + break; + fi diff --git a/patch/kernel/sun8i-dev/packaging-4.x-DEV-with-postinstall-scripts.patch b/patch/kernel/sun8i-dev/packaging-4.x-DEV-with-postinstall-scripts.patch index 4b9ae02ffb..6ed3676dde 100644 --- a/patch/kernel/sun8i-dev/packaging-4.x-DEV-with-postinstall-scripts.patch +++ b/patch/kernel/sun8i-dev/packaging-4.x-DEV-with-postinstall-scripts.patch @@ -134,7 +134,7 @@ index 6c3b038..cc9b3c0 100755 + +for file in /dev/* ; do + CURRENT_DEVICE=\$(printf "%d:%d" \$(stat --printf="0x%t 0x%T" \$file)) -+ if [ \$CURRENT_DEVICE = \$boot_device ]; then ++ if [[ "\$CURRENT_DEVICE" = "\$boot_device" ]]; then + boot_partition=\$file + break; + fi diff --git a/patch/kernel/sun8i-old/packaging-3.4.x-DEFAULT-with-postinstall-scripts.patch b/patch/kernel/sun8i-old/packaging-3.4.x-DEFAULT-with-postinstall-scripts.patch index ccfef7b174..98f0a26d62 100644 --- a/patch/kernel/sun8i-old/packaging-3.4.x-DEFAULT-with-postinstall-scripts.patch +++ b/patch/kernel/sun8i-old/packaging-3.4.x-DEFAULT-with-postinstall-scripts.patch @@ -229,7 +229,7 @@ index ed7ccdc..bf30624 100644 + +for file in /dev/* ; do + CURRENT_DEVICE=\$(printf "%d:%d" \$(stat --printf="0x%t 0x%T" \$file)) -+ if [ \$CURRENT_DEVICE = \$boot_device ]; then ++ if [[ "\$CURRENT_DEVICE" = "\$boot_device" ]]; then + boot_partition=\$file + break; + fi diff --git a/patch/kernel/sunxi-dev/packaging-4.x-DEV-with-postinstall-scripts.patch b/patch/kernel/sunxi-dev/packaging-4.x-DEV-with-postinstall-scripts.patch index 4b9ae02ffb..6ed3676dde 100644 --- a/patch/kernel/sunxi-dev/packaging-4.x-DEV-with-postinstall-scripts.patch +++ b/patch/kernel/sunxi-dev/packaging-4.x-DEV-with-postinstall-scripts.patch @@ -134,7 +134,7 @@ index 6c3b038..cc9b3c0 100755 + +for file in /dev/* ; do + CURRENT_DEVICE=\$(printf "%d:%d" \$(stat --printf="0x%t 0x%T" \$file)) -+ if [ \$CURRENT_DEVICE = \$boot_device ]; then ++ if [[ "\$CURRENT_DEVICE" = "\$boot_device" ]]; then + boot_partition=\$file + break; + fi diff --git a/patch/kernel/sunxi-next/packaging-4.x-NEXT-with-postinstall-scripts.patch b/patch/kernel/sunxi-next/packaging-4.x-NEXT-with-postinstall-scripts.patch index ea04b7f411..5034e76e30 100644 --- a/patch/kernel/sunxi-next/packaging-4.x-NEXT-with-postinstall-scripts.patch +++ b/patch/kernel/sunxi-next/packaging-4.x-NEXT-with-postinstall-scripts.patch @@ -134,7 +134,7 @@ index 6c3b038..cc9b3c0 100755 + +for file in /dev/* ; do + CURRENT_DEVICE=\$(printf "%d:%d" \$(stat --printf="0x%t 0x%T" \$file)) -+ if [ \$CURRENT_DEVICE = \$boot_device ]; then ++ if [[ "\$CURRENT_DEVICE" = "\$boot_device" ]]; then + boot_partition=\$file + break; + fi diff --git a/patch/kernel/udoo-default/packaging-3.14-DEFAULT-with-postinstall-scripts.patch b/patch/kernel/udoo-default/packaging-3.14-DEFAULT-with-postinstall-scripts.patch index c70c2d6841..d75fd7adcc 100644 --- a/patch/kernel/udoo-default/packaging-3.14-DEFAULT-with-postinstall-scripts.patch +++ b/patch/kernel/udoo-default/packaging-3.14-DEFAULT-with-postinstall-scripts.patch @@ -182,7 +182,7 @@ index 152d4d2..9b30ad2 100644 + +for file in /dev/* ; do + CURRENT_DEVICE=\$(printf "%d:%d" \$(stat --printf="0x%t 0x%T" \$file)) -+ if [ \$CURRENT_DEVICE = \$boot_device ]; then ++ if [[ "\$CURRENT_DEVICE" = "\$boot_device" ]]; then + boot_partition=\$file + break; + fi diff --git a/patch/kernel/udoo-next/packaging-4.x-NEXT-with-postinstall-scripts.patch b/patch/kernel/udoo-next/packaging-4.x-NEXT-with-postinstall-scripts.patch index 5ae3765341..47cb82de4e 100644 --- a/patch/kernel/udoo-next/packaging-4.x-NEXT-with-postinstall-scripts.patch +++ b/patch/kernel/udoo-next/packaging-4.x-NEXT-with-postinstall-scripts.patch @@ -134,7 +134,7 @@ index 6c3b038..cc9b3c0 100755 + +for file in /dev/* ; do + CURRENT_DEVICE=\$(printf "%d:%d" \$(stat --printf="0x%t 0x%T" \$file)) -+ if [ \$CURRENT_DEVICE = \$boot_device ]; then ++ if [[ "\$CURRENT_DEVICE" = "\$boot_device" ]]; then + boot_partition=\$file + break; + fi