diff --git a/VERSION b/VERSION index 653402d..736779c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1-4 +0.1-5 diff --git a/root/usr/sbin/uncompress-kernel b/root/usr/sbin/uncompress-kernel index d819b2d..a72136d 100755 --- a/root/usr/sbin/uncompress-kernel +++ b/root/usr/sbin/uncompress-kernel @@ -13,13 +13,12 @@ VERSION="$2" # Workaround Rockchip U-Boot issue where they cannot load gzip compressed kernel image case $ACTION in - configure|'') : ;; - *) exit ;; + configure|'') + if file "$IMAGE" | grep -qi "gzip" + then + echo "Decompressing $IMAGE ..." + mv "$IMAGE" "$IMAGE.gz" + gunzip "$IMAGE.gz" + fi + ;; esac - -if file "$IMAGE" | grep -qi "gzip" -then - echo "Decompressing $IMAGE ..." - mv "$IMAGE" "$IMAGE.gz" - gunzip "$IMAGE.gz" -fi diff --git a/root/usr/sbin/update-extlinux b/root/usr/sbin/update-extlinux index b5dcd93..bf05b7e 100755 --- a/root/usr/sbin/update-extlinux +++ b/root/usr/sbin/update-extlinux @@ -13,8 +13,8 @@ VERSION="$2" # Update extlinux.conf case $ACTION in - configure|remove|'') : ;; - *) exit ;; + configure|remove|'') : ;; + *) exit ;; esac if ! source /etc/default/extlinux 2>/dev/null @@ -58,7 +58,7 @@ done < <(linux-version list | linux-version sort --reverse) if (( ${#FDTOVERLAYS[@]} != 0 )) then - sed -i "s/#fdtoverlays/fdtoverlays/g" /boot/extlinux/extlinux.conf.new + sed -i "s/#fdtoverlays/fdtoverlays/g" /boot/extlinux/extlinux.conf.new fi mv /boot/extlinux/extlinux.conf.new /boot/extlinux/extlinux.conf diff --git a/root/usr/sbin/update-systemd-boot b/root/usr/sbin/update-systemd-boot index 978ad6e..6e7a2c2 100755 --- a/root/usr/sbin/update-systemd-boot +++ b/root/usr/sbin/update-systemd-boot @@ -12,29 +12,22 @@ VERSION="$2" # Update EFI boot entries for systemd-boot -case $ACTION in - configure|remove|'') : ;; - *) exit ;; -esac - if ! command -v efibootmgr >/dev/null then exit fi -echo "Updating /boot/efi/$(cat /etc/machine-id) ..." - -case "$MODE" in - postinst.d) +case $ACTION in + configure) + echo "Updating EFI entry for $ABI ..." if [[ -z "$IMAGE" ]] then IMAGE="$(ls /boot/vmlinu*-$ABI)" fi kernel-install add "$ABI" "$IMAGE" ;; - postrm.d) + remove) + echo "Removing EFI entry for $ABI ..." kernel-install remove "$ABI" ;; - sbin) - ;; esac