Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1ig57B-00079w-9Y for mharc-grub-devel@gnu.org; Sat, 14 Dec 2019 05:57:37 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57970) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ig578-00079i-AC for grub-devel@gnu.org; Sat, 14 Dec 2019 05:57:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ig576-0003rJ-GB for grub-devel@gnu.org; Sat, 14 Dec 2019 05:57:33 -0500 Received: from mout.gmx.net ([212.227.17.20]:33235) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ig575-0003g1-CJ for grub-devel@gnu.org; Sat, 14 Dec 2019 05:57:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1576321047; bh=I4DLg3FiYA/T9HkxaDzvZqdZkVnCUL/fl2o9A+/Apc0=; h=X-UI-Sender-Class:Date:From:To:Subject; b=bMdl6nkLGM/doUd3OkowzERRPrsej71ixVm2ChLN/+B29WWKPdEaA8JI7chA3vuDE r5qNAU736M4a+PQayLEzzUKqAT4w4E5xIptgOELy04IL5kemjIdf0ebaCcDrLa29wJ 9X9XPaYVIhAeoX4JLxWBLCJ0X+akrsrBgeumHBNc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from scdbackup.webframe.org ([91.8.164.236]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M5fIQ-1ieSY048jq-0079is for ; Sat, 14 Dec 2019 11:57:27 +0100 Date: Sat, 14 Dec 2019 11:58:12 +0100 From: "Thomas Schmitt" To: grub-devel@gnu.org Subject: Upcomming trouble with grub-mkrescue ISOs and libblkid Content-Type: text/plain; charset="utf-8" Message-Id: <11198693234552894709@scdbackup.webframe.org> X-Provags-ID: V03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S8qT3z642f7yfLoV1Jo0+zbKWk4itlTe ODeCo0xbr0Pt6izvh7b9uoA/kro39ZWSyNfvBRJe8xFddL8GLtliqASUrYYeVu+IHp13UMYCl PUNLDtgBAM9NQyi/V9QB782CPYZjLCDYCvGcdgvQE0lNuBpZh1913bfNMOaHg9DspcxL1954s c09HgHic8mjKA0Ea/DhlA8h5arbPbR9Gic1i+JA38vxpVpVc5ruf65rxIFdhFOUgpbQSqGcKk P3GPj63QPxEZUM76/FkbvVn6J1zouHZWzUpCHOEPo1/y+fFN5Gis9q1m08fq+z3fivMm8yzfr HmhvihlErlK7jCe1uy8oYP4g1tvkycFLwdlEQmo6F8fSoqavmQg63nzgUE4C9VQ9CCGlgUBWo zE70j+7/50MEM4YN5IxB2rw+6h2z2b/MuCTNpTHMrJLlQNsqR4H+Uf3ZPm2fJhYQQWpLUmqOp PioRb4+h5X/l8nxCjp7CBF9XgXORmqlhgJIBZLeDLKOwSI/Hzr32hireOC3U= X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Received-From: 212.227.17.20 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Dec 2019 10:57:35 -0000 Hi, there is trouble at the horizon by https://github.com/karelzak/util-linux/commit/7ef86a08914427d6486734614d7d3bbed1f108fe which disables the recognition of ISO 9660 filesystems on the base device in favor of potential partitions which may or may not mark the range of the ISO filesystem. This causes Fedora ISOs to fail booting from /dev/srN https://bugzilla.redhat.com/show_bug.cgi?id=1783066 because the /dev/disk/by-label/ link is not created by udev. The commit shall obviously heal a shortcomming of the old questionable udev rule # for partitions import parent information ENV{DEVTYPE}=="partition", IMPORT{parent}="ID_*" when it meets a USB stick with an ISO on the base device and a partition which has no own filesystem. The latter is a rare situation. The effect on /dev/srN is obviously unintended. To my theory, libblkid detects the partition table on the DVD and bets that the Linux kernel will create partition devices. But with /dev/srN there will no partition devices be created. I expect grub-mkrescue x86 ISOs to show no ISO 9660 at all, because they get a MBR partition starting at disk block 1 in the BIOS-only case, and a GPT with no ISO 9660 partition in the EFI-case. The only way to access their ISO filesystems is via the base device. This was a design decision by Vladimir Serbinenko about 10 years ago. It has to be expected that payload operating systems of grub-mkrescue, which use the new blkid, will not find their origin device after start-up, similar to what happens to Fedora ISOs now. Workarounds to let grub-mkrescue ISO 9660 filesystems show up for the new blkid could be the modifications made by https://dev.lovelyhq.com/libburnia/libisoburn/raw/master/frontend/grub-mkrescue-sed.sh MKRESCUE_SED_MODE "mbr_only", "mbr_hfs", or "gpt_appended" with -partition_offset 16 will create partitions which mark the ISO 9660 filesystem. (All against Vladimir's idea of partition layout, of course.) Best solution would be to convince util-linux to not ignore filesystems and to rather urge udev to fix its rule. (Does anybody know why udev attributes the filesystem of the base device to any partition which has no own filesystem ?) Have a nice day :) Thomas