mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user