Multiboot support (contributed by Feiran "Fam" Zheng);

keep in mind that GRUB needs to be patched to read MFS for now;
use /boot/image_latest to boot the last compiled image in GRUB
This commit is contained in:
Erik van der Kouwe
2010-07-23 14:24:34 +00:00
parent 9212eab21f
commit df0ba02a38
13 changed files with 904 additions and 8 deletions

View File

@@ -109,6 +109,14 @@ hdboot)
echo "install image $root:/boot/image/$target"
install -o root -m 600 image $rootdir/boot/image/$target || exit
# Tell GRUB which image is newest
image_latest="`ls -t $rootdir/boot/image | head -n 1`"
if [ -f "$rootdir/boot/image/$image_latest" ]
then image_latest="/boot/image/$image_latest"
else image_latest=/boot/image_big
fi
ln -f $image_latest $rootdir/boot/image_latest
# Save the revision number.
test "$revision" != "$oldrev" && echo $revision >revision