From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1egbPr-0001bx-20 for mharc-grub-devel@gnu.org; Tue, 30 Jan 2018 14:17:59 -0500 Received: from eggs.gnu.org ([208.118.235.92]:40534) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egbPC-0001Uy-Mc for grub-devel@gnu.org; Tue, 30 Jan 2018 14:17:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1egbO8-0008Aw-IT for grub-devel@gnu.org; Tue, 30 Jan 2018 14:17:18 -0500 Received: from mout.gmx.net ([212.227.17.21]:52345) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1egbO7-00087P-QL for grub-devel@gnu.org; Tue, 30 Jan 2018 14:16:12 -0500 Received: from scdbackup.webframe.org ([79.222.38.208]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MDV5t-1eX2Bx0eRJ-00Gn2Y; Tue, 30 Jan 2018 20:16:08 +0100 Date: Tue, 30 Jan 2018 20:15:02 +0100 From: "Thomas Schmitt" To: grub-devel@gnu.org Subject: Re: A thread on grub-bug could need attention Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Cc: michel@bouissou.net References: <20180130180025.GB11729@router-fw-old.local.net-space.pl> In-Reply-To: <20180130180025.GB11729@router-fw-old.local.net-space.pl> Message-Id: <29547785772298108721@scdbackup.webframe.org> X-Provags-ID: V03:K0:H5FEDDiYqEZTudIsO4DNe2vB4HLLRQmkTZjqNznMcKemNVJ4BrI G53ECClqvzJM/OuGMDIJznuObJL3MkAzdYLsgw+5TiZJI75pIrBEpn6aFclyARcbHpr88wv sfq8PH8QiiyBRBPLsKG7K0q/amGJ4njBQVHmLAAWpxeAYKmhbBAQAiqXq95pveS4w7bYQWE R+Vuh+EVKLZqzsVxnKRPw== X-UI-Out-Filterresults: notjunk:1;V01:K0:BZmGmSneB4w=:CAKk+q7thBDWRszRMnwuGl cEQilzFQlm4Qxnfmze1aBidV+u4VfKGtjl8kUyDfCd2fCsZz6aRvC5InBHdKdlpl+udsIMZOZ rvIxSPjWIgiUp/U+sUIc9PFhIkdTWfMXUDGILZjbYVkKP0FnJBguNr8UeSOFgawUVNtjjmXJI 9JuXmhMvwT9yuZvNlIhY8/beu5J1Ly8yOFAzJ1uL+cvx9jhOsSKAM16yrNFOYfsiM9DsbShyN TwJyahC//S6oVpFW4bTQfm0HT2JazcHBv+OnNa51RRaAn4+krhZqfwA52ATY/ks9CIZJeBHvm 0Dx3uIkAsvbLPll43ws8WwyhYz2SoHxR0gsCQABqAdL0TdS80YVOijjslQ1fFqAtibGg//zxv IswiMrACoprL+Fcbr+hR2AvO+Nouu8vBJShqWgojNtWkfxzvac4nEYLX+LToP1T66Y/heZePX jQFMmKcVHT2goAUXXX8vo/OIMYutYS3gGD4Ri6jAYMwciDumRotxVTieXkO9h64kOBVQbewsB LJlwRUYrojp5zn7dEBSXnUjNHcde00rvsQyLVOwjaHvPe2L0fIe4XXHNwa2MmviNeQqgm7A4K dMK/0LVc2awPTHeJMmOZe6iFHo9K3whzA3ATp/sLU3QiHzlb3jNCVcAJsNvT/HZ39bMhHclB1 5g/rsgvrSR3VUfOxmWAdKmzxtauiLPGZNolESzD11qPGN7O6jv40DvSrRKRMw5Le5jDxxAldt DBGdmGySKFN4H8WT0Cfk6h+SVJl//qxYI0vOSPgEw6Cwn4HRzfMxCO41C9hloSw/73KQ8wh4p +MA0/z+YccuqH117IGK6eWhJSnKkMv+APxa6tL1vzUiFW5nE4w= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.21 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Jan 2018 19:17:56 -0000 Hi, Daniel Kiper wrote: > IIRC you see blank screen after installing some distros. Right? It also does not work when booting the ISO images which shall install the systems. E.g. debian-9.3.0-amd64-netinst.iso : mount debian-9.3.0-amd64-netinst.iso /mnt/iso mount /mnt/iso/boot/grub/efi.img /mnt/fat At the end of the binary /mnt/fat/efi/boot/bootx64.efi, "strings" sees: search --file --set=root /.disk/info set prefix=($root)/boot/grub source $prefix/x86_64-efi/grub.cfg (memdisk)/boot/grub The search leads to the ISO 9660 filesystem. /mnt/iso/boot/grub/x86_64-efi/grub.cfg has insmod part_acorn insmod part_amiga insmod part_apple insmod part_bsd insmod part_dfly insmod part_dvh insmod part_gpt insmod part_msdos insmod part_plan insmod part_sun insmod part_sunpc source /boot/grub/grub.cfg /mnt/iso/boot/grub/grub.cfg has if loadfont $prefix/font.pf2 ; then set gfxmode=800x600 insmod efi_gop insmod efi_uga insmod video_bochs insmod video_cirrus insmod gfxterm insmod png terminal_output gfxterm fi if background_image /isolinux/splash.png; then set color_normal=light-gray/black set color_highlight=white/black else set menu_color_normal=cyan/blue set menu_color_highlight=white/blue fi insmod play play 960 440 1 0 4 440 1 set theme=/boot/grub/theme/1 menuentry --hotkey=g 'Graphical install' { set background_color=black linux /install.amd/vmlinuz vga=788 --- quiet initrd /install.amd/gtk/initrd.gz } menuentry --hotkey=i 'Install' { set background_color=black linux /install.amd/vmlinuz vga=788 --- quiet initrd /install.amd/initrd.gz } submenu --hotkey=a 'Advanced options ...' { set menu_color_normal=cyan/blue set menu_color_highlight=white/blue set theme=/boot/grub/theme/1-1 menuentry '... Graphical expert install' { set background_color=black linux /install.amd/vmlinuz priority=low vga=788 --- initrd /install.amd/gtk/initrd.gz } menuentry '... Graphical rescue mode' { set background_color=black linux /install.amd/vmlinuz vga=788 rescue/enable=true --- quiet initrd /install.amd/gtk/initrd.gz } menuentry '... Graphical automated install' { set background_color=black linux /install.amd/vmlinuz auto=true priority=critical vga=788 --- quiet initrd /install.amd/gtk/initrd.gz } menuentry --hotkey=x '... Expert install' { set background_color=black linux /install.amd/vmlinuz priority=low vga=788 --- initrd /install.amd/initrd.gz } menuentry --hotkey=r '... Rescue mode' { set background_color=black linux /install.amd/vmlinuz vga=788 rescue/enable=true --- quiet initrd /install.amd/initrd.gz } menuentry --hotkey=a '... Automated install' { set background_color=black linux /install.amd/vmlinuz auto=true priority=critical vga=788 --- quiet initrd /install.amd/initrd.gz } submenu --hotkey=s '... Speech-enabled advanced options ...' { set menu_color_normal=cyan/blue set menu_color_highlight=white/blue set theme=/boot/grub/theme/1-1-1 menuentry --hotkey=x '... Expert speech install' { set background_color=black linux /install.amd/vmlinuz priority=low vga=788 speakup.synth=soft --- initrd /install.amd/gtk/initrd.gz } menuentry --hotkey=r '... Rescue speech mode' { set background_color=black linux /install.amd/vmlinuz vga=788 rescue/enable=true speakup.synth=soft --- quiet initrd /install.amd/gtk/initrd.gz } menuentry --hotkey=a '... Automated speech install' { set background_color=black linux /install.amd/vmlinuz auto=true priority=critical vga=788 speakup.synth=soft --- quiet initrd /install.amd/gtk/initrd.gz } } } menuentry --hotkey=s 'Install with speech synthesis' { set background_color=black linux /install.amd/vmlinuz vga=788 speakup.synth=soft --- quiet initrd /install.amd/gtk/initrd.gz } -------------------------------------------------------------------- Well, my MBR versus GPT theory fades away by Daniel Kiper's above question. The next step would have been to build a grub-mkrescue image with a partition layout like Knoppix 8.1. You'd take script xorriso-1.4.8/frontend/grub-mkrescue-sed.sh from a GNU xorriso source installation or from https://dev.lovelyhq.com/libburnia/libisoburn/raw/master/frontend/grub-mkrescue-sed.sh and use it as "xorriso" for the grub-mkrescue run. It re-arranges the options for the xorriso run to achieve other partition layouts and/or positions of the EFI System Partition. Default is mode "mbr_only", which puts the EFI partition image after the ISO 9660 partition and marks both partitions by MBR rather than GPT. Best with xorrisofs option "-partition_offset 16", which lets the ISO partition start at byte 32768 with an own superblock and directory tree, while the overall ISO filesystem starts at byte 0 and claims the whole image size including the EFI partition as its filesystem size. grub-mkrescue -o output.iso minimal \ --xorriso=...path.../grub-mkrescue-sed.sh \ -partition_offset 16 If xorriso-1.4.8 is installed, you should afterwards get told by xorriso -indev output.iso -report_system_area plain something like: System area summary: MBR grub2-mbr cyl-align-off ISO image size/512 : 33864 Partition offset : 16 MBR heads per cyl : 64 MBR secs per head : 32 MBR partition table: N Status Type Start Blocks MBR partition : 1 0x80 0x00 64 28040 MBR partition : 2 0x00 0xef 28104 5760 after this harmless warning: libisofs: WARNING : Found hidden El-Torito image. Its size could not be figured out, so image modify or boot image patching may lead to bad results. (I will have to improve the multi-session capabilities with boot images which are not reachable as files of the ISO 9660 filesystem.) Have a nice day :) Thomas