diff options
-rwxr-xr-x | make-boot-image.sh | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/make-boot-image.sh b/make-boot-image.sh index aab28f5..42dc91f 100755 --- a/make-boot-image.sh +++ b/make-boot-image.sh @@ -131,31 +131,33 @@ while more_work and i < 10: for sym in conf.get_symbols(): name = sym.get_name() + + # Default hostname is (none) and could make FreeBSD's dhcpd complain because unallowed '()' if name in ['DEFAULT_HOSTNAME']: - # default is (none) and could make FreeBSD's dhcpd complain because unallowed '()' more_work = sset(sym, 'eficast') or more_work + # Embed initrd in the EFI bootable kernel if name in ['INITRAMFS_SOURCE']: - # embed initrd in the EFI bootable kernel more_work = sset(sym, '../initrd/') or more_work + # Make kernel directly loadable by EFI, add USB3, Dell flash if name in ['EFI_STUB', 'EFI_VARS', 'DELL_RBU', 'USB_XHCI_HCD', 'IKCONFIG']: - # Make kernel directly loadable by EFI, add USB3, Dell flash more_work = sset(sym) or more_work + # Support soft RAID (linux) and hard RAID (some cards) if name in ['DM_RAID', 'SCSI_LOWLEVEL', 'MEGARAID_SAS', 'MEGARAID_NEWGEN']: - # Support soft RAID (linux) and hard RAID (some cards) more_work = sset(sym) or more_work + # If --debug passed as arg, make kernel aware of virtual drivers (used for testing eficast on qemu/kvm) if debug and name in ['VIRTIO_PCI', 'VIRTIO_MMIO', 'VIRTIO_NET', 'VIRTIO_BLK', 'SCSI_LOWLEVEL', 'SCSI_VIRTIO']: - # Make kernel aware of virtual drivers (used for testing eficast on qemu/kvm) more_work = sset(sym) or more_work + # Disable thing that are unneeded or annoying for the purpose of disk cloning if name in ['LOGO', 'SUSPEND', 'HIBERNATION', 'CPU_FREQ', 'PCCARD', 'HAMRADIO', 'WIRELESS', 'RFKILL', 'WLAN', 'SOUND', 'NETWORK_FILESYSTEMS', 'KEYS', 'SECURITY', 'VIRTUALIZATION']: more_work = sset(sym, 'n') or more_work + # Compress everything with XZ if available (slower, smaller) if support_xz: - # Compress everything with XZ if available (slower, smaller) if name in ['KERNEL_XZ']: more_work = sset(sym, 'y') or more_work if name in ['RD_GZIP', 'RD_BZIP2', 'RD_LZMA', 'RD_LZO', 'RD_LZ4']: |