Xen Image now use pygrub to load ramdisk and kernel inside of the image

Removed kernel/initrd outside of the xen-image
Fix savedefault handling
This commit is contained in:
Arne Fitzenreiter
2009-09-17 14:59:18 +02:00
parent d10bbeba71
commit aa7304005c
3 changed files with 17 additions and 12 deletions

View File

@@ -54,7 +54,7 @@ SIZEswap := 512
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
rm -rf $(MNThdd) $(IMGinst) $(IMGroot) && mkdir -p $(MNThdd)
mkdir -p /install/images/$(SNAME)/boot
mkdir -p /install/images/$(SNAME) # /boot
#Create swapimage
dd bs=1M if=/dev/zero of=$(IMGswap) count=$(SIZEswap)
@@ -86,6 +86,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
echo " kernel /vmlinuz-$(KVER)-ipfire-xen root=/dev/xvda1 rootdelay=10 panic=10 console=xvc0 ro" \
>> $(MNThdd)/boot/grub/grub.conf
echo " initrd /ipfirerd-$(KVER)-xen.img" >> $(MNThdd)/boot/grub/grub.conf
echo "# savedefault 0" >> $(MNThdd)/boot/grub/grub.conf
ln -s grub.conf $(MNThdd)/boot/grub/menu.lst
#Copy the meta-info of linux-xen package
@@ -150,10 +152,10 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
$(MNThdd)/opt/pakfire/etc/pakfire.conf
#Copy initramdisk, kernel and config
cp -f $(MNThdd)/boot/ipfirerd-$(KVER)-xen.img \
/install/images/$(SNAME)/boot
cp -f $(MNThdd)/boot/vmlinuz-$(KVER)-ipfire-xen \
/install/images/$(SNAME)/boot
#cp -f $(MNThdd)/boot/ipfirerd-$(KVER)-xen.img \
# /install/images/$(SNAME)/boot
#cp -f $(MNThdd)/boot/vmlinuz-$(KVER)-ipfire-xen \
# /install/images/$(SNAME)/boot
cp $(DIR_SRC)/config/xen-image/* \
/install/images/$(SNAME)
sed -i -e "s|KVER|$(KVER)|g" /install/images/$(SNAME)/ipfire.cfg