From 02e5f381bf11a6870975aa48eea4da38c83b9941 Mon Sep 17 00:00:00 2001 From: Anssi Hannula Date: Wed, 4 Apr 2012 00:28:33 +0000 Subject: make-boot-splash: dereference symlinks before operation DrakX can call this script with /boot/initrd.img symlink, in which case we want to operate on its target instead, or the symlink would get replaced with a regular file (reported by Colin Guthrie). --- scripts/make-boot-splash-raw | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/make-boot-splash-raw b/scripts/make-boot-splash-raw index ba52d98..c71d24c 100755 --- a/scripts/make-boot-splash-raw +++ b/scripts/make-boot-splash-raw @@ -27,6 +27,8 @@ clean_and_fail() { exit 1 } +initrd_file="$(readlink -f "$initrd_file")" + # warly: we cannot use file command which is in /usr/bin/ # initrd_type=`zcat /boot/initrd-2.6.14-2mdk.ramfs.img | file -` -- cgit v1.2.1