diff options
author | Anssi Hannula <anssi@mageia.org> | 2012-04-04 00:28:33 +0000 |
---|---|---|
committer | Anssi Hannula <anssi@mageia.org> | 2012-04-04 00:28:33 +0000 |
commit | 02e5f381bf11a6870975aa48eea4da38c83b9941 (patch) | |
tree | a7340e7fe50a6b75178e54f6c2e73e3c43c5465f | |
parent | a94b1ceef2762a2e4cca7da66901d94c5773d6bd (diff) | |
download | bootsplash-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).
-rwxr-xr-x | scripts/make-boot-splash-raw | 2 |
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 -` |