aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAnssi Hannula <anssi@mageia.org>2012-04-04 00:28:33 +0000
committerAnssi Hannula <anssi@mageia.org>2012-04-04 00:28:33 +0000
commit02e5f381bf11a6870975aa48eea4da38c83b9941 (patch)
treea7340e7fe50a6b75178e54f6c2e73e3c43c5465f /scripts
parenta94b1ceef2762a2e4cca7da66901d94c5773d6bd (diff)
downloadbootsplash-02e5f381bf11a6870975aa48eea4da38c83b9941.tar
bootsplash-02e5f381bf11a6870975aa48eea4da38c83b9941.tar.gz
bootsplash-02e5f381bf11a6870975aa48eea4da38c83b9941.tar.bz2
bootsplash-02e5f381bf11a6870975aa48eea4da38c83b9941.tar.xz
bootsplash-02e5f381bf11a6870975aa48eea4da38c83b9941.zip
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).
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/make-boot-splash-raw2
1 files changed, 2 insertions, 0 deletions
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 -`