[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#412922: please generate win32-loader.ini "manifest" file



Package: debian-installer
Severity: wishlist
Tags: patch

Please, could you include this patch to generate win32-loader.ini in the
cdrom and hd-media builds ?  win32-loader.ini is like a "manifest" that
win32-loader can use to figure out where to copy linux and initrd.gz images
from (yes, it supports networkless mode now).

The documentation part of my patch should explain the details.  It is mainly
targetted at USB sticks.  I also added cdrom support because.. why not :-)

+  <sect2 arch="x86">
+  <title>Adding support for loading from Microsoft Windows (optional)</title>
+<para>

+If you want to give your USB stick the ability to load the Debian installer
+from a Windows system (instead of BIOS-based boot), we provide an add-on
+that will enable this functionality:
+
+<informalexample><screen>
+wget http://people.debian.org/~rmh/d-i/win32-loader/etch/win32-loader.tar.gz -O - | tar -C /mnt -xzf -
+</screen></informalexample>
+
+Note, however, that this component is not officialy part of Debian.  If you
+use it for your install, bear in mind that some key parts of the install
+process will be altered.  You shouldn't expect it to comply with the policies
+of quality and stability that apply to the unmodified installer media.
+
+</para>
+  </sect2>

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-amd64
Locale: LANG=ca_AD.UTF-8, LC_CTYPE=ca_AD.UTF-8 (charmap=UTF-8)
Index: installer/build/config/x86.cfg
===================================================================
--- installer/build/config/x86.cfg	(revision 45613)
+++ installer/build/config/x86.cfg	(working copy)
@@ -67,6 +67,12 @@
 		VIDEO_MODE_GTK $(VIDEO_MODE_GTK) \
 	| todos | mcopy -i$(TEMP_BOOT) - ::syslinux.cfg
 
+	# win32-loader.ini (for alternative win32-based boot)
+	(echo -en "[$(ARCH)]\nlinux=linux\ninitrd=initrd.gz\n"; \
+	if [ -n "$(INITRD_GTK)" ]; then \
+		echo -en "gtk/linux=linux\ngtk/initrd=initrdg.gz\n"; \
+	fi) | todos | mcopy -i$(TEMP_BOOT) - ::win32-loader.ini
+
 	# syslinux help screens
 	set -e; \
 	$(foreach file,$(wildcard $(TEMP_BOOT_SCREENS)/*.txt), \
@@ -148,6 +154,15 @@
 		> $(TEMP_CD_INFO_DIR)/isolinux.cfg.withgtk; \
 	fi
 
+	# win32-loader.ini (for alternative win32-based boot)
+	(echo -en "[$(ARCH)]\n"; \
+	if [ -n "$(INITRD_GTK)" ]; then \
+		echo -en "linux=install/vmlinuz\ninitrd=install/initrd.gz\n"; \
+		echo -en "gtk/linux=install/vmlinuz\ngtk/initrd=install/gtk/initrd.gz\n"; \
+	else \
+		echo -en "gtk/linux=install/vmlinuz\ngtk/initrd=install/initrd.gz\n"; \
+	fi) > $(TEMP_CD_INFO_DIR)/win32-loader.ini
+
 .PHONY: arch_miniiso
 arch_miniiso:
 	-rm -f $(TEMP_CD_TREE)/*
@@ -176,7 +191,14 @@
 		VIDEO_MODE $(VIDEO_MODE) \
 	| todos > $(TEMP_CD_TREE)/isolinux.cfg
 	ln -f $(TEMP_INITRD) $(TEMP_CD_TREE)/initrd.gz
-	
+
+	# win32-loader.ini (for alternative win32-based boot)
+	if [ "$(TYPE)" = "netboot/gtk" ]; then \
+		echo -en "[$(ARCH)]\ngtk/linux=linux\ngtk/initrd=initrd.gz\n"; \
+	else \
+		echo -en "[$(ARCH)]\nlinux=linux\ninitrd=initrd.gz\n"; \
+	fi > $(TEMP_CD_TREE)/win32-loader.ini
+
 	mkisofs -r -J -b isolinux.bin -c boot.cat \
 		-no-emul-boot -boot-load-size 4 -boot-info-table \
 		-o $(TEMP_MINIISO) $(TEMP_CD_TREE)
Index: manual/en/install-methods/boot-usb-files.xml
===================================================================
--- manual/en/install-methods/boot-usb-files.xml	(revision 45613)
+++ manual/en/install-methods/boot-usb-files.xml	(working copy)
@@ -108,7 +108,26 @@
 
 </para>
   </sect2>
+  <sect2 arch="x86">
+  <title>Adding support for loading from Microsoft Windows (optional)</title>
+<para>
 
+If you want to give your USB stick the ability to load the Debian installer
+from a Windows system (instead of BIOS-based boot), we provide an add-on
+that will enable this functionality:
+
+<informalexample><screen>
+wget http://people.debian.org/~rmh/d-i/win32-loader/etch/win32-loader.tar.gz -O - | tar -C /mnt -xzf -
+</screen></informalexample>
+
+Note, however, that this component is not officialy part of Debian.  If you
+use it for your install, bear in mind that some key parts of the install
+process will be altered.  You shouldn't expect it to comply with the policies
+of quality and stability that apply to the unmodified installer media.
+
+</para>
+  </sect2>
+
   <!-- TODO: doesn't this section belong later? -->
   <sect2 arch="x86">
   <title>Booting the USB stick</title>

Reply to: