Merge "Adds debian support to iso element"
This commit is contained in:
commit
89d1eaf5a5
@ -2,12 +2,13 @@
|
|||||||
iso
|
iso
|
||||||
===
|
===
|
||||||
Generates a bootable ISO image from the kernel/ramdisk generated by the
|
Generates a bootable ISO image from the kernel/ramdisk generated by the
|
||||||
elements ``baremetal`` or ``ramdisk``. It uses isolinux to boot on BIOS
|
elements ``baremetal``, ``ironic-agent`` or ``ramdisk``. It uses isolinux to boot on BIOS
|
||||||
machines and grub to boot on EFI machines.
|
machines and grub to boot on EFI machines.
|
||||||
|
|
||||||
This element has been tested on the following distro(s):
|
This element has been tested on the following distro(s):
|
||||||
* ubuntu
|
* ubuntu
|
||||||
* fedora
|
* fedora
|
||||||
|
* debian
|
||||||
|
|
||||||
**NOTE**: For other distros, please make sure the ``isolinux.bin`` file
|
**NOTE**: For other distros, please make sure the ``isolinux.bin`` file
|
||||||
exists at ``/usr/lib/syslinux/isolinux.bin``.
|
exists at ``/usr/lib/syslinux/isolinux.bin``.
|
||||||
@ -36,6 +37,10 @@ named ``<image-name>.iso`` booting the generated kernel and ramdisk. It also
|
|||||||
automatically appends kernel command-line argument 'boot\_method=vmedia'
|
automatically appends kernel command-line argument 'boot\_method=vmedia'
|
||||||
which is required for Ironic drivers ``iscsi_ilo``.
|
which is required for Ironic drivers ``iscsi_ilo``.
|
||||||
|
|
||||||
|
ironic-agent element
|
||||||
|
--------------------
|
||||||
|
When used with ``ironic-agent`` element, this generates a bootable ISO image named ``<image-name>.iso`` which boots the agent kernel and agent ramdisk.
|
||||||
|
|
||||||
**REFERENCES**
|
**REFERENCES**
|
||||||
|
|
||||||
[1] https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1378658
|
[1] https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1378658
|
||||||
|
@ -63,6 +63,11 @@ function build_iso() {
|
|||||||
if [ $DISTRO_NAME = "fedora" ]; then
|
if [ $DISTRO_NAME = "fedora" ]; then
|
||||||
EFI_BOOT_DIR="EFI/fedora"
|
EFI_BOOT_DIR="EFI/fedora"
|
||||||
EXTRA_KERNEL_PARAMS="usbcore.autosuspend=-1"
|
EXTRA_KERNEL_PARAMS="usbcore.autosuspend=-1"
|
||||||
|
#debian
|
||||||
|
elif [ $DISTRO_NAME = "debian" ]; then
|
||||||
|
EFI_BOOT_DIR="EFI/debian"
|
||||||
|
EXTRA_KERNEL_PARAMS=""
|
||||||
|
#ubuntu:
|
||||||
else
|
else
|
||||||
EFI_BOOT_DIR="EFI/ubuntu"
|
EFI_BOOT_DIR="EFI/ubuntu"
|
||||||
EXTRA_KERNEL_PARAMS=""
|
EXTRA_KERNEL_PARAMS=""
|
||||||
|
@ -1 +1,3 @@
|
|||||||
syslinux:
|
syslinux:
|
||||||
|
syslinux-common:
|
||||||
|
isolinux:
|
||||||
|
@ -1,14 +1,27 @@
|
|||||||
{
|
{
|
||||||
|
"distro":{
|
||||||
|
"debian":{
|
||||||
|
"syslinux": "syslinux",
|
||||||
|
"syslinux-common": "syslinux-common",
|
||||||
|
"isolinux": "isolinux"
|
||||||
|
}
|
||||||
|
},
|
||||||
"family":{
|
"family":{
|
||||||
"debian":{
|
"debian":{
|
||||||
"syslinux": "syslinux"
|
"syslinux": "syslinux",
|
||||||
|
"syslinux-common": "",
|
||||||
|
"isolinux": ""
|
||||||
},
|
},
|
||||||
"redhat":{
|
"redhat":{
|
||||||
"syslinux": ""
|
"syslinux": "",
|
||||||
|
"syslinux-common": "",
|
||||||
|
"isolinux": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"default":{
|
"default":{
|
||||||
"syslinux": "syslinux"
|
"syslinux": "syslinux",
|
||||||
|
"syslinux-common": "",
|
||||||
|
"isolinux": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,9 +22,15 @@ else
|
|||||||
SHIM_FILE="/usr/lib/shim/shim.efi.signed"
|
SHIM_FILE="/usr/lib/shim/shim.efi.signed"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#fedora
|
||||||
if [ $DISTRO_NAME = "fedora" ]; then
|
if [ $DISTRO_NAME = "fedora" ]; then
|
||||||
SYSLINUX_FILE="/usr/share/syslinux/isolinux.bin"
|
SYSLINUX_FILE="/usr/share/syslinux/isolinux.bin"
|
||||||
LDLINUX_FILE="/usr/share/syslinux/ldlinux.c32"
|
LDLINUX_FILE="/usr/share/syslinux/ldlinux.c32"
|
||||||
|
#debian
|
||||||
|
elif [ $DISTRO_NAME = "debian" ]; then
|
||||||
|
SYSLINUX_FILE="/usr/lib/ISOLINUX/isolinux.bin"
|
||||||
|
LDLINUX_FILE="/usr/lib/syslinux/modules/bios/ldlinux.c32"
|
||||||
|
#ubuntu
|
||||||
else
|
else
|
||||||
SYSLINUX_FILE="/usr/lib/syslinux/isolinux.bin"
|
SYSLINUX_FILE="/usr/lib/syslinux/isolinux.bin"
|
||||||
LDLINUX_FILE="/usr/lib/syslinux/ldlinux.c32"
|
LDLINUX_FILE="/usr/lib/syslinux/ldlinux.c32"
|
||||||
|
Loading…
Reference in New Issue
Block a user