ELF hardlinks in /boot for compatibility with old boot.
This commit is contained in:
parent
80c4685324
commit
f6c5d09978
1 changed files with 8 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue