From: Evgeniy Ivanov Date: Tue, 14 Feb 2012 08:10:15 +0000 (+0400) Subject: ELF hardlinks in /boot for compatibility with old boot. X-Git-Tag: v3.2.0~43 X-Git-Url: http://zhaoyanbai.com/repos/man.arpaname.html?a=commitdiff_plain;h=f6c5d09978184af011b95ac2f8f91be988e071e5;p=minix.git ELF hardlinks in /boot for compatibility with old boot. --- diff --git a/tools/mkboot b/tools/mkboot index 9511dc3f6..50c765e76 100755 --- a/tools/mkboot +++ b/tools/mkboot @@ -136,6 +136,14 @@ hdboot) mv /boot/minix/.temp /boot/minix/"$target" rm -f /boot/minix_latest ln -s /boot/minix/"$target" /boot/minix_latest + + # XXX for compatibility with old boot + ln -f /boot/minix_latest/kernel /boot/kernel + for i in /boot/minix_latest/mod* + do + lname=`basename $i | sed 's/.*_//'` + ln -f "$i" "/boot/$lname" + done else # Install the new image. echo "install $hdboot_t $root:/boot/$hdboot_t/$target"