]> Zhao Yanbai Git Server - minix.git/commitdiff
ELF hardlinks in /boot for compatibility with old boot.
authorEvgeniy Ivanov <lolkaantimat@gmail.com>
Tue, 14 Feb 2012 08:10:15 +0000 (12:10 +0400)
committerArun Thomas <arun@minix3.org>
Tue, 14 Feb 2012 11:53:34 +0000 (12:53 +0100)
tools/mkboot

index 9511dc3f6e9a448e0bbfcdb3dcf14f0f3402f23a..50c765e7622b94915ff19c75bdac0b0f936a7615 100755 (executable)
@@ -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"