packaging: fix gummiboot missing args 76/40076/1 tizen
authorPhilippe Coval <philippe.coval@open.eurogiciel.org>
Tue, 5 May 2015 14:22:53 +0000 (16:22 +0200)
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>
Thu, 28 May 2015 12:49:11 +0000 (14:49 +0200)
Change-Id: I88b2d65fc2570e1585a9886d4e28d4f6443d5711
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
packaging/linux-stable.spec

index 99934d2..265a383 100644 (file)
@@ -298,7 +298,10 @@ rm -rf %{buildroot}/usr/lib/debug/lib/traceevent/plugins/*.debug
 %post -n kernel-%{variant}
 if [ -f "/boot/loader/loader.conf" ]; then
        # EFI boot with gummiboot
-       INSTALLERFW_MOUNT_PREFIX="/" /usr/sbin/setup-scripts-gummiboot-conf
+       INSTALLERFW_MOUNT_PREFIX="/" /bin/sh /usr/sbin/setup-gummiboot-conf \
+           add -f \
+           "%{kernel_full_version}" "%{kernel_full_version}" "vmlinuz-%{kernel_full_version}" \
+           "$(cat /proc/cmdline)"
     # "/etc/installerfw-environment" does not exist in MIC environment, when it
     # builds the image. MIC will add boot-loader entries later using the
     # 'setup-scripts-boot' script.
@@ -335,7 +338,8 @@ fi
 %postun -n kernel-%{variant}
 if [ -f "/boot/loader/loader.conf" ]; then
        # EFI boot with gummiboot
-       INSTALLERFW_MOUNT_PREFIX="/" /usr/sbin/setup-scripts-gummiboot-conf
+       INSTALLERFW_MOUNT_PREFIX="/" /bin/sh /usr/sbin/setup-gummiboot-conf \
+           remove "vmlinuz-%{kernel_full_version}"
     if [ -f "/etc/installerfw-environment" ] && \
         [ -x "/usr/sbin/setup-scripts-bootloader-conf" ]; then
             /usr/sbin/setup-scripts-bootloader-conf remove -f vmlinuz-%{kernel_full_version}