~ubuntu-core-dev/debian-installer/xenial-proposed

« back to all changes in this revision

Viewing changes to build/config/x86.cfg

  • Committer: Colin Watson
  • Date: 2007-11-28 18:32:20 UTC
  • mfrom: (664.2.2667)
  • Revision ID: cjwatson@canonical.com-20071128183220-ilixcc1n5fw1m2t6
Tags: 20061102ubuntu1
* Resynchronise with Debian. Remaining changes:
  - Ubuntu branding of various kinds.
  - Use Ubuntu kernels. Various tweaks for different udeb splits.
  - Fetch distribution name and version number from lsb_release.
  - Use the full version number in image directories.
  - Build-depend on belocs-locales-bin.
  - Various boot screen text adjustments.
  - Add server boot options.
  - Add memtest boot option.
  - Add live CD boot screens.
  - Adjust memory size recommendations.
  - Document pci=noacpi.
  - Add translatable boot screen text for gfxboot.
  - Use ubuntu-keyring-udeb (and gpgv-udeb) instead of the Debian archive
    keyring.
  - Switch all images to initramfs.
  - Add netboot images suitable for USB memory sticks.
  - Remove floppy support, since it never used to work with 2.6. (This may
    be fixed in the future.)
  - Disable gtk frontend.
  - Add kickseed-common and initrd-kickseed to all images containing
    preseed-common and initrd-preseed.
  - Add nfs-modules to all netboot images except powerpc, for Kickstart.
  - kbd-chooser -> console-setup.
  - Include keymap decision tree in all.utf.
  - Replace cdebconf-newt-entropy with cdebconf-newt-detect-keys in
    EXTRAUDEBS.
  - Add bootchart-udeb to all images.
  - Add grepmap-udeb to all images.
  - Add hdparm-udeb to cdrom images.
  - Add nic-firmware to netboot images.
  - Ship elilo configuration on i386 for Intel-based Macs.
  - Use mkvmlinuz'\''s fallback object files on powerpc rather than relying
    on the kernel'\''s.
  - Remove sparc32.
  - Use ${RAMDISK_SIZE} in sparc'\''s silo.conf rather than a hardcoded size.
  - Add input-modules to the sparc netboot image.
* Set default suite to feisty.
* Fix server option to preseed "tasks=standard" instead of
  "pkgsel/install-pattern=~t^ubuntu-standard$".
* Move to 2.6.19-7 kernels. Handle various module udeb changes:
  ide-core-modules, loop-modules, scsi-core-modules, usb-storage-modules
  -> storage-core-modules; lots of filesystem modules -> fs-core-modules,
  fs-secondary-modules.
* Remove auto-install/ai-choosers targets, at least for now.
* Make nic-firmware optional, since it seems to have gone AWOL (filed
  #73896).

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
# Doesn't really save much since we gzip the image later though.
28
28
.PHONY: arch_tree
29
29
arch_tree:
 
30
ifdef UPX
30
31
        for bin in $(UPX_BINS); do \
31
32
                $(UPX) -9 $(TREE)/$$bin; \
32
33
        done
 
34
endif
33
35
 
34
36
# Create a bootable image.
35
37
.PHONY: arch_boot
36
38
arch_boot:
 
39
ifdef UPX
37
40
        $(UPX) -9 $(TEMP_KERNEL) || true
 
41
endif
38
42
        mkfs.msdos -i $(DOS_VOLUME_ID) -n $(DOS_VOLUME_LABEL) -C $(TEMP_BOOT) $(FLOPPY_SIZE)
39
43
        
40
44
        # syslinux is used to make the image bootable
43
47
        mcopy -i$(TEMP_BOOT) $(TEMP_KERNEL) ::linux
44
48
        mcopy -i$(TEMP_BOOT) $(TEMP_INITRD) ::initrd.gz
45
49
        
46
 
        if [ -n "$(INITRD_2.6)" ] && [ -n "$(KERNEL_2.6)" ]; then \
47
 
                mcopy -i$(TEMP_BOOT) $(KERNEL_2.6) ::linux26; \
48
 
                mcopy -i$(TEMP_BOOT) $(INITRD_2.6) ::initrd26.gz; \
49
 
        fi
50
50
        if [ -n "$(INITRD_GTK)" ]; then \
51
51
                mcopy -i$(TEMP_BOOT) $(INITRD_GTK) ::initrdg.gz; \
52
52
        fi
56
56
        mcopy -i$(TEMP_BOOT) $(TEMP)/disk.lbl ::disk.lbl
57
57
 
58
58
        # syslinux.cfg
59
 
        if [ -n "$(INITRD_GTK)" ]; then \
 
59
        (if [ -n "$(INITRD_GTK)" ]; then \
60
60
                cat boot/x86/syslinux.cfg.withgtk; \
61
61
        else \
62
62
                cat boot/x86/syslinux.cfg; \
63
 
        fi \
64
 
        | ramdisk-size-subst $(TEMP_INITRD) $(INITRD_2.6) $(INITRD_GTK) \
 
63
        fi) \
65
64
        | bootscreen-subst MEDIA_TYPE "$(MEDIA_TYPE)" \
66
65
                DISTRIBUTION_NAME "$(DISTRIBUTION_NAME)" \
67
66
                DEBIAN_VERSION "$(DEBIAN_VERSION)" \
92
91
# Create a non-bootable image.
93
92
.PHONY: arch_root
94
93
arch_root:
95
 
        mkfs.msdos -i $(DOS_VOLUME_ID) -n $(DOS_VOLUME_LABEL) -C $(TEMP_ROOT) $(FLOPPY_SIZE)
96
 
 
97
 
        mcopy -i$(TEMP_ROOT) $(TEMP_INITRD) ::initrd.gz
98
 
 
99
94
        # generate a disk label
100
95
        makelabel $(DISK_LABEL) $(BUILD_DATE) > $(TEMP)/disk.lbl
101
 
        mcopy -i$(TEMP_ROOT) $(TEMP)/disk.lbl ::disk.lbl
 
96
 
 
97
        # Create fat image (no longer used)
 
98
        #mkfs.msdos -i $(DOS_VOLUME_ID) -n $(DOS_VOLUME_LABEL) -C $(TEMP_ROOT) $(FLOPPY_SIZE); \
 
99
        #mcopy -i$(TEMP_ROOT) $(TEMP_INITRD) ::initrd.gz; \
 
100
        #mcopy -i$(TEMP_ROOT) $(TEMP)/disk.lbl ::disk.lbl; \
 
101
 
 
102
        # Create ext2 image
 
103
        mkdir $(TEMP)/tmp; \
 
104
        cp $(TEMP_INITRD) $(TEMP)/disk.lbl $(TEMP)/tmp; \
 
105
        genext2fs -d $(TEMP)/tmp -b $(IMAGE_SIZE) -r 0 $(TEMP_ROOT); \
 
106
        rm -rf $(TEMP)/tmp; \
 
107
 
102
108
        $(if $(GZIPPED),gzip -v9f $(TEMP_ROOT))
103
109
 
104
110
# Set up syslinux/isolinux/elilo help screens.
130
136
        cp -a $(TEMP_BOOT_SCREENS)/* $(TEMP_CD_INFO_DIR)
131
137
 
132
138
        cat boot/x86/syslinux.cfg \
133
 
        | ramdisk-size-subst $(TEMP_INITRD) \
134
139
        | bootscreen-subst MEDIA_TYPE "$(MEDIA_TYPE)" \
135
140
                DISTRIBUTION_NAME "$(DISTRIBUTION_NAME)" \
136
141
                DEBIAN_VERSION "$(DEBIAN_VERSION)" \
141
146
 
142
147
        if [ -n "$(INITRD_GTK)" ]; then \
143
148
                cat boot/x86/syslinux.cfg.withgtk \
144
 
                | ramdisk-size-subst $(TEMP_INITRD) $(INITRD_2.6) $(INITRD_GTK) \
145
149
                | bootscreen-subst MEDIA_TYPE "$(MEDIA_TYPE)" \
146
150
                        DISTRIBUTION_NAME "$(DISTRIBUTION_NAME)" \
147
151
                        DEBIAN_VERSION "$(DEBIAN_VERSION)" \
179
183
        done
180
184
 
181
185
        cat boot/x86/elilo.conf \
182
 
        | ramdisk-size-subst $(TEMP_INITRD) \
183
186
        | bootscreen-subst MEDIA_TYPE "$(MEDIA_TYPE)" \
184
187
                DISTRIBUTION_NAME "$(DISTRIBUTION_NAME)" \
185
188
                DEBIAN_VERSION "$(DEBIAN_VERSION)" \
209
212
        fi
210
213
        ln -f $(TEMP_KERNEL) $(TEMP_CD_TREE)/linux
211
214
        ln -f $(TEMP_INITRD) $(TEMP_CD_TREE)/initrd.gz
212
 
        if [ -n "$(INITRD_2.6)" ] && [ -n "$(KERNEL_2.6)" ]; then \
213
 
                mkdir $(TEMP_CD_TREE)/2.6; \
214
 
                ln -f $(KERNEL_2.6) $(TEMP_CD_TREE)/2.6/linux; \
215
 
                ln -f $(INITRD_2.6) $(TEMP_CD_TREE)/2.6/initrd.gz; \
216
 
        fi
217
215
        cat boot/x86/syslinux.cfg \
218
 
        | ramdisk-size-subst $(TEMP_INITRD) $(INITRD_2.6) \
219
216
        | bootscreen-subst MEDIA_TYPE "$(MEDIA_TYPE)" \
220
217
                DISTRIBUTION_NAME "$(DISTRIBUTION_NAME)" \
221
218
                DEBIAN_VERSION "$(DEBIAN_VERSION)" \
222
219
                BUILD_DATE "$(BUILD_DATE)" \
223
220
                KERNEL linux INITRD initrd.gz \
224
 
                KERNEL_26 2.6/linux INITRD_26 2.6/initrd.gz \
225
221
                VIDEO_MODE $(VIDEO_MODE) \
226
222
        | todos > $(TEMP_CD_TREE)/isolinux.cfg
227
223
        ln -f $(TEMP_INITRD) $(TEMP_CD_TREE)/initrd.gz
237
233
        mkdir -p $(TEMP_NETBOOT_DIR)/$(NETBOOT_PATH)
238
234
        cp $(TEMP_INITRD) $(TEMP_NETBOOT_DIR)/$(NETBOOT_PATH)
239
235
        cp $(TEMP_KERNEL) $(TEMP_NETBOOT_DIR)/$(NETBOOT_PATH)/linux
240
 
        if [ -n "$(INITRD_2.6)" ] && [ -n "$(KERNEL_2.6)" ]; then \
241
 
                mkdir -p $(TEMP_NETBOOT_DIR)/$(NETBOOT_PATH)/2.6; \
242
 
                cp $(INITRD_2.6) $(TEMP_NETBOOT_DIR)/$(NETBOOT_PATH)/2.6; \
243
 
                cp $(KERNEL_2.6) $(TEMP_NETBOOT_DIR)/$(NETBOOT_PATH)/2.6/linux; \
244
 
        fi
245
236
 
246
237
        cp /usr/lib/syslinux/pxelinux.0 $(TEMP_NETBOOT_DIR)/$(NETBOOT_PATH)
247
238
        mkdir -p $(TEMP_NETBOOT_DIR)/$(NETBOOT_PATH)/pxelinux.cfg
248
239
        cat boot/x86/syslinux.cfg \
249
 
        | ramdisk-size-subst $(TEMP_INITRD) $(INITRD_2.6) \
250
240
        | bootscreen-subst MEDIA_TYPE "$(MEDIA_TYPE)" \
251
241
                DISTRIBUTION_NAME "$(DISTRIBUTION_NAME)" \
252
242
                DEBIAN_VERSION "$(DEBIAN_VERSION)" \
254
244
                SYSDIR "$(BOOT_SCREEN_DIR)" \
255
245
                KERNEL ubuntu-installer/$(ARCH)/linux \
256
246
                INITRD ubuntu-installer/$(ARCH)/initrd.gz \
257
 
                KERNEL_26 ubuntu-installer/$(ARCH)/2.6/linux \
258
 
                INITRD_26 ubuntu-installer/$(ARCH)/2.6/initrd.gz \
259
247
                VIDEO_MODE $(VIDEO_MODE) \
260
248
        > $(TEMP_NETBOOT_DIR)/$(NETBOOT_PATH)/pxelinux.cfg/default
261
249
        
262
250
        mkdir -p $(TEMP_NETBOOT_DIR)/$(NETBOOT_PATH)/pxelinux.cfg.serial-9600
263
251
        cat boot/x86/syslinux.cfg \
264
 
        | ramdisk-size-subst $(TEMP_INITRD) $(INITRD_2.6) \
265
252
        | bootscreen-subst MEDIA_TYPE "$(MEDIA_TYPE)" \
266
253
                DISTRIBUTION_NAME "$(DISTRIBUTION_NAME)" \
267
254
                DEBIAN_VERSION "$(DEBIAN_VERSION)" \
269
256
                SYSDIR "$(BOOT_SCREEN_DIR)" \
270
257
                KERNEL ubuntu-installer/$(ARCH)/linux \
271
258
                INITRD ubuntu-installer/$(ARCH)/initrd.gz \
272
 
                KERNEL_26 ubuntu-installer/$(ARCH)/2.6/linux \
273
 
                INITRD_26 ubuntu-installer/$(ARCH)/2.6/initrd.gz \
274
259
                CONSOLE "console=ttyS0,9600n8" SYSLINUX_SERIAL \
275
260
                "SERIAL 0 9600 0" \
276
261
                VIDEO_MODE $(VIDEO_MODE) \